Bug #13568

Regression: OAI-PMH ListIdentifiers requests ignoring "from" and "to" parameters

Added by David Juhasz 23 days ago. Updated 13 days ago.

Status:VerifiedStart date:09/24/2021
Priority:MediumDue date:
Assignee:-% Done:

0%

Category:OAI-PMH
Target version:Release 2.7.0
Google Code Legacy ID: Tested version:2.6, 2.7
Sponsored:No Requires documentation:

Description

The OAI-PMH v2.0 ListIdentifiers verb allows optional "from" and "to" parameters to limit the returned results by date and time. The "from" and "to" parameters were working in the qa/2.x branch on Aug. 7, 2019 (See: https://projects.artefactual.com/issues/13025#note-2) but have stopped working somewhere between then and now.

Steps to reproduce

  1. Enable the OAI-PMH plugin.
  2. Make a "ListIdenfiers" request with a "from" or "to" parameter, e.g. http://localhost:63001/;oai?verb=ListIdentifiers&from=2021-09-01&metadataPrefix=oai_dc

Resulting error

The "from" and "to" parameters are ignored and all identifiers are returned, e.g.

<?xml version="1.0" encoding="UTF-8" ?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
  <responseDate>2021-09-24T17:55:03Z</responseDate>
  <request verb="ListIdentifiers" from="2021-09-01" metadataPrefix="oai_dc">http://localhost:63001/;oai</request>
  <ListIdentifiers>
    <header>
      <identifier>oai:localhost:63001:test_10267</identifier>
      <datestamp>2011-11-23T04:18:02Z</datestamp>
      <setSpec>oai:localhost:63001:test_10267</setSpec>
    </header>
    <header>
      <identifier>oai:localhost:63001:test_10269</identifier>
      <datestamp>2011-11-23T04:18:03Z</datestamp>
      <setSpec>oai:localhost:63001:test_10269</setSpec>
    </header>

Expected results

Results should be limited by date and time according to the "from" and "to" parameters.

Additional notes

  • The ListRecords "from" and "to" parameters are not affected by this bug, and are functioning as expected.

History

#1 Updated by David Juhasz 23 days ago

  • Status changed from In progress to Code Review

#2 Updated by David Juhasz 21 days ago

  • Status changed from Code Review to QA/Review
  • Tested version 2.7 added

#3 Updated by Dan Gillean 13 days ago

  • Status changed from QA/Review to Verified
  • Assignee deleted (David Juhasz)

Also available in: Atom PDF