Bug 21069 - Koha::Patron->generate_userid use encourages a race condition
Summary: Koha::Patron->generate_userid use encourages a race condition
Status: RESOLVED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 20287
Blocks:
  Show dependency treegraph
 
Reported: 2018-07-12 14:50 UTC by Martin Renvoize (ashimema)
Modified: 2024-02-13 12:00 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Renvoize (ashimema) 2018-07-12 14:50:08 UTC
We're using ->generate_userid followed later down a script by ->store in a number of places. This is a race condition whereby we could inadvertantly end up with duplicate userid's on the system.
Comment 1 Martin Renvoize (ashimema) 2024-02-13 12:00:29 UTC
This doesn't appear to have ever really hit in real life.