Activity log for bug #706035

Date Who What changed Old value New value Message
2011-01-21 19:20:36 Anthony Lenton bug added bug
2011-01-21 19:20:45 Anthony Lenton rnr-server: status New Confirmed
2011-01-21 19:20:48 Anthony Lenton rnr-server: importance Undecided Medium
2011-01-21 19:20:59 Anthony Lenton bug task added software-center-agent
2011-01-21 19:21:07 Anthony Lenton software-center-agent: status New Confirmed
2011-01-21 19:21:11 Anthony Lenton software-center-agent: importance Undecided High
2011-01-24 13:44:16 Anthony Lenton branch linked lp:~elachuni/rnr-server/avoid-duplicate-consumer
2011-03-13 20:00:20 Canonical ISD bug wrangler tags kb-defect
2011-03-13 20:00:27 Canonical ISD bug wrangler rnr-server: importance Medium High
2011-03-14 08:00:26 Canonical ISD bug wrangler rnr-server: status Confirmed In Progress
2011-03-14 08:00:26 Canonical ISD bug wrangler rnr-server: assignee Łukasz Czyżykowski (lukasz-czyzykowski)
2011-03-14 08:00:31 Canonical ISD bug wrangler software-center-agent: status Confirmed In Progress
2011-03-14 08:00:31 Canonical ISD bug wrangler software-center-agent: assignee Łukasz Czyżykowski (lukasz-czyzykowski)
2011-03-17 08:01:23 Łukasz Czyżykowski branch linked lp:~lukasz-czyzykowski/rnr-server/fix-duplicate-consumer
2011-03-17 09:34:05 Canonical ISD bug wrangler rnr-server: status In Progress Fix Committed
2011-03-17 09:34:09 Canonical ISD bug wrangler software-center-agent: status In Progress Fix Committed
2011-03-23 15:24:59 Michael Nelson description Environment: Request Method: POST Request URL: http://reviews.staging.ubuntu.com/reviews/api/1.0/reviews/ Django Version: 1.1.1 Python Version: 2.6.5 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django_openid_auth', 'django_configglue', 'reviewsapp', 'south'] Installed Middleware: ['django.middleware.cache.UpdateCacheMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.cache.FetchFromCacheMiddleware'] Traceback: File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/pymodules/python2.6/django/views/decorators/vary.py" in inner_func 21. response = func(*args, **kwargs) File "/usr/lib/python2.6/dist-packages/piston/resource.py" in __call__ 74. if not self.authentication.is_authenticated(request): File "/usr/lib/python2.6/dist-packages/reviewsapp/auth.py" in is_authenticated 78. return super(SSOOAuthAuthentication, self).is_authenticated(request) File "/usr/lib/python2.6/dist-packages/piston/authentication.py" in is_authenticated 226. consumer, token, parameters = self.validate_token(request) File "/usr/lib/python2.6/dist-packages/reviewsapp/auth.py" in validate_token 120. return oauth_server.verify_request(oauth_request) File "/usr/lib/python2.6/dist-packages/oauth/oauth.py" in verify_request 433. consumer = self._get_consumer(oauth_request) File "/usr/lib/python2.6/dist-packages/oauth/oauth.py" in _get_consumer 481. consumer = self.data_store.lookup_consumer(consumer_key) File "/usr/lib/python2.6/dist-packages/reviewsapp/models/oauthtoken.py" in lookup_consumer 161. consumer = Consumer.objects.get(key=consumer_key) File "/usr/lib/pymodules/python2.6/django/db/models/manager.py" in get 120. return self.get_query_set().get(*args, **kwargs) File "/usr/lib/pymodules/python2.6/django/db/models/query.py" in get 307. % (self.model._meta.object_name, num, kwargs)) Exception Type: MultipleObjectsReturned at /reviews/api/1.0/reviews/ Exception Value: get() returned more than one Consumer -- it returned 2! Lookup parameters were {'key': '6ehHBGz'} Environment: Request Method: POST Request URL: http://reviews.staging.ubuntu.com/reviews/api/1.0/reviews/ Django Version: 1.1.1 Python Version: 2.6.5 Installed Applications: ['django.contrib.admin',  'django.contrib.auth',  'django.contrib.contenttypes',  'django.contrib.sessions',  'django.contrib.sites',  'django_openid_auth',  'django_configglue',  'reviewsapp',  'south'] Installed Middleware: ['django.middleware.cache.UpdateCacheMiddleware',  'django.middleware.common.CommonMiddleware',  'django.contrib.sessions.middleware.SessionMiddleware',  'django.contrib.auth.middleware.AuthenticationMiddleware',  'django.middleware.cache.FetchFromCacheMiddleware'] Traceback: File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in get_response   92. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/pymodules/python2.6/django/views/decorators/vary.py" in inner_func   21. response = func(*args, **kwargs) File "/usr/lib/python2.6/dist-packages/piston/resource.py" in __call__   74. if not self.authentication.is_authenticated(request): File "/usr/lib/python2.6/dist-packages/reviewsapp/auth.py" in is_authenticated   78. return super(SSOOAuthAuthentication, self).is_authenticated(request) File "/usr/lib/python2.6/dist-packages/piston/authentication.py" in is_authenticated   226. consumer, token, parameters = self.validate_token(request) File "/usr/lib/python2.6/dist-packages/reviewsapp/auth.py" in validate_token   120. return oauth_server.verify_request(oauth_request) File "/usr/lib/python2.6/dist-packages/oauth/oauth.py" in verify_request   433. consumer = self._get_consumer(oauth_request) File "/usr/lib/python2.6/dist-packages/oauth/oauth.py" in _get_consumer   481. consumer = self.data_store.lookup_consumer(consumer_key) File "/usr/lib/python2.6/dist-packages/reviewsapp/models/oauthtoken.py" in lookup_consumer   161. consumer = Consumer.objects.get(key=consumer_key) File "/usr/lib/pymodules/python2.6/django/db/models/manager.py" in get   120. return self.get_query_set().get(*args, **kwargs) File "/usr/lib/pymodules/python2.6/django/db/models/query.py" in get   307. % (self.model._meta.object_name, num, kwargs)) Exception Type: MultipleObjectsReturned at /reviews/api/1.0/reviews/ 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.models.oauthtoken - INFO - consumer_key=QBbQpLf has 2 entries in the database but without hitting an error.
2011-03-29 15:58:02 Dave Morley tags kb-defect kb-defect qa-untestable
2011-03-31 19:54:50 Canonical ISD bug wrangler rnr-server: status Fix Committed Fix Released
2011-03-31 19:54:53 Canonical ISD bug wrangler software-center-agent: status Fix Committed Fix Released
2011-07-08 14:36:02 Anthony Lenton rnr-server: milestone 11.03