Modify

Opened 12 years ago

Last modified 5 years ago

#10605 new defect

MasterTicketsPlugin breaks commit_updater

Reported by: trac-hacks@… Owned by: Ryan J Ollos
Priority: normal Component: MasterTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Environment:

Problem:

  1. When commiting subversion changes, I'm adding submission comments according to trac:CommitTicketUpdater. I'd expect to have the referenced tickets changed, but nothing happens. No error message is visible (Subversion commit is fine, only the ticket stays unchanged).
  2. Only when disabling MasterTicketsPlugin, subversion commits behave as expected, i.e. they influence the ticket via Trac's commit_updater.

Debug Info:

The following error message (see last line) is reported in a debug log, if MasterTicketsPlugin is enabled:

2012-11-06 17:29:44,452 Trac[loader] DEBUG: Loading mastertickets.api from /usr/local/lib/python2.7/dist-packages/TracMasterTickets-3.0.3-py2.7.egg
2012-11-06 17:29:44,454 Trac[loader] DEBUG: Loading mastertickets.web_ui from /usr/local/lib/python2.7/dist-packages/TracMasterTickets-3.0.3-py2.7.egg
...
2012-11-06 17:29:44,611 Trac[api] DEBUG: Event changeset_added on /usr/local/lib/svn/foo for changesets (u'5',)
2012-11-06 17:29:44,641 Trac[svn_fs] DEBUG: Subversion bindings imported
2012-11-06 17:29:44,644 Trac[cache] INFO: repos rev [5] != cached rev [4]
2012-11-06 17:29:44,645 Trac[cache] INFO: Trying to sync revision [5]
2012-11-06 17:29:44,648 Trac[cache] DEBUG: Caching node change in [5]: (u'bla.txt', 'file', 'edit', u'bla.txt', 4)
2012-11-06 17:29:44,660 Trac[api] DEBUG: Event changeset_added on (default) for revision 5
2012-11-06 17:29:44,662 Trac[commit_updater] DEBUG: Updating ticket #1
2012-11-06 17:29:44,663 Trac[default_workflow] DEBUG: Workflow actions at initialization: {u'resolve': {u'operations': [u'set_resolution'], 'name': u'resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'accept': {u'operations': [u'set_owner_to_self'], 'name': u'accept', 'default': 0, 'newstate': u'accepted', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'leave': {u'operations': [u'leave_status'], 'name': u'leave', u'default': 1, 'newstate': u'*', 'oldstates': [u'*'], 'permissions': []}, u'reopen': {u'operations': [u'del_resolution'], 'name': u'reopen', 'default': 0, 'newstate': u'reopened', 'oldstates': [u'closed'], u'permissions': [u'TICKET_CREATE']}, u'reassign': {u'operations': [u'set_owner'], 'name': u'reassign', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, '_reset': {'operations': ['reset_workflow'], 'name': 'reset', 'default': 0, 'newstate': 'new', 'oldstates': [], 'permissions': []}}

2012-11-06 17:29:44,663 Trac[api] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow']
2012-11-06 17:29:44,668 Trac[commit_updater] ERROR: Unexpected error while processing ticket #1: TypeError: int() argument must be a string or a number, not 'Ticket'

Workaround:

  • Currently I've disabled the MasterTicketsPlugin - then at least the commit updater works.

Attachments (0)

Change History (4)

comment:1 Changed 12 years ago by Ryan J Ollos

Cc: anonymous added; Ryan J Ollos removed
Owner: changed from Noah Kantrowitz to Ryan J Ollos
Status: newassigned

comment:2 Changed 11 years ago by Ryan J Ollos

Status: assignednew

comment:3 Changed 11 years ago by Ryan J Ollos

Status: newassigned

comment:4 Changed 5 years ago by Ryan J Ollos

Status: assignednew

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Ryan J Ollos.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.