#710: Failed to batch modify tickets to set resolution=duplicate
---------------------+-----------------
Reporter: olemis | Owner:
Type: defect | Status: new
Priority: major | Version: 0.7.0
Resolution: |
---------------------+-----------------
==== How to Reproduce ====
While doing a POST operation on `/batchmodify`, Trac issued an internal
error.
After browsing to /query , the goal was to close multiple tickets and set
resolution as `duplicate` .
Request parameters:
{{{
{'__FORM_TOKEN': u'679d4ab602680e758a14a6b0',
'action': u'resolve',
'action_assign_reassign_owner': u'olemis',
'action_reassign_reassign_owner': u'olemis',
'action_requestinfo_new_reassign_owner': u'olemis',
'action_requestinfo_reassign_owner': u'olemis',
'action_resolve_resolve_resolution': u'duplicate',
'action_review_reassign_owner': u'olemis',
'batchmod_submit': u'Change tickets',
'batchmod_value_comment': u'Duplicate of #238',
'query_href':
u'/query?status=accepted&status=assigned&status=needinfo&status=needinfo(new)&status=needinfo(review)&status=new&status=review&order=priority&col=id&col=summary&col=status&col=type&col=priority&col=product&col=milestone',
'selected_tickets': u'268,253,223'}
}}}
User agent: `Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.10.289
Version/12.02`
==== System Information ====
|| '''`Trac`''' || `1.0.1` [[br]] `` ||
|| '''`Babel`''' || `0.9.6` ||
|| '''`Bloodhound Trac`''' || `1.0.1` ||
|| '''`Genshi`''' || `0.7 (with speedups)` ||
|| '''`Mercurial`''' || `2.6.2` ||
|| '''`mod_wsgi`''' || `3.3 (WSGIProcessGroup bloodhound_net
WSGIApplicationGroup %{GLOBAL})` ||
|| '''`psycopg2`''' || `2.5` ||
|| '''`Pygments`''' || `1.6` ||
|| '''`Python`''' || `2.7.3 (default, Aug 1 2012, 05:25:23) ` [[br]]
`[GCC 4.6.3]` ||
|| '''`pytz`''' || `2013b` ||
|| '''`RPC`''' || `1.1.2` ||
|| '''`setuptools`''' || `0.6` ||
|| '''`jQuery`''' || `1.7.2` ||
==== Enabled Plugins ====
|| '''`BloodhoundDashboardPlugin`''' || `0.8.0dev` ||
|| '''`BloodhoundDataWidgets`''' || `1.0.0` ||
|| '''`BloodhoundLabs`''' || `0.1.0` ||
|| '''`BloodhoundMultiProduct`''' || `0.8.0dev` ||
|| '''`BloodhoundRelationsPlugin`''' || `0.8.0dev` ||
|| '''`BloodhoundRPC`''' || `1.1.2` ||
|| '''`BloodhoundSearchPlugin`''' || `0.8.0dev` ||
|| '''`BloodhoundTheme`''' || `0.8.0dev` ||
|| '''`TracAccountManager`''' || `0.4.3` ||
|| '''`TracGViz`''' || `1.4.2` ||
|| '''`TracIncludeMacro`''' || `3.0.0dev` ||
|| '''`TracMercurial`''' || `1.0.0.3dev` ||
|| '''`TracPermRedirect`''' || `3.0` ||
|| '''`TracThemeEngine`''' || `2.2.0` ||
|| '''`TracTocMacro`''' || `11.0.0.3` ||
==== Python Traceback ====
{{{
Traceback (most recent call last):
File "/path/to/bloodhound/trac/trac/web/main.py", line 477, in
_dispatch_request
dispatcher.dispatch(req)
File "/path/to/bloodhound/trac/trac/web/main.py", line 214, in dispatch
resp = chosen_handler.process_request(req)
File "/path/to/bloodhound/trac/trac/ticket/batch.py", line 62, in
process_request
new_values, comment, action)
File "/path/to/bloodhound/trac/trac/ticket/batch.py", line 167, in
_save_ticket_changes
t.save_changes(req.authname, comment, when=when)
File "/path/to/bloodhound/trac/trac/ticket/model.py", line 372, in
save_changes
listener.ticket_changed(self, comment, author, old_values)
File "/path/to/bloodhound/bloodhound_relations/bhrelations/api.py", line
500, in ticket_changed
self.rls.add(ticket, ticket.duplicate,
AttributeError: 'Ticket' object has no attribute 'duplicate'
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/710>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker