Koha-clms/debian/templates
Nick Clemens 3c23516efd Bug 37056: Mount a new intranet_svc api to avoid redirects
When an unauthorized call to svc is made, we use the ErrorDocument middleware to respond with an HTML
page. The API doens't do this, it simply returns its status. We should mount the svc as its own app to avoid
the redirect to HTML for unauthorized responses

To test:
1 - Create a report
2 - Add to IntranetUserJs:
    $(document).ready(function() {
      // Your report ID
      var reportId = '492';

      // Fetch the report
      $.get('/cgi-bin/koha/svc/report?id=' + reportId, function(data) {
        console.log('Kaboom');
      });
    });
3 - Log out
4 - Attempt to login
5 - KO
6 - Apply patch
7 - Reset all (or copy the necessary changes to your plack/apache files)
8 - Generate report and update user js again
8 - Logout, login
9 - Success!

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit edc5caf976)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-11-18 17:42:23 +00:00
..
SIPconfig.xml Bug 36948: (follow-up) Allow IPv[46] in port config 2024-07-03 16:17:55 +00:00
apache-shared-disable.conf
…
apache-shared-intranet-plack.conf Bug 37056: Mount a new intranet_svc api to avoid redirects 2024-11-18 17:42:23 +00:00
apache-shared-intranet.conf Bug 35919: Add record sources admin page 2024-04-26 17:06:04 +02:00
apache-shared-opac-plack.conf Bug 35812: Fix search URL aliases in Plack Apache config 2024-05-10 14:11:55 +02:00
apache-shared-opac.conf Bug 25548: Remove Apache rewrite directives that trigger redirects 2020-11-20 14:23:52 +01:00
apache-shared.conf Bug 36531: Serve text/javascript compressed, like application/javascript is 2024-04-08 15:41:12 +02:00
apache-site-https.conf.in Bug 34193: SSLProtocol enable in use versions and disable deprecated versions 2023-08-18 10:29:21 +03:00
apache-site.conf.in
…
koha-common.conf
…
koha-conf-site.xml.in Bug 33563: Add comments for Elasticsearch security config 2024-07-18 19:57:49 +00:00
koha-core.conf Bug 26672: Add additional koha-core and koha-full files to ./debian 2020-11-25 16:18:03 +01:00
koha-sites.conf Bug 18984: Remove NORMARC support 2021-10-07 15:36:40 +02:00
koha-worker@.service Bug 32992: Move background_jobs_worker to misc/workers 2023-02-24 17:52:19 -03:00
log4perl-site.conf.in Bug 36948: (follow-up) Add chomp to sip log4perl config 2024-07-03 16:17:55 +00:00
marc21-retrieval-info-auth-dom.xml Bug 27198: Fix syntax in marc21-retrieval-info-auth-dom.xml 2024-04-05 11:51:14 +02:00
marc21-retrieval-info-bib-dom.xml
…
plack.psgi Bug 37056: Mount a new intranet_svc api to avoid redirects 2024-11-18 17:42:23 +00:00
unimarc-retrieval-info-auth-dom.xml
…
unimarc-retrieval-info-bib-dom.xml
…
zebra-authorities-dom-site.cfg.in
…
zebra-biblios-dom-site.cfg.in
…
zebra.passwd.in
…