﻿ticket	summary	type	release	owner	status	created	modified	_description	_reporter
14088	TypeError: Dot.__init__() got an unexpected keyword argument 'log'	defect	1.4		new	2021-12-05T21:20:58+01:00	2021-12-05T21:32:20+01:00	"==== How to Reproduce

While doing a GET operation on `/depgraph/ticket/10`, Trac issued an internal error.

''(please provide additional details here)''

Request parameters:
{{{
{'id': '10', 'realm': 'ticket'}
}}}

User agent: `Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0`

==== System Information
|| '''`Trac`''' || `1.5.3` ||
|| '''`Babel`''' || `2.9.1` ||
|| '''`Jinja2`''' || `N/A` ||
|| '''`pysqlite`''' || `2.6.0` ||
|| '''`Python`''' || `3.10.0 (default, Oct  4 2021, 00:00:00) [GCC 11.2.1 20210728 (Red Hat 11.2.1-1)]` ||
|| '''`pytz`''' || `2021.3` ||
|| '''`setuptools`''' || `57.4.0` ||
|| '''`SQLite`''' || `3.36.0` ||
|| '''`jQuery`''' || `1.12.4` ||
|| '''`jQuery UI`''' || `1.12.1` ||
|| '''`jQuery Timepicker`''' || `1.6.3` ||

==== Enabled Plugins
|| '''`TraceableMacro`''' || `0.0.1.dev0` ||
|| '''`TracMasterTickets`''' || `4.0.5.dev0` ||

==== Interface Customization

==== Python Traceback
{{{
Traceback (most recent call last):
  File ""/usr/lib/python3.10/site-packages/trac/web/main.py"", line 610, in dispatch_request
    dispatcher.dispatch(req)
  File ""/usr/lib/python3.10/site-packages/trac/web/main.py"", line 302, in dispatch
    raise e
  File ""/usr/lib/python3.10/site-packages/trac/web/main.py"", line 248, in dispatch
    resp = chosen_handler.process_request(req)
  File ""/home/jean/work/quintech/trac/plugins/TracMasterTickets-4.0.5.dev0-py3.10.egg/mastertickets/web_ui.py"", line 244, in process_request
    g = self._build_graph(req, tkt_ids, label_summary=label_summary)
  File ""/home/jean/work/quintech/trac/plugins/TracMasterTickets-4.0.5.dev0-py3.10.egg/mastertickets/web_ui.py"", line 311, in _build_graph
    g = graphviz.Graph(log=self.log)
TypeError: Dot.__init__() got an unexpected keyword argument 'log'
}}}"	v.jean.vittor@…
10194	Cannot update a ticket using trac.ticket.model.save_changes with both a 'comment' and a 'when' field.	defect	0.12	Ryan J Ollos	new	2012-07-27T19:24:22+02:00	2021-04-01T07:52:05+02:00	"This was found in the TicketImportPlugin, see #10188, and took me some time to debug. The following piece of code (given an `env` environment):

{{{
#!python
from trac.ticket.web_ui import Ticket 
from datetime import datetime 
from trac.util.datefmt import utc 
ticket = Ticket(env) 
ticket['summary'] = 'The summary' 
ticket.insert() 
ticket['blockedby'] = str(ticket.id) 
ticket.save_changes('someone', comment='Some comments',
                    when=datetime.now(utc)) 
}}}

will work if the MasterTicketsPlugin is not installed, but will fail if it is installed, with the following error:
{{{
ticket.save_changes('someone', 'Some comments',
                    when=datetime.now(utc))
  File ""/Users/francois/ticketimportplugin/0.11/env2.5/lib/python2.5/site-packages/Trac-0.12-py2.5.egg/trac/ticket/model.py"", line 353, in save_changes
    listener.ticket_changed(self, comment, author, old_values)
  File ""build/bdist.macosx-10.7-x86_64/egg/mastertickets/api.py"", line 111, in ticket_changed
    links.save(author, comment, tkt.time_changed, db)
  File ""build/bdist.macosx-10.7-x86_64/egg/mastertickets/model.py"", line 76, in save
    (n, when_ts, author, 'comment', '', '(In #%s) %s'%(self.tkt.id, comment)))
  File ""/Users/francois/ticketimportplugin/0.11/env2.5/lib/python2.5/site-packages/Trac-0.12-py2.5.egg/trac/db/util.py"", line 65, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File ""/Users/francois/ticketimportplugin/0.11/env2.5/lib/python2.5/site-packages/Trac-0.12-py2.5.egg/trac/db/sqlite_backend.py"", line 79, in execute
    result = PyFormatCursor.execute(self, *args)
  File ""/Users/francois/ticketimportplugin/0.11/env2.5/lib/python2.5/site-packages/Trac-0.12-py2.5.egg/trac/db/sqlite_backend.py"", line 57, in execute
    args or [])
  File ""/Users/francois/ticketimportplugin/0.11/env2.5/lib/python2.5/site-packages/Trac-0.12-py2.5.egg/trac/db/sqlite_backend.py"", line 48, in _rollbac\
k_on_error
    return function(self, *args, **kwargs)
IntegrityError: columns ticket, time, field are not unique
}}}

See browser:ticketimportplugin/0.11/talm_importer/test.py@11805#L460"	François Granade
9944	Dependency graph bypasses all ticket security	defect	0.12	Ryan J Ollos	new	2012-04-06T09:53:28+02:00	2020-05-18T07:03:43+02:00	"The dependency graph view of a ticket does not do any permission checks. This is a security problem on private trac sites since it creates a channel through which sensitive information about tickets (existence, dependencies and ticket titles) is revealed.
"	Wichert Akkerman
5535	"unrecoverable error when ""blocking"" value is (or was!) invalid"	defect	0.11	Ryan J Ollos	new	2009-07-21T09:48:41+02:00	2020-05-18T07:03:43+02:00	"This looks similar to #1326, but appears in SVN 4179 of MasterTicketsPlugin (using Trac 0.11.1): a ticket had the value of '#12' in the ""blocking"" field. When opening that ticket, trac says
{{{
Trac detected an internal error:
ValueError: invalid literal for int() with base 10: '#12'
}}}

I then switched off the MasterTicketsPlugin (using the Admin tab), opened the ticket, changed the ""blocking"" value to '12', and switched the MasterTicketsPlugin on again.

Surprisingly, the same error message appeared again. I can still not open that ticket that had an invalid blocking value ''before''!

I have a ticket database converted from 0.10, where this format always used to work, so this bug now prevents me from activating the MasterTicketsPlugin on 0.11.1."	Bernhard
1327	show blocked status in ticket report	enhancement	0.10	Ryan J Ollos	new	2007-03-14T09:59:30+01:00	2020-05-18T07:03:43+02:00	"it looks hard to implement, but still nice to see if tickets is in ""blocked"" status in report module"	phpxcache
1766	[Patch] Add title attribute to links in list of blockers	enhancement	0.10	Ryan J Ollos	new	2007-07-11T14:05:23+02:00	2020-05-18T07:03:43+02:00	"Links in the wiki to bugs set the `title` attribute of the link so that the bug summary comes up as a tooltip, which is rather nice. It would be nice if the bugs in the blocked by/blocking list did the same.

I have a very small patch attached which achieves this (sorry, not against the SVN build though)"	admackin@…
2043	behavior of reopening a blocking ticket	defect	0.10	Ryan J Ollos	new	2007-09-13T11:32:35+02:00	2020-05-18T07:03:43+02:00	"it's awesome plugin, thank you.
we use this plugin as ""blocked ticket-story, blocking ticket-todo"" in SCRUM

I suggest reopen blocked ticket when blocking ticket is reopened and blocked ticket is already closed.
"	anonymous
2495	[patch attached] Wrong tickets are being blocked occasionally	defect	0.10	Ryan J Ollos	new	2008-01-30T21:17:02+01:00	2020-05-18T07:03:43+02:00	"In version 0.10 of the plugin, at times wrong ticket may be displayed as blocked.
To reproduce:
 * create tickets #4, #13, #14 
 * mark #13 as blocking #14
 * #14 is correctly marked as blocked, but
 * additionally, #4 is also marked as blocked
This is side effect of SQL patern being used.
Attached patch attempts to fix it
"	dexen deVries
2655	"[Patch] Add a ""show subticket"" preference"	enhancement	0.11	Ryan J Ollos	new	2008-02-28T17:31:13+01:00	2020-05-18T07:03:43+02:00	"This patch implements the ""show subticket"" part of the http://trac.edgewall.org/wiki/SubTickets spec"	pmarti@…
2692	"TracError : Invalid action ""resolve"" when used with svn hooks and testing workflow"	defect	0.11	Ryan J Ollos	new	2008-03-06T14:58:44+01:00	2020-05-18T07:03:43+02:00	"I'm trying ot use this MasterTickets plugin with the following configuration :

{{{
Trac:  	0.11dev-r6647
Python: 	2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
setuptools: 	0.6c7
SQLite: 	3.5.2
pysqlite: 	2.4.1
Genshi: 	0.5dev-r789
mod_python: 	3.3.1
Pygments: 	0.9
Subversion: 	1.4.6 (r28521)
jQuery:	1.2.3
}}}

The problem is the following : I've set up the trac post and pre commit hooks on the SVN server side. They enable me to close a ticket when committing doing a '''""fixes #<ticket_number> - <commit_message>""''' and '''everything's working fine...'''

I've configured trac to use the [http://trac-hacks.org/wiki/TestingWorkflow testing ticket workflow ]. Then when committing with a ""fixes #56 - blabla"" message, the ticket #56 is automatically sent to the testing status '''everything's still working fine...'''

I installed the MasterTickets plugin. Then created two tickets #12 and #13 for example , #12 blocking #13. If I try to resolve #13 from the trac interface, trac reports that #13 is blocked by #12... ok... that's fine !

But, and finally the problem comes : what happenss if I commit  a change to my repos with a ""fixes #13 - blabla"" ? -> I tested it '''and it failed''' :
 * the hooks executes without any error (normal as no check on the blocked state is done within the hooks)
 * if I refresh the ticket #13, trac reports the following error:
{{{
Trac Error

Invalid action ""resolve""
}}}

So, don't know if that's to be corrected on the hook side (returning an error when committing a ""fixes.."" command on a blocked ticket) or on the trac (MasterTicket plugin) side ignoring the fixes command which sets the resolve field..."	pierreroth64@…
2942	Implement inter-project ticket dependencies	enhancement	0.11	Ryan J Ollos	new	2008-04-23T18:56:04+02:00	2020-05-18T07:03:43+02:00	"a really nice extension of the MasterTicketsPlugin would be to allow inter-project ticket dependencies.

i know the 0.10 branch is dead (even tho i'm using it without issue... so far...) so i'm logging this against 0.11."	anonymous
2991	Allow Grouping of tickets in reports	enhancement	0.11	Ryan J Ollos	new	2008-05-05T22:58:54+02:00	2020-05-18T07:03:43+02:00	"I'd like to be able to produce a report of master tickets with the child tickets nested under them.  So:

 * Ticket 1
   * Ticket 5
   * Ticket 10
 * Ticket 2
   * Ticket 3
   * Ticket 8

Etc..."	seanhussey@…
3281	Status of Tickets in depgraph	enhancement	0.11	Ryan J Ollos	new	2008-06-28T13:00:08+02:00	2020-05-18T07:03:43+02:00	"Hi,

I'm using mastertickets and it's very usefull. It would be very nice to have some enhancements with parameter for the depgraph.

 - parameter for backgroundcolor
 - parameter for to show status and maybe the short summary (I'm using a complex workflow)

Is this planned in the future?

 didley
 "	didley@…
3322	Set depth of Depgraph to infinite	enhancement	0.11	Ryan J Ollos	new	2008-07-03T16:47:43+02:00	2020-05-18T07:03:43+02:00	"In some cases, the ticket dependencies in Depgraph are not shown in full depth. The picture generated, shows the 'end ticket' (where no more recursions are done) filled grey, and the node is not clickable.

Here is an example (!#17 and !#19 contain the 'grey node' while !#18 is working well):

Dependencied defined:

||Ticket||  Blocked By        ||Blocking  ||
||!#15 	||		      ||17, 18, 19||
||!#16 	|| 		      ||18        || 	
||!#17 	|| 	15 	      ||18        || 	
||!#18 	|| 	15, 16,17, 19 ||          ||	
||!#19 	|| 	15 	      ||18        || 	

The graph should look like that:
{{{
   __>17        
  /   \/	
15--->18<--16
  \   /\
   \_>19
}}}
That's what depgraph/ID?format=debug prints out for ticket

!#17:
{{{<mastertickets.model.TicketLinks #17 blocking=[18] blocked_by=[15]>}}}[[BR]]
!#18
{{{<mastertickets.model.TicketLinks #18 blocking=[] blocked_by=[19,15,17,16]>}}}[[BR]]
!#19:
{{{<mastertickets.model.TicketLinks #19 blocking=[18] blocked_by=[15]>}}}

And that's what the graphs look like:

!#17:
[[Image(depgraph17.png)]]
!#18:
[[Image(depgraph18.png)]]
!#19:
[[Image(depgraph19.png)]]"	Johannes
3488	milestone-like graphical view	enhancement	0.11	Ryan J Ollos	new	2008-07-31T09:24:07+02:00	2020-05-18T07:03:43+02:00	I really like the view provided by the milestone module. How hard would it be to output a similar view based on master tickets instead of milestones? This would allow lightweight multi-project management.	noamtm@…
3617	In Preview-Ticket-Mode Blocking/Blocked by are not populated.	enhancement	0.11	Ryan J Ollos	new	2008-08-27T11:00:17+02:00	2020-05-18T07:03:43+02:00	"In Preview-Ticket-Mode the fields Blocking/Blocked are not populated.
"	anonymous
4623	[patch] allow custom resolve actions (for custom workflows)	enhancement	0.11	Ryan J Ollos	new	2009-02-13T17:45:44+01:00	2020-05-18T07:03:43+02:00	"Hi,
MasterTicketsPlugin uses the standard 'resolve' action to choose when to deny resolving an issue that is blocked by another.

Attached patch adds a configuration option to allow adding custom resolve actions that need to be guarded, in case you use a custom ticket workflow that defines such actions.

Cheers,
Holger"	jholg
4789	Display subtickets as a list with ID and names rather than just IDs	enhancement	0.11	Ryan J Ollos	new	2009-03-16T13:28:58+01:00	2020-05-18T07:03:43+02:00	"I have created an example to specify what I mean:
[[Image(http://crystalrich.com/upload/20090316150622843.png)]]


I do not know if trac API allows to do such extension of a ticket view, however viewing short descriptions of sub-tickets (rather then just IDs) would give us better understanding of a selected task."	Igor
5253	[patch] Depgraph tooltips get truncated when ticket summary has double quotes in	defect	0.11	Ryan J Ollos	new	2009-05-19T12:46:26+02:00	2020-05-18T07:03:43+02:00	"If you have a ticket that includes double quotes in the title then the tooltip on the depgraph gets truncated at the first double quote.

e.g.

{{{
Some ticket about ""a string to fix""
}}}
would appear in the depgraph as:
{{{
Some ticket about 
}}}"	IBBoard
5260	Create example pre-commit hook to stop closing of blocked ticket	defect	0.11	Ryan J Ollos	new	2009-05-20T21:44:28+02:00	2020-05-18T07:03:43+02:00	"Once the JS is fixed to disable the ""resolve as"" button when a ticket is blocked and the blocking tickets are open, the ticket cannot be closed from the Web interface. If Trac is being integrated with SVN using the commit hooks, users can still ""closes #XX"" the ticket and ignore the blocking tickets.

It would be useful if someone could come up with an example pre-commit hook that does all of the usual stuff for checking for valid tickets, but also makes sure tickets being closed aren't blocked by open tickets when a commit is made.

The odd-ball condition that will also need checking is when the blocking open ticket is also being closed in the same commit (e.g. there is a sub-ticket and a master ticket and the commit ""fixes #sub and #master"" or ""closes #master and #sub""). There are also potential chain sequences where X blocks Y, which blocks Z (and potentially more), all of which are open and all of which are being closed in a single commit."	IBBoard
5266	[PATCH] Notify blocked tickets when a blocker is closed	enhancement	0.11	Ryan J Ollos	new	2009-05-22T00:26:07+02:00	2020-05-18T07:03:43+02:00	"We love this plugin at Clearspring for managing simple task groups and dependencies. We added this patch so that blocked tickets are updated with a comment when their blockers are closed.
"	matthew marvelous
6245	Depgraph for this plugin has long list of dependencies, is there a known workaround?	enhancement	0.11	Ryan J Ollos	new	2009-11-23T16:33:11+01:00	2020-05-18T07:03:43+02:00	"When using a Redhat based distribution, trying to pull in the Graphviz package results in a list of over 50 dependencies. I assume that most Trac users are not running this on a desktop and do not desire this many packages. Does anyone know a workaround for this? below is what i get when i try to 'yum install graphviz':

{{{
=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 graphviz                x86_64     2.22.0-4.el5.rf  dag               2.5 M
Installing for dependencies:
 GConf2                  x86_64     2.14.0-9.el5     base              1.5 M
 ORBit2                  x86_64     2.14.3-5.el5     base              263 k
 alsa-lib                x86_64     1.0.17-1.el5     base              414 k
 audiofile               x86_64     1:0.2.6-5        base              107 k
 avahi                   x86_64     0.6.16-6.el5     base              257 k
 avahi-glib              x86_64     0.6.16-6.el5     base               14 k
 chkfontpath             x86_64     1.10.1-1.1       base               15 k
 esound                  x86_64     1:0.2.36-3       base              130 k
 gamin                   x86_64     0.1.7-8.el5      base              126 k
 ghostscript             x86_64     8.15.2-9.11.el5  base              5.9 M
 ghostscript-fonts       noarch     5.50-13.1.1      base              801 k
 gnome-keyring           x86_64     0.6.0-1.fc6      base              166 k
 gnome-mime-data         x86_64     2.4.2-3.1        base              691 k
 gnome-mount             x86_64     0.5-3.el5        base               70 k
 gnome-vfs2              x86_64     2.16.2-4.el5     base              1.3 M
 libFS                   x86_64     1.0.0-3.1        base               30 k
 libIDL                  x86_64     0.8.7-1.fc6      base               87 k
 libXaw                  x86_64     1.0.2-8.1        base              329 k
 libXfont                x86_64     1.2.2-1.0.3.el5_1  base              246 k
 libXmu                  x86_64     1.0.2-5          base               63 k
 libXpm                  x86_64     3.5.5-3          base               44 k
 libXres                 x86_64     1.0.1-3.1        base               14 k
 libXt                   x86_64     1.0.2-3.1.fc6    base              181 k
 libart_lgpl             x86_64     2.3.17-4         base               75 k
 libbonobo               x86_64     2.16.0-1.fc6     base              521 k
 libbonoboui             x86_64     2.16.0-1.fc6     base              394 k
 libcroco                x86_64     0.6.1-2.1        base              129 k
 libdaemon               x86_64     0.10-5.el5       base               24 k
 libfontenc              x86_64     1.0.2-2.2.el5    base               19 k
 libgnome                x86_64     2.16.0-6.el5     base              860 k
 libgnomecanvas          x86_64     2.14.0-4.1       base              224 k
 libgnomeui              x86_64     2.16.0-5.el5     base              984 k
 libgsf                  x86_64     1.14.1-6.1       base              113 k
 libnotify               x86_64     0.4.2-6.el5      base               38 k
 librsvg2                x86_64     2.16.1-1.el5     base              178 k
 libutempter             x86_64     1.1.4-4.el5      base               22 k
 libwnck                 x86_64     2.16.0-4.fc6     base              185 k
 libxslt                 x86_64     1.1.17-2.el5_2.2  base              488 k
 notification-daemon     x86_64     0.3.5-9.el5      base               48 k
 shared-mime-info        x86_64     0.19-5.el5       base              149 k
 startup-notification    x86_64     0.8-4.1          base               32 k
 ttmkfdir                x86_64     3.0.9-23.el5     base               46 k
 urw-fonts               noarch     2.3-6.1.1        base              4.5 M
 xorg-x11-font-utils     x86_64     1:7.1-2          base               77 k
 xorg-x11-xfs            x86_64     1:1.0.2-4        base               73 k

Transaction Summary
=============================================================================
Install     46 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 24 M
}}}

Any help is working around this is appreciated."	drew@…
7252	Extending color and shape scheme	enhancement	0.11	Ryan J Ollos	new	2010-06-16T17:15:05+02:00	2020-05-18T07:03:43+02:00	"I have made it for our Trac, i dont know maybe you will find it also useful. I have add more colors:

I have used another plugin to extend tickets to have testing status

 * red - status = new
 * white - status !new & !close & !testing
 * yellow - status = testing
 * green - status = closed

also i have used different shapes.
ellipse for tickets which have same milestone with root ticket
box for tickets from other milestones

I did my first steps with python hacking this plugin so, i believe finding milestone of the root ticket could be still optimized

look at the attached patch and screen shot 
"	ym@…
8057	Infinite loop if (for some reason) circular dependencies are found in the database	defect	0.12	Ryan J Ollos	new	2010-11-16T11:31:16+01:00	2020-05-18T07:03:43+02:00	"Having a corrupted database (reason is absolutely unkown), I had circular dependencies. I tried to close one of these tickets, and I had Apache server running at 100% CPU. Everything was blocked.
I suggest to add a circular dependency check also when closing tickets (and maybe on each status change?)"	sukender@…
8058	"Integration with ""Testing workflow"" - Allow resolving if dependency status is ""testing"""	enhancement	0.12	Ryan J Ollos	new	2010-11-16T11:42:40+01:00	2020-05-18T07:03:43+02:00	"This is a suggestion. When working with ""Testing workflow"", a nice idea would be to:
 - Show tickets with status==testing in yellow in depgraph
 - Allow closing tickets only if all dependencies are closed (as for current implementation)
 - Allow resolving tickets if all dependencies have status==testing"	sukender@…
8476	Can't remove blocked by and resolve as fixed in one action.	defect	0.12	Ryan J Ollos	new	2011-02-07T15:40:36+01:00	2020-05-18T07:03:43+02:00	"If you try to clear blocked by field an resolve ticket as fixed in one action you will receive ""Warning: Ticket #... is blocking this ticket"" warning. It is confusing and annoying behavior. Could it be fixed?

{{{
System Information

Trac	0.12.2
Babel	0.9.5
Genshi	0.6
pysqlite	2.6.0
Python	2.4.3 (#1, Nov 11 2010, 13:30:19) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]
setuptools	0.6c5
SQLite	3.3.6
Subversion	1.4.2 (r22196)
jQuery:	1.4.2
Installed Plugins

BatchModify	0.8.0-trac0.12	/usr/lib/python2.4/site-packages/BatchModify-0.8.0_trac0.12-py2.4.egg
PythonMacro	N/A	/opt/trac/plugins/PythonMacro.pyc
TracAccountManager	0.3dev	/usr/lib/python2.4/site-packages/TracAccountManager-0.3dev-py2.4.egg
TracIncludeMacro	2.1	/usr/lib/python2.4/site-packages/TracIncludeMacro-2.1-py2.4.egg
TracMasterTickets	3.0.1	/usr/lib/python2.4/site-packages/TracMasterTickets-3.0.1-py2.4.egg
TracWysiwyg	0.12.0.3	/usr/lib/python2.4/site-packages/TracWysiwyg-0.12.0.3-py2.4.egg
}}}"	akistanov@…
10267	Autocomplete for blocks/blocking fields	enhancement	0.11	Ryan J Ollos	new	2012-08-10T18:02:28+02:00	2020-05-18T07:03:43+02:00	"As the title says, it would be really great to be able to use the custom fields as realtime search bars.

e.g. if somebody wants to add this RFE as a dependency to their issue, they could start typing ""Autocomple..."" and they would get an option to select this issue number."	Sam Halliday
10480	Move Depgraph link from context navigation to field label	enhancement	0.12	Ryan J Ollos	new	2012-10-14T00:18:01+02:00	2020-05-18T07:03:43+02:00	The field labels in the ticket properties table will link to the depgraph, and the contextual navigation link to the depgraph will be removed.	Ryan J Ollos
10605	MasterTicketsPlugin breaks commit_updater	defect	0.12	Ryan J Ollos	new	2012-11-06T18:07:24+01:00	2020-05-18T07:03:43+02:00	"=== Environment: ===
 * Trac 0.12.4 running via Apache httpd on Ubuntu 12.04
 * MasterTicketsPlugin 3.0.3 installed
 * Subversion 1.6.17 with commit hooks enabled (according ​to trac:CommitTicketUpdater)

=== 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).
 1. 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.
"	trac-hacks@…
10965	Add a macro for displaying the dependency graph	enhancement		Ryan J Ollos	new	2013-03-22T02:02:54+01:00	2020-05-18T07:03:43+02:00	As requested in [https://github.com/coderanger/trac-mastertickets/issues/20 GitHub issue 20].	Ryan J Ollos
11075	Failure to update multiple dependencies:  IntegrityError: columns ticket, time, field are not unique	defect	0.12	Ryan J Ollos	new	2013-05-13T12:17:07+02:00	2020-05-18T07:03:43+02:00	"Changing a ticket ''x'' from 
 * Blocked by: a
 * Blocking: b,c,d,e,f
to
 * Blocked by: a,b,c,d,e,f
 * Blocking:

...doesn't work cleanly.

While blocked-by/blocking fields on ''x'' were successfully changed, none of the blocked-by/blocking tickets or depgraph were updated, and it gave this error:
{{{
Trac detected an internal error:

IntegrityError: columns ticket, time, field are not unique
}}}

{{{
Python Traceback
Most recent call last:

File ""/usr/lib/python2.7/dist-packages/trac/web/main.py"", line 511, in _dispatch_request
  dispatcher.dispatch(req)
File ""/usr/lib/python2.7/dist-packages/trac/web/main.py"", line 237, in dispatch
  resp = chosen_handler.process_request(req)
File ""/usr/lib/python2.7/dist-packages/trac/ticket/web_ui.py"", line 169, in process_request
  return self._process_ticket_request(req)
File ""/usr/lib/python2.7/dist-packages/trac/ticket/web_ui.py"", line 541, in _process_ticket_request
  self._do_save(req, ticket, action)
File ""/usr/lib/python2.7/dist-packages/trac/ticket/web_ui.py"", line 1238, in _do_save
  cnum=internal_cnum):
File ""/usr/lib/python2.7/dist-packages/trac/ticket/model.py"", line 360, in save_changes
  listener.ticket_changed(self, comment, author, old_values)
File ""/usr/lib/python2.7/dist-packages/mastertickets/api.py"", line 111, in ticket_changed
  links.save(author, comment, tkt.time_changed, db)
File ""/usr/lib/python2.7/dist-packages/mastertickets/model.py"", line 76, in save
  (n, when_ts, author, 'comment', '', '(In #%s) %s'%(self.tkt.id, comment)))
File ""/usr/lib/python2.7/dist-packages/trac/db/util.py"", line 65, in execute
  return self.cursor.execute(sql_escape_percent(sql), args)
File ""/usr/lib/python2.7/dist-packages/trac/db/sqlite_backend.py"", line 78, in execute
  result = PyFormatCursor.execute(self, *args)
File ""/usr/lib/python2.7/dist-packages/trac/db/sqlite_backend.py"", line 56, in execute
  args or [])
File ""/usr/lib/python2.7/dist-packages/trac/db/sqlite_backend.py"", line 48, in _rollback_on_error
  return function(self, *args, **kwargs)
}}}

----

Changing a ticket blocked-by/blocking ''x'' (to tidy up afterwards) was succesful except for not updating the depgraph, and this error (maybe related to #8792): 
{{{
Trac detected an internal error:

ValueError: list.remove(x): x not in list
}}}

{{{
Python Traceback
Most recent call last:

File ""/usr/lib/python2.7/dist-packages/trac/web/main.py"", line 511, in _dispatch_request
  dispatcher.dispatch(req)
File ""/usr/lib/python2.7/dist-packages/trac/web/main.py"", line 237, in dispatch
  resp = chosen_handler.process_request(req)
File ""/usr/lib/python2.7/dist-packages/trac/ticket/web_ui.py"", line 169, in process_request
  return self._process_ticket_request(req)
File ""/usr/lib/python2.7/dist-packages/trac/ticket/web_ui.py"", line 541, in _process_ticket_request
  self._do_save(req, ticket, action)
File ""/usr/lib/python2.7/dist-packages/trac/ticket/web_ui.py"", line 1238, in _do_save
  cnum=internal_cnum):
File ""/usr/lib/python2.7/dist-packages/trac/ticket/model.py"", line 360, in save_changes
  listener.ticket_changed(self, comment, author, old_values)
File ""/usr/lib/python2.7/dist-packages/mastertickets/api.py"", line 111, in ticket_changed
  links.save(author, comment, tkt.time_changed, db)
File ""/usr/lib/python2.7/dist-packages/mastertickets/model.py"", line 68, in save
  update_field(new_value)
File ""/usr/lib/python2.7/dist-packages/mastertickets/model.py"", line 61, in <lambda>
  update_field = lambda lst: lst.remove(str(self.tkt.id))
}}}


System Information:
{{{
Trac 	0.12.2
Babel 	0.9.6 (translations unavailable)
Docutils 	0.8.1
Genshi 	0.6
GIT 	1.7.9.5
mod_wsgi 	3.3 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
Pygments 	1.4
pysqlite 	2.6.0
Python 	2.7.3 (default, Aug 1 2012, 05:25:23) [GCC 4.6.3]
pytz 	2011k
RPC 	1.1.2
setuptools 	0.6
SQLite 	3.7.9
Subversion 	1.6.17 (r1128011)
Enabled Plugins:
graphviz 	0.7.5 	/usr/lib/pymodules/python2.7
TracGit 	0.12.0.5dev 	/usr/lib/python2.7/dist-packages
TracMasterTickets 	3.0.2 	/usr/lib/python2.7/dist-packages
TracXMLRPC 	1.1.2 	/usr/lib/python2.7/dist-packages
}}}"	DaveB
6617	Integrate DepgraphSidebarPlugin	enhancement	0.11	Ryan J Ollos	new	2010-02-13T02:12:35+01:00	2020-05-18T07:03:43+02:00	Would be it possible to integrate DepgraphSidebarPlugin	Michal Papis
3879	add config/class options to colorize depgraph for custom workflow	enhancement	0.11	Ryan J Ollos	new	2008-10-10T17:09:40+02:00	2020-05-18T07:03:43+02:00	"not sure what would be needed to do this, or even if it would actually be in the depgraph plugin, to either allow .ini defines of state-to-color mappings for the graph, or to reuse any custom classes defined for the roadmap view.

If this is in the wrong plugin bucket, I apologize.

"	Jay
