Koha-clms/svc
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
..
cataloguing Bug 31682: Silence automatic linker warn 2022-10-11 10:41:23 -03:00
club Bug 37031: Club enrollment from staff interface fails due to Entrollment typo 2024-07-17 21:33:49 +00:00
config Bug 36084: svc - config/systempreferences 2024-03-01 11:00:46 +01:00
letters Bug 32496: Reduce unnecessary unblessings of objects in Circulation.pm 2023-09-22 10:52:39 -03:00
mana Bug 36418: Catch more cases where header response should be application/json 2024-04-02 17:59:04 +02:00
members Bug 36084: svc - members/add_to_list 2024-03-01 11:00:55 +01:00
records Bug 32631: Error when previewing record during batch record modification 2023-01-27 16:16:43 -03:00
virtualshelves Bug 34913: Adjust C4::Utils::DataTables::VirtualShelves 2024-01-26 15:13:42 +01:00
article_request Bug 36418: Set header response content type to application/json - svc 2024-04-02 17:59:04 +02:00
authentication Bug 36700: Update svc to use CSRF-TOKEN 2024-05-01 13:40:19 +01:00
authorised_values Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
barcode Bug 37464: Validate "type" sent to barcode/svc 2024-08-12 15:35:10 -03:00
bib Bug 36891: Restore returning 404 from svc/bib when the bib number doesn't exist 2024-07-18 20:12:47 +00:00
bib_framework Bug 28750: fix svc/bib_framework 2021-07-26 16:28:52 +02:00
bib_profile
…
checkin Bug 36418: Explicitly set response to json 2024-04-02 17:59:03 +02:00
checkout_notes Bug 36084: svc - checkout_notes 2024-03-01 11:00:49 +01:00
checkouts Bug 36418: Set header response content type to application/json - svc 2024-04-02 17:59:04 +02:00
convert_report Bug 34478: Add 'op' to reports/guided_reports - WIP 2024-03-01 10:58:53 +01:00
cover_images Bug 36084: svc - cover_images 2024-03-01 11:00:52 +01:00
creator_batches Bug 36084: svc - creator_batches 2024-03-01 11:00:53 +01:00
holds Bug 36418: Set header response content type to application/json - svc 2024-04-02 17:59:04 +02:00
import_bib Bug 33418: Add overlay_framework option to connexion scripts 2024-05-10 16:45:50 +02:00
localization
…
new_bib Bug 29697: Replace some missing occurrences 2022-07-25 09:30:30 -03:00
problem_reports Bug 36084: svc - problem_reports 2024-03-01 11:00:56 +01:00
recall Bug 36418: Catch more cases where header response should be application/json 2024-04-02 17:59:04 +02:00
renew Bug 36418: Explicitly set response to json 2024-04-02 17:59:03 +02:00
report Bug 37056: Mount a new intranet_svc api to avoid redirects 2024-11-18 17:42:23 +00:00
return_claims Bug 36418: Set header response content type to application/json - svc 2024-04-02 17:59:04 +02:00
split_callnumbers
…