Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#933 closed defect (wontfix)

KeyError exception in view.py. "id"

Reported by: lipka@… Owned by: coderanger
Priority: normal Component: PrivateTicketsPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.10

Description

with WorkFlow (=0.10dev) I get

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 313, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 193, in dispatch
    chrome.populate_hdf(req, chosen_handler)
  File "/usr/lib/python2.3/site-packages/trac/web/chrome.py", line 311, in populate_hdf
    for category, name, text in contributor.get_navigation_items(req):
  File "build/bdist.linux-i686/egg/privatetickets/view.py", line 30, in get_navigation_items
KeyError: 'id'

for a user belonging to group extern, where extern has only SEARCH_VIEW TICKET_CREATE and TICKET_VIEW_SELF
(no wiki, no timeline, nothing)

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by anonymous

  • Severity changed from normal to blocker

comment:2 follow-up: Changed 8 years ago by coderanger

  • Resolution set to wontfix
  • Status changed from new to closed

Having not looked at the workflow code, I'm not sure what is causing this. Please try with a 0.10 release version. This code is very very tied to the internal workings of the ticket system, and I will not be supporting it on the workflow branch (at least until it is merged into Trac's mainline).

comment:3 Changed 8 years ago by lipka@…

Too bad. Unless I'm able to fix this myself my company will probably decide to drop Trac in favour of some commercial product.

comment:4 in reply to: ↑ 2 Changed 8 years ago by anonymous

Replying to coderanger:

Having not looked at the workflow code, I'm not sure what is causing this. Please try with a 0.10 release version.

No chance, we need the workflow stuff.
fixed this myself by inserting

                if req.args.has_key('id'):

as line 30 into view.py and indenting the next two lines

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.