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:


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


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">
  <request verb="ListIdentifiers" from="2021-09-01" metadataPrefix="oai_dc">http://localhost:63001/;oai</request>

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.


#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