duplicate key webcatalog_nonce_nonce_key
Bug #1040523 reported by
Michael Nelson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Apps Directory |
Fix Released
|
Medium
|
Michael Nelson |
Bug Description
We're currently seeing over 4k oopses recorded for uwc each day, 3.9k of which are duplicate key for webcatalog_
[1] Stats https:/
[2] Traceback https:/
Related branches
lp://staging/~michael.nelson/ubuntu-webcatalog/1040523-oops-creating-nonce
- Anthony Lenton (community): Approve
-
Diff: 305 lines (+248/-4)5 files modifiedsrc/webcatalog/migrations/0028_nonce_unique_together.py (+174/-0)
src/webcatalog/models/oauthtoken.py (+2/-1)
src/webcatalog/tests/__init__.py (+1/-0)
src/webcatalog/tests/factory.py (+6/-3)
src/webcatalog/tests/test_models_oauth.py (+65/-0)
Changed in ubuntu-webcatalog: | |
status: | Confirmed → Fix Committed |
Changed in ubuntu-webcatalog: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Based on the DataStore. lookup_ nonce() method, and it's call-site in oauth.OAuthServ er._check_ nonce() , it looks as though lookup_nonce() is responsible should "Verify that the nonce is uniqueish.". I assume that means unique for the consumer/token keys, yet the database constraint is a simple unique constraint on webcatalog. Nonce.nonce.
I'll prepare branch that relaxes this to unique for consumer/token - if that's not correct, let me know.