Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#933 closed defect (wontfix)

KeyError exception in view.py. "id"

Reported by: lipka@… Owned by: Noah Kantrowitz
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 17 years ago by anonymous

Severity: normalblocker

comment:2 Changed 17 years ago by Noah Kantrowitz

Resolution: wontfix
Status: newclosed

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 17 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 17 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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.