Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

#10691 closed defect (cantfix)

ValueError: list.remove(x): x not in list

Reported by: gwe@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.12
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a POST operation on /query, Trac issued an internal error.

I did a batch modify on about 50 tickets (moving them from in_QA to fixed). The error appeared on hitting Submit.

Request parameters:

{'__FORM_TOKEN': u'970418cd0f31aec48ff3a90b',
 'batchmod_modify_changetime': u'true',
 'batchmod_submit': u'Change tickets',
 'batchmod_value_comment': u'Closing a number of tickets which have been in_QA for a long time.',
 'batchmod_value_resolution': u'fixed',
 'batchmod_value_status': u'closed',
 'query_href': u'/trac/powerflarm/query?status=in_QA&col=id&col=summary&col=status&col=type&col=priority&col=milestone&col=component&order=priority',
 'selectedTickets': u'16,147,148,160,166,203,281,293,365,175,182,256,369,372,55,98,101,126,132,133,134,144,152,153,165,188,189,192,195,229,243,253,254,265,276,277,314,336,366,73,114,161,162,163,164,172,179,185,190,193,194,201,231,262,316,318,117,288,327'}

User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19

System Information

Trac 0.12
Genshi 0.6
mod_python 3.3.1
pysqlite 2.4.1
Python 2.5.2 (r252:60911, Jan 24 2010, 15:24:24)
[GCC 4.3.2]
setuptools 0.6c8
SQLite 3.5.9
Subversion 1.5.1 (r32289)
jQuery 1.4.2

Enabled Plugins

BatchModify 0.8.0-trac0.12
TracAccountManager 0.3dev-r9785
TracCustomRoadmap 0.4
TracMasterTickets 3.0.2
TracRevtreePlugin 0.6.4dev-r8057
TracWysiwyg 0.12.0.3

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 200, in dispatch
    chosen_handler)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 346, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/var/lib/trac/powerflarm/plugins/BatchModify-0.8.0_trac0.12-py2.5.egg/batchmod/web_ui.py", line 71, in pre_process_request
    batch_modifier.process_request(req, self.env, self.log)
  File "/var/lib/trac/powerflarm/plugins/BatchModify-0.8.0_trac0.12-py2.5.egg/batchmod/web_ui.py", line 158, in process_request
    values, comment, modify_changetime, send_notifications)
  File "/var/lib/trac/powerflarm/plugins/BatchModify-0.8.0_trac0.12-py2.5.egg/batchmod/web_ui.py", line 194, in _save_ticket_changes
    @with_transaction(env)
  File "build/bdist.linux-x86_64/egg/trac/db/api.py", line 77, in transaction_wrapper
    fn(ldb)
  File "/var/lib/trac/powerflarm/plugins/BatchModify-0.8.0_trac0.12-py2.5.egg/batchmod/web_ui.py", line 213, in _implementation
    t.save_changes(req.authname, comment, when=new_changetime)
  File "build/bdist.linux-x86_64/egg/trac/ticket/model.py", line 353, in save_changes
    listener.ticket_changed(self, comment, author, old_values)
  File "build/bdist.linux-x86_64/egg/mastertickets/api.py", line 111, in ticket_changed
    links.save(author, comment, tkt.time_changed, db)
  File "build/bdist.linux-x86_64/egg/mastertickets/model.py", line 68, in save
    update_field(new_value)
  File "build/bdist.linux-x86_64/egg/mastertickets/model.py", line 61, in <lambda>
    update_field = lambda lst: lst.remove(str(self.tkt.id))
ValueError: list.remove(x): x not in list

Attachments (0)

Change History (1)

comment:1 by Jun Omae, 13 years ago

Resolution: cantfix
Status: newclosed

This is th:MasterTicketsPlugin issue (PluginIssue). The same issue already has been reported at th:#8792.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.