Summary: | OAI-PMH must return error when no results | ||
---|---|---|---|
Product: | Koha | Reporter: | Fridolin Somers <fridolin.somers> |
Component: | Web services | Assignee: | Fridolin Somers <fridolin.somers> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | minor | ||
Priority: | P5 - low | CC: | chris, christophe.brocquet, liz, mirko, tomascohen |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14664 | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Bug 14721 - OAI-PMH must return error when no results
Bug 14721 - OAI-PMH must return error when no results Bug 14721 - OAI-PMH must return error when no results |
Description
Fridolin Somers
2015-08-25 09:28:47 UTC
Created attachment 41887 [details] [review] Bug 14721 - OAI-PMH must return error when no results When getting records from OAI-PMH, an error must be returned if there is no results. See : http://www.openarchives.org/OAI/openarchivesprotocol.html#ErrorConditions Test plan : - Enable OAI webservice - Perform a query that will return no results. ie : /cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=marcxml&from=2099-12-30&until=2099-12-31 => Without patch you get a response with : <ListRecords/> => With patch you get a response with error code : <error code="noRecordsMatch">No records match the given criteria</error> - Check a good query returns still results - Same test with ListIdentifiers verb Created attachment 42389 [details] [review] Bug 14721 - OAI-PMH must return error when no results When getting records from OAI-PMH, an error must be returned if there is no results. See : http://www.openarchives.org/OAI/openarchivesprotocol.html#ErrorConditions Test plan : - Enable OAI webservice - Perform a query that will return no results. ie : /cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=marcxml&from=2099-12-30&until=2099-12-31 => Without patch you get a response with : <ListRecords/> => With patch you get a response with error code : <error code="noRecordsMatch">No records match the given criteria</error> - Check a good query returns still results - Same test with ListIdentifiers verb Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> Created attachment 42404 [details] [review] Bug 14721 - OAI-PMH must return error when no results When getting records from OAI-PMH, an error must be returned if there is no results. See : http://www.openarchives.org/OAI/openarchivesprotocol.html#ErrorConditions Test plan : - Enable OAI webservice - Perform a query that will return no results. ie : /cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=marcxml&from=2099-12-30&until=2099-12-31 => Without patch you get a response with : <ListRecords/> => With patch you get a response with error code : <error code="noRecordsMatch">No records match the given criteria</error> - Check a good query returns still results - Same test with ListIdentifiers verb Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Patch pushed to master. Goood job Frido! Pushed to 3.20.x will be in 3.20.4 Pushed to 3.18.x will be in 3.18.11 |