Closed Bug 776002 Opened 14 years ago Closed 12 years ago

[traceback] IntegrityError: (1062, "Duplicate entry '37c804049fb09aba4c04f5d45ac90ac9' for key 'actioncounters_actioncounterunique_unique'")

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect, P2)

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: stephend, Unassigned)

References

()

Details

I can't reproduce this manually by hitting http://developer-new.mozilla.org/en-US/demos/detail/balls-with-gravitation/launch, but the following causes a traceback (I used ZAP Proxy): <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'csrftoken': '1eddda7a69d30ffe278ae304d10526ef', 'sessionid': '04d67fdaaf9d76001ceda82a2c4e2c69'}, META:{'CSRF_COOKIE': '1eddda7a69d30ffe278ae304d10526ef', 'DOCUMENT_ROOT': '/data/www/developer.mozilla.org/kuma/webroot', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_COOKIE': '$Version=0; sessionid=04d67fdaaf9d76001ceda82a2c4e2c69; $Path=/, $Version=0; csrftoken=1eddda7a69d30ffe278ae304d10526ef; $Path=/', 'HTTP_HOST': 'developer-new.mozilla.org', 'HTTP_SSLCLIENTCERTSTATUS': 'NoClientCert', 'HTTP_SSLCLIENTCIPHER': 'SSL_RSA_WITH_RC4_128_SHA, version=TLSv1, bits=128', 'HTTP_SSLSESSIONID': '468BA03C2B0D9410DCDE053EB89E17072329ABF670ED0E66010C3BE0BD8461C0', 'HTTP_USER_AGENT': 'DirBuster-0.12 (http://www.owasp.org/index.php/Category:OWASP_DirBuster_Project)', 'HTTP_X_CLUSTER_CLIENT_IP': '63.245.220.240', 'PATH_INFO': u'/en-US/demos/detail/menu-cafe/launch', 'PATH_TRANSLATED': '/data/www/developer.mozilla.org/kuma/wsgi/kuma.wsgi/en-US/demos/detail/menu-cafe/launch', 'QUERY_STRING': '', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/en-US/demos/detail/menu-cafe/launch', 'SCRIPT_FILENAME': '/data/www/developer.mozilla.org/kuma/wsgi/kuma.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://developer-new.mozilla.org/en-US/demos/detail/menu-cafe/launch', 'SCRIPT_URL': '/en-US/demos/detail/menu-cafe/launch', Traceback (most recent call last): File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/core/handlers/base.py", line 100, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/www/developer.mozilla.org/kuma/apps/demos/views.py", line 222, in launch submission.launches.increment(request) File "/data/www/developer.mozilla.org/kuma/apps/actioncounters/fields.py", line 93, in increment counter = self._get_counter_for_request(request) File "/data/www/developer.mozilla.org/kuma/apps/actioncounters/fields.py", line 85, in _get_counter_for_request self.instance, self.name, request, do_create) File "/data/www/developer.mozilla.org/kuma/apps/actioncounters/models.py", line 52, in get_unique_for_request total=0)) File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/db/models/manager.py", line 135, in get_or_create return self.get_query_set().get_or_create(**kwargs) File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/db/models/query.py", line 391, in get_or_create raise e IntegrityError: (1062, "Duplicate entry '37c804049fb09aba4c04f5d45ac90ac9' for key 'actioncounters_actioncounterunique_unique'")
Priority: -- → P2
Version: Kuma → unspecified
Component: Website → Landing pages
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.