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

OAI harvester gives non-specific error message

    XMLWordPrintable

    Details

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

      Description

      When the OAI-PMH harvester in DSpace encounters an error during harvesting, it displays only a generic error in the UI:

      Unknown error occured while generating an OAI response on 2014-12-17 23:45:37.82

      It logs the specific error message and stacktrace in dspace.log, e.g.:

      ERROR org.dspace.harvest.OAIHarvester @ Error occured while generating an OAI response: Server returned HTTP response code: 400 for URL: http://localhost:8080/xmlui/bitstream/123456789%2F15/1/bitstream null

      Such behaviour doesn't help the DSpace manager, who might not have access to DSpace logs, see what the problem is. UI should display the specific error message.

      This happens here:
      https://github.com/DSpace/DSpace/blob/dspace-4_x/dspace-api/src/main/java/org/dspace/harvest/OAIHarvester.java#L389-392

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: