Uploaded image for project: 'DSpace (LEGACY)'
  1. DSpace (LEGACY)
  2. DS-3993

OAI-PMH cannot index Items without Handles

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Volunteer Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.3
    • Fix Version/s: None
    • Component/s: OAI-PMH
    • Labels:
    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Not Required

      Description

      Per this thread: https://groups.google.com/d/msg/dspace-tech/GYHaAaA0B-w/KpKWaE2QAAAJ

      As noted in that thread, the OAI indexer (e.g. oai import -c -v) cannot index Items with null handles.  Here's the error it returns:

      Item with handle null indexed

      org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Document is missing mandatory uniqueKey field: item.handle

              at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552)

              at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)

              at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)

              at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)

              at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116)

              at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102)

              at org.dspace.xoai.app.XOAI.index(XOAI.java:213)

              at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:200)

              at org.dspace.xoai.app.XOAI.index(XOAI.java:131)

              at org.dspace.xoai.app.XOAI.main(XOAI.java:495)

              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:226)

              at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)

       

      Ideally, Handles should not be required by DSpace.  As we move towards externalizing the Handle system (DS-2153), this is a bug to be aware of

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: