Edgewall Software

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12185 closed defect (cantfix)

TypeError: ticket_changed() takes exactly 4 arguments (5 given)

Reported by: kevin.cartier@… Owned by:
Priority: normal Milestone:
Component: general Version: 1.0.8
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


My suspicion is plugin conflict, but there's not easy way to uninstall/reinstall the plugins (at least not that I've seen).

How to Reproduce

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

(please provide additional details here)

Request parameters:

{u'__FORM_TOKEN': u'a80d281f0c24cbae4b2c5cde',
 u'action': u'leave',
 u'comment': u"how 'bout now?",
 u'field_blockedby': u'',
 u'field_blocking': u'',
 u'field_cc': u'',
 u'field_checkbox_isblocked': u'1',
 u'field_checkbox_sensitive': u'1',
 u'field_dependencies': u'',
 u'field_description': u'I was made to be deleted',
 u'field_due_assign': u'DD/MM/YYYY',
 u'field_due_close': u'DD/MM/YYYY',
 u'field_etc_hours': u'0',
 u'field_keywords': u'',
 u'field_milestone': u'Stand Up Production Server and V4',
 u'field_priority': u'Low',
 u'field_reporter': u'kcartier',
 u'field_summary': u'kc Test Ticket',
 u'field_type': u'Task',
 'id': u'7',
 u'replyto': u'',
 u'start_time': u'1440596063413000',
 u'submit': u'Submit changes',
 u'view_time': u'1440596063413000'}

User agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36

System Information

Trac 1.0.8
Babel 0.9.6
Genshi 0.6 (without speedups)
mod_wsgi 3.5 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
pysqlite 2.6.3
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]
setuptools 7.0
Subversion 1.8.4 (r1534716)
jQuery 1.7.2
jQuery UI 1.8.21
jQuery Timepicker 1.0.1

Enabled Plugins

autoupgrade 0.1
batchmodify 0.8.1-trac0.12dev-r0
componenthierarchy 0.0.1dev-r0
privatereports 0.4dev-r0
sensitivetickets 0.22
ticketcreatebuttons 0.1
timetracking 1.1
timingandestimationplugin 0.1.5
trac-jsgantt 0.11.post0
tracaccountmanager 0.3.2
tracannouncer 1.0dev-r0
traciniadminpanel 1.0.1
tracprivatetickets 2.1.0dev-r0
tracscreenshots 0.8.dev0

Python Traceback

Traceback (most recent call last):
  File "C:\Bitnami\trac-1.0.8-0\apps\trac\Lib\site-packages\Trac-1.0.8-py2.7.egg\trac\web\main.py", line 551, in _dispatch_request
  File "C:\Bitnami\trac-1.0.8-0\apps\trac\Lib\site-packages\Trac-1.0.8-py2.7.egg\trac\web\main.py", line 244, in dispatch
    resp = chosen_handler.process_request(req)
  File "C:\Bitnami\trac-1.0.8-0\apps\trac\Lib\site-packages\Trac-1.0.8-py2.7.egg\trac\ticket\web_ui.py", line 182, in process_request
    return self._process_ticket_request(req)
  File "C:\Bitnami\trac-1.0.8-0\apps\trac\Lib\site-packages\Trac-1.0.8-py2.7.egg\trac\ticket\web_ui.py", line 619, in _process_ticket_request
    self._do_save(req, ticket, action)
  File "C:\Bitnami\trac-1.0.8-0\apps\trac\Lib\site-packages\Trac-1.0.8-py2.7.egg\trac\ticket\web_ui.py", line 1350, in _do_save
  File "C:\Bitnami\trac-1.0.8-0\apps\trac\Lib\site-packages\Trac-1.0.8-py2.7.egg\trac\ticket\model.py", line 369, in save_changes
    listener.ticket_changed(self, comment, author, old_values)
TypeError: ticket_changed() takes exactly 4 arguments (5 given)

Attachments (0)

Change History (2)

comment:1 by Jun Omae, 7 years ago

Resolution: cantfix
Status: newclosed

comment:2 by Ryan J Ollos, 7 years ago

Unrelated: th:BatchModifyPlugin isn't needed in Trac 1.0 and later and will likely conflict with trac.ticket.batch, and you should really upgrade your th:AccountManagerPlugin to 0.4.4.

Modify Ticket

Change Properties
Set your email in Preferences
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.