Retry mechanism fails with oauth-authenticated requests
Bug #1435767 reported by
Raphaël Badin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Raphaël Badin |
Bug Description
When a serialization error occurs in a oauth-authenticated request, the retried transaction has exactly the same Nonce and thus fails with Authorization Error: 'Nonce already used: 06c2928bc8444e7
It seems storing the None happens outside of the transaction that gets rolledback when something fails.
I was testing something else when I discovered this and I was using the dev environment. Let's make sure it also happens from packaging before we triage this.
Related branches
lp:~rvb/maas/oauth-retry-bug-1435767
- Gavin Panella (community): Approve
-
Diff: 186 lines (+106/-5)2 files modifiedsrc/maasserver/utils/tests/test_views.py (+90/-5)
src/maasserver/utils/views.py (+16/-0)
description: | updated |
tags: | added: isolation-level |
Changed in maas: | |
milestone: | none → 1.8.0 |
Changed in maas: | |
status: | New → Triaged |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Raphaël Badin (rvb) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.