https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21104

David Cook <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |REOPENED
         Resolution|INVALID                     |---
                 CC|                            |[email protected]

--- Comment #3 from David Cook <[email protected]> ---
I can confirm that this is an issue in koha-testing-docker and in production.

If you enable OAI-PMH and look at the XML response, you'll get a URL with a
path like /opac/oai.pl instead of /cgi-bin/koha/oai.pl

I swore this used to work correctly, but maybe it was in the pre-Plack days. 

In 2017, I wrote a patch to use OpacBaseURL instead of the proxied hostname,
and I still use that locally. But it looks like we need to fix the path as
well.

Overall, I think the typical way to get automatically correct self-referential
URLs is for the proxy to use the same path that the backend app is mounted on
(like we do with /api). 

But here instead of using CGI::self_url() for the requestURL in
Koha/OAI/Server/Repository.pm, I think we'll need to rewrite the path for that
URI to /cgi-bin/koha/oai.pl.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to