phaidra / phaidra-api

RESTish API to Phaidra
Apache License 2.0
6 stars 4 forks source link

OAI response should not include invalid identifiers #73

Closed RastislavHudak closed 1 year ago

RastislavHudak commented 2 years ago

REQUEST https:///api/oai?verb=GetRecord&identifier=invalid"id&metadataPrefix=oai_dc GET WARN Malformed response: not well-formed (invalid token) at line 7, column 29, byte 352 at /usr/lib64/perl5/vendor_perl/XML/Parser.pm line 187. . An XML parsing error may be due to incorrectly including the invalid identifier in the element of your XML error response; only valid arguments should be included. A response that includes ..baseURL.. is not well-formed XML because of the quotation mark (") in the identifier. FAIL Can't parse malformed response. An XML parsing error may be due to incorrectly including the invalid identifier in the element of your XML error response; only valid arguments should be included. A response that includes <request verb="GetRecord" identifier="invalid"id" metadataPrefix="oai_dc">..baseURL.. is not well-formed XML because of the quotation mark (") in the identifier.

giulioturetta commented 2 years ago

Note: the issue comes from a failed test on the Open Archive Initiative Validation Service http://www.openarchives.org/Register/ValidateSite.