[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
Fri Jan 26 15:15:04 CET 2024


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

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 161539
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161539&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

-- 
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