Bug 21104 - oai.pl returns wrong baseURL
Summary: oai.pl returns wrong baseURL
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Web services (show other bugs)
Version: master
Hardware: All All
: P4 normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 21102
  Show dependency treegraph
 
Reported: 2018-07-23 19:39 UTC by Pablo AB
Modified: 2018-07-23 19:39 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Who signed the patch off:
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 2018-07-23 19:39:57 UTC
Related/continuation of: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17785#c11

When using Plack Koha anwer a "cooler" (bug 18410) but invalid baseURL, /opac/oai.pl instead of given URI.

As Tomas said on bug #17785:
> Our fix for the XSLT masked the underlying bug (our code doesn't know
> about the proxypass we do, and then Plack answers what he knows,
> /opac/oai.pl).

Originally deteced with official validator:
https://www.openarchives.org/Register/ValidateSite

Tested with: curl -s "baseURL?verb=Identify" | xpath -q -e "/OAI-PMH/Identify/baseURL"