Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2404

AIP submission fails for a site containing a subcommunity

    Details

    • Type: Bug
    • Status: Volunteer Needed (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.3, 3.3, 4.2, 5.0
    • Fix Version/s: None
    • Component/s: DSpace API
    • Labels:
    • Environment:
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Not Required

      Description

      Tested on a trivial repository:
      Top-level community 123456789/3

      • Subcommunity 123456789/4
        • Collection 123456789/5
          • Item 123456789/6

      Export (completes successfully):
      $ /dspace/bin/dspace packager -d -a -t AIP -e dspace@example.com -i 123456789/0 dspace-5-site-aip-subcomm-test.zip

      Import into empty repository:
      $ /dspace/bin/dspace packager -s -a -t AIP -e dspace@example.com -i 123456789/0 dspace-5-site-aip-subcomm-test.zip

      Ingesting package located at dspace-5-site-aip-subcomm-test.zip

      Also ingesting all referenced packages (recursive mode)..
      This may take a while, please check your logs for ongoing status while we process each package.
      java.lang.UnsupportedOperationException: Could not find a parent DSpaceObject referenced as '123456789/3' in the METS Manifest for object hdl:123456789/4. A parent DSpaceObject must be specified from either the 'packager' command or noted in the METS Manifest itself.
      at org.dspace.content.packager.AbstractMETSIngester.getParentObject(AbstractMETSIngester.java:1385)
      at org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:393)
      at org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:234)
      at org.dspace.content.packager.AbstractPackageIngester.ingestAll(AbstractPackageIngester.java:143)
      at org.dspace.content.packager.AbstractPackageIngester.ingestAll(AbstractPackageIngester.java:193)
      at org.dspace.content.packager.AbstractPackageIngester.ingestAll(AbstractPackageIngester.java:193)
      at org.dspace.app.packager.Packager.ingest(Packager.java:515)
      at org.dspace.app.packager.Packager.main(Packager.java:427)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
      at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
      java.lang.UnsupportedOperationException: Could not find a parent DSpaceObject referenced as '123456789/3' in the METS Manifest for object hdl:123456789/4. A parent DSpaceObject must be specified from either the 'packager' command or noted in the METS Manifest itself.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              helix84 Ivan Masár
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: