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

AIP Restore rejects items with a past lift date

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Needed

      Description

      I have migrated one of my test instances to 6.0 RC3 and I am attempting to populate my repository using exported AIP packages. Some items are being rejected due to a past lift date.

      Replacing DSpace object(s) with package located at /opt/dg-transfer/data/resources/aip_10822-761364_10822-761419_10822-761857.zip
      java.lang.IllegalArgumentException: Embargo lift date must be in the future, but this is in the past: 2016-09-13
      at org.dspace.embargo.EmbargoServiceImpl.getEmbargoTermsAsDate(EmbargoServiceImpl.java:145)
      at org.dspace.embargo.EmbargoServiceImpl.setEmbargo(EmbargoServiceImpl.java:87)
      at org.dspace.content.InstallItemServiceImpl.finishItem(InstallItemServiceImpl.java:236)
      at org.dspace.content.InstallItemServiceImpl.restoreItem(InstallItemServiceImpl.java:142)
      at org.dspace.content.packager.PackageUtils.finishCreateItem(PackageUtils.java:524)
      at org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:525)
      at org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1192)
      at org.dspace.app.packager.Packager.replace(Packager.java:780)
      at org.dspace.app.packager.Packager.main(Packager.java:377)
      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:229)
      at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
      java.lang.IllegalArgumentException: Embargo lift date must be in the future, but this is in the past: 2016-09-13

      If I attempt this same action in a DSpace 5 instance, it is successful.

      Beginning replacement process...

      Replacing DSpace object(s) with package located at /opt/dg-transfer/data/resources/aip_10822-761364_10822-761419_10822-761857.zip
      REPLACED DSpace ITEM [ hdl=10822/761857 ]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                terrywbrady Terry Brady
                Reporter:
                terrywbrady Terry Brady
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: