Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#6252 closed defect (duplicate)

Trac Admin allows creation of Severties with blank name and does not allow modification

Reported by: jamming_tofu@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/console Version:
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

Under Severities, you can create a severity with a name of " ". When you try to change the order of it, you get this traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/TracWebAdmin-0.1.2dev_r164-py2.3.egg/webadmin/web_ui.py", line 109, in process_request
    path_info)
  File "/usr/lib/python2.3/site-packages/TracWebAdmin-0.1.2dev_r164-py2.3.egg/webadmin/ticket.py", line 367, in process_admin_request
    enum.update(db=db)
  File "/usr/lib/python2.3/site-packages/trac/ticket/model.py", line 388, in update
    assert self.name, 'Cannot update %s with no name' % self.type
AssertionError: Cannot update severity with no name

When you try to delete it, it does not do anything. My guess is that it needs validation when it is created to prevent this error.

Attachments (0)

Change History (1)

comment:1 by Emmanuel Blot, 17 years ago

Description: modified (diff)
Priority: highnormal
Resolution: duplicate
Status: newclosed

Duplicate of #5612.

When you're about to submit a new ticket:

  • please search for existing tickets
  • please specify which version you're using
  • please use brackets ({{{ }}}) to paste the traceback

Thanks in advance.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.