#1128 closed defect (duplicate)
changing component from one component1 to another component throws exception
Reported by: | anonymous | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ticket system | Version: | 0.8 |
Severity: | major | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
We had created a ticket that had used the default component1 component name.
We deleted that component1 name from the database using trac admin. Then we tried to switch that ticket to use the new component name. you can "preview" the change but not persit the change to the ticket.
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/core.py", line 525, in cgi_start
real_cgi_start()
File "/usr/lib/python2.3/site-packages/trac/core.py", line 520, in real_cgi_start
dispatch_request(path_info, args, req, env)
File "/usr/lib/python2.3/site-packages/trac/core.py", line 435, in dispatch_request
module.run()
File "/usr/lib/python2.3/site-packages/trac/Module.py", line 44, in run
self.render()
File "/usr/lib/python2.3/site-packages/trac/Ticket.py", line 444, in render
self.save_changes (id)
File "/usr/lib/python2.3/site-packages/trac/Ticket.py", line 372, in save_changes
when=now)
File "/usr/lib/python2.3/site-packages/trac/Ticket.py", line 139, in save_changes
old_owner = cursor.fetchone()[0]
TypeError: unsubscriptable object
Attachments (0)
Change History (2)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
Component: | general → ticket system |
---|---|
Description: | modified (diff) |
Resolution: | → duplicate |
Status: | new → closed |
This is a duplicate of #1045.
We just tried a "fix".
We added component1 back into the database which then allowed us to change the ticket to the new component name. We then deleted component1 from the database again.
It was probably failing on looking up the componentId in the database or something like that.