[Koha-bugs] [Bug 24862] REST API throws 500 errors for browser after logout

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 13 16:13:57 CET 2020


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

--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 100683
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100683&action=edit
Bug 24862: Regression tests

This patch introduces tests for the expected behaviour on API routes
that expect a logged in user, but the request is made with an anonymous
session cookie.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/auth_authenticate_api_request.t
=> FAIL: Tests fail because the situation is not handled correctly in
the code

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list