Duplicate Consumers retrieved during authentication
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ratings and Reviews server |
Fix Released
|
High
|
Łukasz Czyżykowski | ||
Software Center Agent |
Fix Released
|
High
|
Łukasz Czyżykowski |
Bug Description
Environment:
Request Method: POST
Request URL: http://
Django Version: 1.1.1
Python Version: 2.6.5
Installed Applications:
['django.
'django.
'django.
'django.
'django.
'django_
'django_
'reviewsapp',
'south']
Installed Middleware:
['django.
'django.
'django.
'django.
'django.
Traceback:
File "/usr/lib/
92. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
21. response = func(*args, **kwargs)
File "/usr/lib/
74. if not self.authentica
File "/usr/lib/
78. return super(SSOOAuthA
File "/usr/lib/
226. consumer, token, parameters = self.validate_
File "/usr/lib/
120. return oauth_server.
File "/usr/lib/
433. consumer = self._get_
File "/usr/lib/
481. consumer = self.data_
File "/usr/lib/
161. consumer = Consumer.
File "/usr/lib/
120. return self.get_
File "/usr/lib/
307. % (self.model.
Exception Type: MultipleObjects
Exception Value: get() returned more than one Consumer -- it returned 2! Lookup parameters were {'key': '6ehHBGz'}
QA Notes:
Verified this by watching the log on the server and seeing:
2011-03-23 15:14:08,587 - reviewsapp.
but without hitting an error.
Related branches
- Michael Nelson (community): Approve (code)
- Diff: 0 lines
- Michael Nelson (community): Approve
-
Diff: 122 lines (+55/-6)3 files modifiedMakefile (+1/-1)
src/reviewsapp/models/oauthtoken.py (+29/-5)
src/reviewsapp/tests/test_auth.py (+25/-0)
Changed in rnr-server: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in software-center-agent: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: kb-defect |
Changed in rnr-server: | |
importance: | Medium → High |
Changed in rnr-server: | |
assignee: | nobody → Łukasz Czyżykowski (lukasz-czyzykowski) |
status: | Confirmed → In Progress |
Changed in software-center-agent: | |
assignee: | nobody → Łukasz Czyżykowski (lukasz-czyzykowski) |
status: | Confirmed → In Progress |
Changed in rnr-server: | |
status: | In Progress → Fix Committed |
Changed in software-center-agent: | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in rnr-server: | |
status: | Fix Committed → Fix Released |
Changed in software-center-agent: | |
status: | Fix Committed → Fix Released |
Changed in rnr-server: | |
milestone: | none → 11.03 |
This happened again this week on the rnr vps: https:/ /pastebin. canonical. com/44596/