Bug 21069

Summary: Koha::Patron->generate_userid use encourages a race condition
Product: Koha Reporter: Martin Renvoize (ashimema) <martin.renvoize>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: RESOLVED WORKSFORME QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 20287    
Bug Blocks:    

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.