[Koha-bugs] [Bug 14664] New: Harvesting records of an non-existent set, instead of an error return all the records
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Aug 7 17:49:01 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14664
Bug ID: 14664
Summary: Harvesting records of an non-existent set, instead of
an error return all the records
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5 - low
Component: Web services
Assignee: koha-bugs at lists.koha-community.org
Reporter: pablo.bianchi at gmail.com
QA Contact: testopia at bugs.koha-community.org
Steps:
- Enable syspref OAI-PMH and leave OAI-PMH:ConfFile empty.
- Set an OAI set on Home › Administration › OAI sets configuration
- Remember the setSpec you choose (the real set primary key), for example
setSpec==THESIS
- Fetch with set=THESIS, you will get records on that set.
- Now fetch records with set=bananas.
Expected result:
A badArgument error like this one:
http://digital.bl.fcen.uba.ar/gsdl-282/cgi-bin/oaiserver.cgi?verb=ListRecords&metadataPrefix=oai_dc&set=bananas
(Greenstone v2.82)
Actual result:
List ALL records, like here:
http://catalog.bywatersolutions.com/cgi-bin/koha/oai.pl?verb=ListRecords&from=2010-01-01&metadataPrefix=oai_dc&set=bananas
Reference:
https://www.openarchives.org/OAI/2.0/guidelines-harvester.htm#Sets
https://www.openarchives.org/OAI/openarchivesprotocol.html#ErrorConditions
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list