#845: global ticket number invalid on multiproduct
---------------------------+--------------------
Reporter: shorif2000 | Owner: nobody
Type: defect | Status: new
Priority: major | Milestone:
Component: multiproduct | Version: 0.8.0
Resolution: | Keywords:
---------------------------+--------------------
Description changed by shorif2000:
Old description:
> When i have multiple products and i create a ticket it displays global
> ticket number. when i click on this it takes me to error page.
>
> Page content displays
>
> {{{
> Warning The ticket has been created, but an error occurred while sending
> notifications: local variable 'reporter' referenced before assignment
> Error: Invalid ticket number
> Ticket 14 does not exist.
> }}}
New description:
When i have multiple products and i create a ticket it displays global
ticket number. when i click on this it takes me to error page.
Page content displays
{{{
Warning The ticket has been created, but an error occurred while sending
notifications: local variable 'reporter' referenced before assignment
Error: Invalid ticket number
Ticket 14 does not exist.
}}}
Error when i create
{{{
==> /var/log/httpd/error_log <==
[Fri Jan 23 10:38:56 2015] [error] [client 172.16.0.85] File does not
exist: /opt/html/update-menus, referer: http://portal-test/bloodhound
==>
/opt/html/bloodhound/installer/bloodhound/environments/main/log/trac.log
<==
2015-01-23 10:39:01,425 Trac[main] DEBUG: Dispatching
<ProductRequestWithSession "POST '/qct'">
2015-01-23 10:39:01,440 Trac[session] DEBUG: Retrieving session for ID
'[email protected]'
2015-01-23 10:39:01,448 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-23 10:39:01,459 Trac[api] WARNING: Unable to find repository
'(default)' for synchronization
2015-01-23 10:39:01,649 Trac[whoosh_backend] DEBUG: Doc to index:
{'status': u'new', 'product': u'SEGY', 'name': u'#15 15', 'author':
u'[email protected]', '_stored_name': u'15',
'query_suggestion_basket': u'#15 15 test global', 'summary': u'test
global', 'required_permission': u'TICKET_VIEW', 'time':
datetime.datetime(2015, 1, 23, 10, 39, 1, 478970), 'type': u'ticket',
'id': u'15', 'unique_id': u'SEGY:ticket:15'}
2015-01-23 10:39:02,047 Trac[theme] ERROR: Failure sending notification on
creation of ticket #15: local variable 'reporter' referenced before
assignment
Traceback (most recent call last):
File "/opt/html/bloodhound/installer/bloodhound/lib/python2.6/site-
packages/bhtheme/theme.py", line 684, in create
tn.notify(t, newticket=True)
File "/opt/html/bloodhound/trac/trac/ticket/notification.py", line 156,
in notify
self._notify(ticket, newticket, modtime)
File "/opt/html/bloodhound/trac/trac/ticket/notification.py", line 270,
in _notify
NotifyEmail.notify(self, ticket.id, subject, author)
File "/opt/html/bloodhound/trac/trac/notification.py", line 344, in
notify
Notify.notify(self, resid)
File "/opt/html/bloodhound/trac/trac/notification.py", line 230, in
notify
(torcpts, ccrcpts) = self.get_recipients(resid)
File "/opt/html/bloodhound/trac/trac/ticket/notification.py", line 388,
in get_recipients
tktid, self.prev_cc)
File "/opt/html/bloodhound/trac/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/845#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker