Edgewall Software

Opened 16 years ago

Last modified 15 years ago

#7704 closed defect

Cannot update ticket_type with no name — at Initial Version

Reported by: bladezibit@… Owned by:
Priority: normal Milestone: 0.12
Component: ticket system Version: 0.10.5
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Trac allow addition of Ticket Type named " " (without quote).

When I try to remove a Ticket Type named " " (by clicking the remove button), the system fails silently and nothing happend (the category is still there).

When I try to set the Ticket Type named " " as default, the system fails silently (the old default Ticket Type is still the default).

If I try to change the Order of my Ticket Type, I get the following exception:

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 406, 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 "/opt/trac/plugins/TracWebAdmin-0.1.2dev_r4240-py2.4.egg/webadmin/web_ui.py", line 109, in process_request File "/opt/trac/plugins/TracWebAdmin-0.1.2dev_r4240-py2.4.egg/webadmin/ticket.py", line 367, in process_admin_request File "/usr/lib/python2.4/site-packages/trac/ticket/model.py", line 388, in update

assert self.name, 'Cannot update %s with no name' % self.type

AssertionError: Cannot update ticket_type with no name

Trac should not allow addition of Ticket Type named " " if it's not a valid name…

Thx, Fred

Change History (0)

Note: See TracTickets for help on using tickets.