priority/milestone/component/version get repeated twice for users without TICKET_ADMIN permissions
|Reported by:||thomasvs||Owned by:||Noah Kantrowitz|
|Severity:||normal||Keywords:||fixed condfields null|
I'm not sure how to narrow this down in the code. I had one user complain that he saw these four fields twice, and hence Trac was giving a traceback when trying to submit:
Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.4/site-packages/trac/ticket/web_ui.py", line 279, in process_request self._do_save(req, db, ticket) File "/usr/lib/python2.4/site-packages/trac/ticket/web_ui.py", line 506, in _do_save ticket.populate(req.args) File "/usr/lib/python2.4/site-packages/trac/ticket/model.py", line 124, in populate self[name] = values.get(name, '') File "/usr/lib/python2.4/site-packages/trac/ticket/model.py", line 117, in __setitem__ value = value.strip() AttributeError: 'list' object has no attribute 'strip'
Looks like usually a form value goes into a string, and now because there are duplicates it went into a list of str
The problem went away when giving the user TRAC_ADMIN or TICKET_ADMIN, but not with any of the other TICKET_* permissions.
What more info would you want to be able to diagnose this ?
Change History (12)
comment:4 Changed 9 years ago by
|Keywords:||fixed condfields null added|
|Status:||new → closed|
|Type:||defect → enhancement|