Issue 709: [Django] Error (EXTERNAL IP): /api/json/reviewrequests/47420/diff/1/file/827131/line/314/comments/ http://code.google.com/p/reviewboard/issues/detail?id=709
New issue report by trowbrds: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.5/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func response = view_func(request, *args, **kwargs) File "/usr/lib/python2.5/site-packages/Djblets-0.4.dev_r11901-py2.5.egg/djblets/webapi/decorators.py", line 32, in _checklogin return view_func(request, *args, **kwargs) File "/usr/lib/python2.5/site-packages/ReviewBoard-0.9.dev_r1537-py2.5.egg/reviewboard/webapi/json.py", line 1201, in diff_line_comments first_line=line) File "/usr/lib/python2.5/site-packages/django/db/models/fields/related.py", line 419, in get_or_create super(ManyRelatedManager, self).get_or_create(**kwargs) File "/usr/lib/python2.5/site-packages/django/db/models/manager.py", line 96, in get_or_create return self.get_query_set().get_or_create(**kwargs) File "/usr/lib/python2.5/site-packages/django/db/models/query.py", line 326, in get_or_create return self.get(**kwargs), False File "/usr/lib/python2.5/site-packages/django/db/models/query.py", line 305, in get % (self.model._meta.object_name, num, kwargs)) MultipleObjectsReturned: get() returned more than one Comment -- it returned 2! Lookup parameters were {'first_line': u'314', 'interfilediff__isnull': True, 'filediff': <FileDiff: //depot/build/main/bin/build_restore_reaper.py (1) -> build_restore_reaper.py (2008-10-06 15:12:28)>} <ModPythonRequest path:/api/json/reviewrequests/47420/diff/1/file/827131/line/314/comments/, GET:<QueryDict: {}>, POST:<QueryDict: {u'action': [u'set'], u'text': [u'The latter try/except both have a sys.exit() .. you can just have one at the top except level.'], u'num_lines': [u'1'], u'dummy': [u'']}>, COOKIES:{'collapsediffs': 'True', 'rbsessionid': '19ec03b4dce2fc196c617d0d2da1ed97', 's_vi': '', 'sessionid': 'ed8cda24442e1c735d2c0873f1071cb5'}, META:{'AUTH_TYPE': None, 'CONTENT_LENGTH': 0L, 'CONTENT_TYPE': None, 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_CONTENT_LENGTH': '164', 'HTTP_CONTENT_TYPE': 'application/xml; charset=UTF-8', 'HTTP_COOKIE': 's_vi=[CS]v1|48F41A94000067E0-A3A0825000020E9[CE]; sessionid=ed8cda24442e1c735d2c0873f1071cb5; rbsessionid=19ec03b4dce2fc196c617d0d2da1ed97; collapsediffs=True', 'HTTP_HOST': 'reviewboard.eng.vmware.com', 'HTTP_KEEP_ALIVE': '300', 'HTTP_PRAGMA': 'no-cache', 'HTTP_REFERER': 'https://reviewboard.eng.vmware.com/r/47420/diff/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3', 'PATH_INFO': u'/api/json/reviewrequests/47420/diff/1/file/827131/line/314/comments/', 'PATH_TRANSLATED': None, 'QUERY_STRING': None, 'REMOTE_ADDR': '10.16.244.109', 'REMOTE_HOST': None, 'REMOTE_IDENT': None, 'REMOTE_USER': None, 'REQUEST_METHOD': 'POST', 'SCRIPT_NAME': '', 'SERVER_NAME': 'reviewboard.eng.vmware.com', 'SERVER_PORT': 0, 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'mod_python'}> Issue attributes: Status: Confirmed Owner: ---- Labels: Type-Defect Priority-Medium -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "reviewboard-issues" group. To post to this group, send email to reviewboard-issues@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/reviewboard-issues?hl=en -~----------~----~----~----~------~----~------~--~---