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

XOAI - from/until argument only works with date including the time

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0, 5.1, 5.3
    • Fix Version/s: 5.4, 6.0
    • Component/s: OAI-PMH
    • Labels:
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Not Required

      Description

      request: verb=ListIdentifiers&from=1998-01-15&metadataPrefix=oai_dc

      results in an badArgument error
      only completly granular timestams verb=ListIdentifiers&from=1998-01-15T14:15:00Z&metadataPrefix=oai_dc
      work
      Same with the until argument.

      See: http://www.openarchives.org/OAI/openarchivesprotocol.html#Dates

      Problem is in XOAI Library:
      https://github.com/lyncode/xoai/blob/xoai-3.2.9/src/main/java/com/lyncode/xoai/dataprovider/OAIDataProvider.java#L181

      and

      https://github.com/lyncode/xoai/blob/xoai-3.2.9/src/main/java/com/lyncode/xoai/dataprovider/OAIDataProvider.java#L191

      removal of :repositoryConfiguration.getGranularity() would solve the problem

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                christian.scheible Christian Scheible
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: