[Koha-bugs] [Bug 24862] New: REST API throws 500 errors for browser after logout
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Mar 12 23:29:00 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24862
Bug ID: 24862
Summary: REST API throws 500 errors for browser after logout
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: REST API
Assignee: koha-bugs at lists.koha-community.org
Reporter: dcook at prosentient.com.au
It looks like the REST API might not be handling cookies correctly.
To test:
0. Use koha-testing-docker
1. Login to http://localhost:8080/
2. Go to http://localhost:8080/api/v1/libraries
3. Observe a 200 OK HTTP code and JSON output
4. Logout from http://localhost:8080/
5. Go to http://localhost:8080/api/v1/libraries
6. Observe a 500 Internal Server Error and the following JSON output:
{"error":"Something went wrong, check the logs."}
It seems to me that really that should be returning a 401 and the following
JSON output:
{"error":"Authentication failure."}
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list