[Koha-bugs] [Bug 35518] Call to C4::Context->userenv happens before it's gets populated breaks code logic
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Feb 1 00:07:16 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35518
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #161539|0 |1
is obsolete| |
--- Comment #2 from David Nind <david at davidnind.com> ---
Created attachment 161707
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161707&action=edit
Bug 35518: Check authentication and set userenv before fetching userenv
variables
Currently we get the userenv before we have set it correctly for the session
To test:
1 - Sign in as a user with fast cataloging permission
2 - Bring up a patron, type gibberish into barcode field to get a fast
cataloging link
3 - Check the link, it should have your current signed in barcode
4 - Sign in to a different browser with a different user and at a different
branch
5 - Bring up a aptron in circulation and type gibberish into barcode field to
get a fast cataloging link
6 - It may have your branch, but it may also have the other user's branch from
the other window
7 - Keep entering gibberish to get a link until one user has the correct
branch
8 - Then switch to the other browser, and keep entering gibberish, watch the
branchcode change
9 - Apply patch, restart all
10 - Test switching between browsers. generating fast cataloging links
11 - Users should now consistently have the correct branch
Signed-off-by: David Nind <david at davidnind.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list