Bug 18714 - tracklinks.pl redirects failing under https
Summary: tracklinks.pl redirects failing under https
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-01 12:44 UTC by Nick Clemens
Modified: 2022-08-03 14:32 UTC (History)
0 users

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 Nick Clemens 2017-06-01 12:44:41 UTC
When a site is using https the CGI->redirect() command in tracklinks.pl receives a url with "http" but sends the uder via "https" and some links fail

To test:
1 - Enable https
2 - Add an url to a record that is accessible only via http
3 - Enable track links system preference
4 - Click the link from the opac
5 - Security failure or timeout (as you are redirected to https
Comment 1 Nick Clemens 2017-08-06 10:24:05 UTC
This was an error in proxy configuration and not Koha related
Comment 2 Nick Clemens 2022-08-03 14:32:09 UTC
This wa related to a proxy rule to forward all http to https, we just needed to limit it to koha urls. 

We changed:
http-response replace-value Location ^http://(.*) https://\1 if { ssl_fc }

To:
http-response replace-value Location ^http://(.*)/cgi-bin/koha/(.*) https://\1/cgi-bin/koha/\2 if { ssl_fc }