Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-1596

enable migration-utils to accept Fedora 2.2-created FOXML

    Details

    • Sprint:
      Sprint 2015 - 8, Sprint 2015 - 9

      Description

      When pointed at FOXML files from Fedora 2.2, migration-utils expects a 'version' attribute in the foxml:digitalObject element, resulting in a NullPointerException when this attribute is not found. A stacktrace and header from an example legacy FOXML type are attached below.

      Exception in thread "main" java.lang.NullPointerException
        at org.fcrepo.migration.foxml11.Foxml11InputStreamFedoraObjectProcessor.<init>(Foxml11InputStreamFedoraObjectProcessor.java:87)
        at org.fcrepo.migration.foxml11.FoxmlDirectoryDFSIterator.next(FoxmlDirectoryDFSIterator.java:89)
        at org.fcrepo.migration.foxml11.FoxmlDirectoryDFSIterator.next(FoxmlDirectoryDFSIterator.java:22)
      at org.fcrepo.migration.Migrator.run(Migrator.java:105)
      at org.fcrepo.migration.Migrator.main(Migrator.java:46)```

      <?xml version="1.0" encoding="UTF-8"?>
      <foxml:digitalObject xmlns:foxml="info:fedora/fedora-system:def/foxml#"
                 xmlns:fedoraxsi="http://www.w3.org/2001/XMLSchema-instance"
                 xmlns:audit="info:fedora/fedora-system:def/audit#"
                 fedoraxsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-0.xsd"
                 PID="umd:22337">

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mdurbin Michael Durbin
                Reporter:
                westgardja Joshua Westgard [X] (Inactive)
                Reviewer:
                Andrew Woods
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: