+7
−4
+6
−1
Loading
Due to an influx of spam, we have had to temporarily disable account registrations. Please write an email to accountsupport@archlinux.org, with your desired username, if you want to get access. Sorry for the inconvenience.
Sessions.UsersID had no uniqueness constraint at the DB level, only an ORM-declared primary_key. Under concurrent login requests for the same user, both transactions could INSERT a new session row before either committed, leaving duplicate rows that caused SQLAlchemy to raise MultipleResultsFound (HTTP 500) on the next login. Fix with migration and expire ORM session on IntegrityError