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

Withdrawn items remain in OAI-PMH until the next full re-import

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3, 5.2
    • Fix Version/s: 5.3
    • Component/s: OAI-PMH
    • Labels:
      None
    • Attachments:
      1
    • Comments:
      8
    • Documentation Status:
      Not Required

      Description

      Based on discussion in this thread:
      http://dspace.2283337.n4.nabble.com/OAI-PMH-data-provider-2-0-not-persistent-td4676887.html

      I've also verified this behavior on http://demo.dspace.org (currently running 5.2). Here's how to easily replicate the behavior:

      1. Create an Item
      2. Run the OAI-PMH import (./dspace oai import).
      3. The item now appears in OAI-PMH
      4. Withdraw that Item
      5. Re-Run the OAI-PMH import (./dspace oai import)
      6. The Item still appears in OAI-PMH and is NEVER flagged as withdrawn.

      So, you can still access all its metadata, etc. The ONLY way to trigger an update to the OAI-PMH record (of the withdrawn item) is to re-import EVERYTHING (./dspace oai import -c). However, as noted, since withdrawn items are not included in the XOAI "indexAll()" command, the item will now disappear from OAI-PMH entirely.

      Here's that XOAI.indexAll() command:
      https://github.com/DSpace/DSpace/blob/master/dspace-oai/src/main/java/org/dspace/xoai/app/XOAI.java#L191

      This behavior seems to be counter to what is documented at:
      https://wiki.duraspace.org/pages/viewpage.action?pageId=45548245#OAI-PMHDataProvider2.0%28Internals%29-Deletions

      The documentation specifically states that "DSpace keeps a permanent record of withdrawn items". It also states that a request for a withdrawn item "will yield the 'record deleted' header". Neither of these statements is true as withdrawn items are never indexed, and public items are never updated once withdrawn.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tdonohue Tim Donohue
              Reporter:
              tdonohue Tim Donohue
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: