Bug 21108

Summary: oai.pl error response did not contain error code 'noRecordsMatch' when it should
Product: Koha Reporter: Pablo AB <pablo.bianchi>
Component: Web servicesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P4    
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17785
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 21102    

Description Pablo AB 2018-07-24 00:17:41 UTC
Tested with https://github.com/zimeon/oaipmh-validator

### Checking for version 2.0 specific exceptions
REQUEST: baseURL?verb=ListRecords&metadataPrefix=oai_dc&until=-001 GET
FAIL:    Error code noRecordsMatch not found in response but should be given to the request: verb=ListRecords&metadataPrefix=oai_dc&until=-001 The request specified a date one year before the earliestDatestamp given in the Identify response. There should therefore not be any records with datestamps on or before this date and a noRecordsMatch error code should be returned.

See https://www.openarchives.org/OAI/openarchivesprotocol.html#ErrorConditions and 4.3 ListIdentifiers