#750: Invalid ticket ID in relation makes ticket view crash
------------------------+----------------------
Reporter: olemis | Owner: nobody
Type: defect | Status: new
Priority: critical | Milestone:
Component: relations | Version: 0.8.0dev
Resolution: | Keywords:
------------------------+----------------------
Comment (by rjollos):
The patch seems to fix the issue. For reference, here is the traceback
seen prior to the patch (at r1568745),
{{{#!pycon
10:36:00 PM Trac[main] ERROR: Exception caught while post-processing
request:
Traceback (most recent call last):
File "/home/user/Workspace/bhdev/bloodhound.git/trac/trac/web/main.py",
line 243, in dispatch
self._post_process_request(req)
File "/home/user/Workspace/bhdev/bloodhound.git/trac/trac/web/main.py",
line 340, in _post_process_request
f.post_process_request(req, *(None,)*extra_arg_count)
File
"/home/user/Workspace/bhdev/bloodhound.git/bloodhound_relations/bhrelations/web_ui.py",
line 151, in post_process_request
ticket = data['ticket']
TypeError: 'NoneType' object has no attribute '__getitem__'
10:36:00 PM Trac[main] WARNING: [127.0.0.1] HTTPNotFound: 404 Invalid
ticket number (Ticket 23 does not exist.)
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/750#comment:6>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker