code4lib / ruby-oai

a Ruby library for building OAI-PMH clients and servers
MIT License
62 stars 42 forks source link

Default value logic for from/until in OAI::Provider::Response::RecordResponse can trigger mismatched granularity #104

Closed barmintor closed 2 years ago

barmintor commented 2 years ago

If a date string is passed for one of the time constraints to listRecords or listIdentifiers, the default logic for the other time constraint will yield a time and cause an argument exception. The default value procs should match their return types to that of an existing constraint parameter.