Project

General

Profile

Bug #2065

In tissue_gui, filtering by issue sometimes fails.

Added by Randy Reitz about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Start date:
10/27/2011
Due date:
% Done:

0%

Estimated time:
Duration:

Description

For a situation where multiple detectors have the same issue_code, this traceback has been observed:
11-10-27 10:49:28 10372 ERROR django.request> Internal Server Error: /tissue/showEvents/issue/16/
Traceback (most recent call last):
File "/fnal/ups/prd/django/v1_3_0/Django-1.3/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/fnal/ups/prd/tissue_gui/v2_2c/dj/tissue_gui/src/event_gui.py", line 331, in showEvents_byIssue
data = _showEventsData(request, form)
File "/fnal/ups/prd/tissue_gui/v2_2c/dj/tissue_gui/src/event_gui.py", line 217, in _showEventsData
limit=d.get('limit'))
File "/fnal/ups/prd/tissue_gui/v2_2c/dj/tissue_gui/src/event_gui.py", line 286, in filter_events
return TissueQueryImpl.queryEvents(agent, **kwargs)
File "/fnal/ups/prd/tissue_query/v2_2a/TissueQuery/TissueQueryImpl.py", line 208, in queryEvents
issue = Issues.objects.get(icode=icode)
File "/fnal/ups/prd/django/v1_3_0/Django-1.3/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/fnal/ups/prd/django/v1_3_0/Django-1.3/django/db/models/query.py", line 351, in get
% (self.model._meta.object_name, num, kwargs))
MultipleObjectsReturned: get() returned more than one Issues -- it returned 2! Lookup parameters were {'icode': u'MSSQL'}

History

#1 Updated by Lauri Carpenter about 8 years ago

  • Status changed from New to Resolved

#2 Updated by Lauri Carpenter about 8 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF