#845: global ticket number invalid on multiproduct
---------------------------+-----------------------
Reporter: shorif2000 | Owner: nobody
Type: defect | Status: new
Priority: major | Milestone: Release 9
Component: multiproduct | Version: 0.8.0
Resolution: | Keywords:
---------------------------+-----------------------
Description changed by rjollos:
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.
> }}}
>
>
> 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
>
> }}}
>
> Error when i click on global ticket number
>
> {{{
> 015-01-23 10:43:20,601 Trac[main] DEBUG: Dispatching
> <ProductRequestWithSession "GET '/ticket/16'">
> 2015-01-23 10:43:20,610 Trac[session] DEBUG: Retrieving session for ID
> '[email protected]'
> 2015-01-23 10:43:20,619 Trac[main] DEBUG: Negotiated locale: None ->
> en_GB
> 2015-01-23 10:43:20,629 Trac[api] WARNING: Unable to find repository
> '(default)' for synchronization
> 2015-01-23 10:43:20,636 Trac[chrome] DEBUG: Prepare chrome data for
> request
> 2015-01-23 10:43:20,801 Trac[main] ERROR: Exception caught while post-
> processing request:
> Traceback (most recent call last):
> File "/opt/html/bloodhound/trac/trac/web/main.py", line 243, in
> dispatch
> self._post_process_request(req)
> File "/opt/html/bloodhound/trac/trac/web/main.py", line 340, in
> _post_process_request
> f.post_process_request(req, *(None,)*extra_arg_count)
> File "/opt/html/bloodhound/installer/bloodhound/lib/python2.6/site-
> packages/bhrelations/web_ui.py", line 158, in post_process_request
> ticket = data['ticket']
> TypeError: 'NoneType' object is unsubscriptable
> 2015-01-23 10:43:20,801 Trac[main] WARNING: [172.16.0.85] HTTPNotFound:
> 404 Invalid ticket number (Ticket 16 does not exist.)
> 2015-01-23 10:43:21,266 Trac[main] DEBUG: Dispatching
> <ProductRequestWithSession "GET '/chrome/common/js/messages/en_GB.js'">
>
> }}}
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
}}}
Error when i click on global ticket number
{{{
015-01-23 10:43:20,601 Trac[main] DEBUG: Dispatching
<ProductRequestWithSession "GET '/ticket/16'">
2015-01-23 10:43:20,610 Trac[session] DEBUG: Retrieving session for ID
'[email protected]'
2015-01-23 10:43:20,619 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-23 10:43:20,629 Trac[api] WARNING: Unable to find repository
'(default)' for synchronization
2015-01-23 10:43:20,636 Trac[chrome] DEBUG: Prepare chrome data for
request
2015-01-23 10:43:20,801 Trac[main] ERROR: Exception caught while post-
processing request:
Traceback (most recent call last):
File "/opt/html/bloodhound/trac/trac/web/main.py", line 243, in dispatch
self._post_process_request(req)
File "/opt/html/bloodhound/trac/trac/web/main.py", line 340, in
_post_process_request
f.post_process_request(req, *(None,)*extra_arg_count)
File "/opt/html/bloodhound/installer/bloodhound/lib/python2.6/site-
packages/bhrelations/web_ui.py", line 158, in post_process_request
ticket = data['ticket']
TypeError: 'NoneType' object is unsubscriptable
2015-01-23 10:43:20,801 Trac[main] WARNING: [172.16.0.85] HTTPNotFound:
404 Invalid ticket number (Ticket 16 does not exist.)
2015-01-23 10:43:21,266 Trac[main] DEBUG: Dispatching
<ProductRequestWithSession "GET '/chrome/common/js/messages/en_GB.js'">
}}}
See also: [http://markmail.org/message/fjcigsy4z4tvga67 mailing list]
discussion.
--
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/845#comment:4>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker