Bug 14664 - Harvesting records of an non-existent set, instead of an error return all the records
Summary: Harvesting records of an non-existent set, instead of an error return all th...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Web services (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-07 15:49 UTC by Pablo AB
Modified: 2016-03-01 12:40 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo AB 2015-08-07 15:49:01 UTC
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