You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by Apache Bloodhound <de...@bloodhound.apache.org> on 2014/01/22 14:36:09 UTC
[Apache Bloodhound] #744: Error on creating a ticket relation
between products
#744: Error on creating a ticket relation between products
-----------------------+--------------------
Reporter: jav | Owner: nobody
Type: defect | Status: new
Priority: major | Milestone:
Component: relations | Version: 0.7.0
Keywords: |
-----------------------+--------------------
==== How to Reproduce ====
Creating a relation (type: referrs to) between two tickets in different
products results in an error message.
{{{
UnboundLocalError: local variable 'reporter' referenced before assignment
}}}
While doing a POST operation on `/ticket/65/relations`, Trac issued an
internal error.
''(please provide additional details here)''
Request parameters:
{{{
{'__FORM_TOKEN': u'd39f62b5d7ceb17d806ee511',
'add': u'Add',
'comment': u'',
'dest_tid': u'66',
'id': u'65',
'reltype': u'refersto'}
}}}
User agent: `Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101
Firefox/26.0`
==== System Information ====
|| '''`Trac`''' || `1.0.1` [[br]] `` ||
|| '''`Babel`''' || `0.9.6` ||
|| '''`Bloodhound Trac`''' || `1.0.1` ||
|| '''`Genshi`''' || `0.6.1 (without speedups)` ||
|| '''`GIT`''' || `1.8.1.4` ||
|| '''`mod_wsgi`''' || `3.3 (WSGIProcessGroup bh_tracker
WSGIApplicationGroup %{GLOBAL})` ||
|| '''`psycopg2`''' || `2.4.5` ||
|| '''`Pygments`''' || `1.6` ||
|| '''`Python`''' || `2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]` ||
|| '''`pytz`''' || `2013b` ||
|| '''`setuptools`''' || `1.1` ||
|| '''`jQuery`''' || `1.7.2` ||
==== Enabled Plugins ====
|| '''`BloodhoundDashboardPlugin`''' || `0.7.0` ||
|| '''`BloodhoundMultiProduct`''' || `0.7.0` ||
|| '''`BloodhoundRelationsPlugin`''' || `0.7.0` ||
|| '''`BloodhoundSearchPlugin`''' || `0.7.0` ||
|| '''`BloodhoundTheme`''' || `0.7.0` ||
|| '''`TracAccountManager`''' || `0.4.3` ||
|| '''`TracPermRedirect`''' || `3.0` ||
|| '''`TracThemeEngine`''' || `2.2.1` ||
==== Python Traceback ====
{{{
Traceback (most recent call last):
File "/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.7
/site-packages/trac/web/main.py", line 477, in _dispatch_request
dispatcher.dispatch(req)
File "/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.7
/site-packages/trac/web/main.py", line 214, in dispatch
resp = chosen_handler.process_request(req)
File "/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.7
/site-packages/bhrelations/web_ui.py", line 99, in process_request
req.authname)
File "/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.7
/site-packages/bhrelations/api.py", line 252, in add
self.add_relation(relation)
File "/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.7
/site-packages/bhrelations/api.py", line 273, in add_relation
RelationNotifyEmail(self.env).notify(relation)
File "/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.7
/site-packages/bhrelations/notification.py", line 47, in notify
TicketNotifyEmail.notify(self, t, newticket=False, modtime=modtime)
File "/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.7
/site-packages/trac/ticket/notification.py", line 156, in notify
self._notify(ticket, newticket, modtime)
File "/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.7
/site-packages/trac/ticket/notification.py", line 270, in _notify
NotifyEmail.notify(self, ticket.id, subject, author)
File "/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.7
/site-packages/trac/notification.py", line 344, in notify
Notify.notify(self, resid)
File "/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.7
/site-packages/trac/notification.py", line 230, in notify
(torcpts, ccrcpts) = self.get_recipients(resid)
File "/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.7
/site-packages/bhrelations/notification.py", line 73, in get_recipients
resource.id, [])
File "/opt/apache-bloodhound-0.7/installer/bloodhound/lib/python2.7
/site-packages/trac/ticket/notification.py", line 129, in
get_ticket_notification_recipients
return (torecipients, ccrecipients, reporter, owner)
UnboundLocalError: local variable 'reporter' referenced before assignment
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/744>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #744: Error on creating a ticket relation
between products
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#744: Error on creating a ticket relation between products
------------------------+---------------------------------
Reporter: jav | Owner: nobody
Type: defect | Status: closed
Priority: major | Milestone:
Component: trac core | Version: 0.7.0
Resolution: duplicate | Keywords: ticket notification
------------------------+---------------------------------
Changes (by rjollos):
* milestone: Release 8 =>
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/744#comment:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #744: Error on creating a ticket relation
between products
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#744: Error on creating a ticket relation between products
------------------------+---------------------------------
Reporter: jav | Owner: nobody
Type: defect | Status: closed
Priority: major | Milestone: Release 8
Component: trac core | Version: 0.7.0
Resolution: duplicate | Keywords: ticket notification
------------------------+---------------------------------
Changes (by olemis):
* status: new => closed
* keywords: => ticket notification
* component: relations => trac core
* resolution: => duplicate
* milestone: => Release 8
Comment:
This is a duplicate of #688 , see comment:15:ticket:688
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/744#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker