bloodhound-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sharif Uddin <Sharif.Ud...@spectrumasa.com>
Subject RE: FW: Creating tickets
Date Wed, 21 Jan 2015 16:16:11 GMT
“more fields” working


It displays global ticket number several secs which users will most likely press and take
them 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.




I copied my notification settings from trac.1.0.3 I think I have notification  problem too.

ERROR: Failure sending notification on creation of ticket #10: local variable 'reporter' referenced
before assignment



From: Ryan J Ollos [mailto:rjollos@apache.org]
Sent: 21 January 2015 16:07
To: user@bloodhound.apache.org
Subject: Re: FW: Creating tickets


On Wed, Jan 21, 2015 at 2:40 AM, Sharif Uddin <Sharif.Uddin@spectrumasa.com<mailto:Sharif.Uddin@spectrumasa.com>>
wrote:
I have removed trac.ticket.web_ui.ticketmodule = enabled from trac.ini


I can see a blue colored “create ticket” button at top left next to search now after I
go into ticket view. This allows me to choose products however it does not let me click on
“more fields”. It is greyed out.

The "more fields" should be enabled once you select a product. If that's not the case, please
do a hard-refresh of the page to refresh the assets (CTRL+ F5 in windows).
http://www.refreshyourcache.com/en/cache/

 Also when I create the ticket I will see a quick flash message in geen box saying “Ticket
#11” created but it is actually ticket #2 of that product

The message should appear for several seconds, but perhaps that's an issue with the cache
needing to be refreshed. Your findings suggest that it may be reporting the global ticket
number rather than the product ticket number.

It seems there may be multiple additional issues here. I can take a more in-depth look this
weekend.


 Below is log of create ticket from the button next to search.

2015-01-21 10:32:39,914 Trac[main] DEBUG: Dispatching <ProductRequestWithSession "GET '/chrome/theme/bloodhound/en_GB.js'">
2015-01-21 10:32:39,917 Trac[chrome] WARNING: File bloodhound/en_GB.js not found in any of
['/opt/html/bloodhound/installer/bloodhound/lib/python2.6/site-packages/bhtheme/htdocs']
2015-01-21 10:32:39,918 Trac[chrome] DEBUG: Prepare chrome data for request
2015-01-21 10:32:39,919 Trac[session] DEBUG: Retrieving session for ID 'sharifu@SPECTRUMASA.COM<mailto:sharifu@SPECTRUMASA.COM>'
2015-01-21 10:32:39,922 Trac[main] DEBUG: Dispatching <ProductRequestWithSession "GET '/chrome/common/js/messages/en_GB.js'">
2015-01-21 10:32:39,925 Trac[chrome] WARNING: File js/messages/en_GB.js not found in any of
['/opt/html/bloodhound/trac/trac/htdocs']
2015-01-21 10:32:39,926 Trac[chrome] DEBUG: Prepare chrome data for request
2015-01-21 10:32:39,927 Trac[session] DEBUG: Retrieving session for ID 'sharifu@SPECTRUMASA.COM<mailto:sharifu@SPECTRUMASA.COM>'
2015-01-21 10:32:39,929 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-21 10:32:39,937 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-21 10:32:39,949 Trac[web_ui] DEBUG: {'active': False, 'name': 'wiki', 'label': <Element
"a">}
2015-01-21 10:32:39,949 Trac[web_ui] DEBUG: {'active': False, 'name': 'browser', 'label':
<Element "a">}
2015-01-21 10:32:39,952 Trac[web_ui] DEBUG: {'active': False, 'name': 'tickets', 'label':
<Element "a">}
2015-01-21 10:32:39,953 Trac[main] WARNING: [172.16.0.85] HTTPNotFound: 404 Not Found (File
bloodhound/en_GB.js not found)
2015-01-21 10:32:39,955 Trac[web_ui] DEBUG: {'active': False, 'name': 'wiki', 'label': <Element
"a">}
2015-01-21 10:32:39,956 Trac[web_ui] DEBUG: {'active': False, 'name': 'browser', 'label':
<Element "a">}
2015-01-21 10:32:39,956 Trac[web_ui] DEBUG: {'active': False, 'name': 'tickets', 'label':
<Element "a">}
2015-01-21 10:32:39,958 Trac[main] WARNING: [172.16.0.85] HTTPNotFound: 404 Not Found (File
js/messages/en_GB.js not found)
2015-01-21 10:33:04,922 Trac[main] DEBUG: Dispatching <ProductRequestWithSession "POST
'/update-menus'">
2015-01-21 10:33:04,924 Trac[session] DEBUG: Retrieving session for ID 'sharifu@SPECTRUMASA.COM<mailto:sharifu@SPECTRUMASA.COM>'
2015-01-21 10:33:04,926 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-21 10:33:04,928 Trac[api] WARNING: Unable to find repository '(default)' for synchronization
2015-01-21 10:33:04,928 Trac[chrome] DEBUG: Prepare chrome data for request
2015-01-21 10:33:04,937 Trac[web_ui] DEBUG: {'active': False, 'name': 'wiki', 'label': <Element
"a">}
2015-01-21 10:33:04,938 Trac[web_ui] DEBUG: {'active': False, 'name': 'browser', 'label':
<Element "a">}
2015-01-21 10:33:04,938 Trac[web_ui] DEBUG: {'active': False, 'name': 'tickets', 'label':
<Element "a">}
2015-01-21 10:33:04,999 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "/opt/html/bloodhound/trac/trac/web/main.py", line 477, in _dispatch_request
    dispatcher.dispatch(req)
  File "/opt/html/bloodhound/trac/trac/web/main.py", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File "/opt/html/bloodhound/installer/bloodhound/lib/python2.6/site-packages/bhtheme/theme.py",
line 531, in process_request
    env = ProductEnvironment(self.env.parent, req.args.get('product'))
  File "/opt/html/bloodhound/installer/bloodhound/lib/python2.6/site-packages/multiproduct/env.py",
line 367, in __call__
    return f(self, g_env, *args, **kwargs)
  File "/opt/html/bloodhound/installer/bloodhound/lib/python2.6/site-packages/multiproduct/cache.py",
line 67, in wrapper
    result = user_function(*args, **kwds)
  File "/opt/html/bloodhound/installer/bloodhound/lib/python2.6/site-packages/multiproduct/env.py",
line 393, in __call__
    return ComponentMeta.__call__(self, *args, **kwargs)
  File "/opt/html/bloodhound/trac/trac/core.py", line 140, in __call__
    self.__init__(*args, **kwargs)
  File "/opt/html/bloodhound/trac/trac/core.py", line 107, in new_init
    original_init(self, *args, **kwargs)
  File "/opt/html/bloodhound/installer/bloodhound/lib/python2.6/site-packages/multiproduct/env.py",
line 541, in __init__
    (cls.__module__ + '.' + cls.__name__, ))
TypeError: Initializer must be called with trac.env.Environment instance as first argument
(got multiproduct.env.ProductEnvironment instance instead)
2015-01-21 10:33:05,220 Trac[theme] DEBUG: BH Theme : Element classes [u'code']
2015-01-21 10:33:05,221 Trac[theme] DEBUG: BH Theme : Inserting class table code table-condensed
2015-01-21 10:33:05,233 Trac[theme] DEBUG: BH Theme : Element classes [u'listing']
2015-01-21 10:33:05,233 Trac[theme] DEBUG: BH Theme : Inserting class table table-condensed
listing
2015-01-21 10:33:05,244 Trac[theme] DEBUG: BH Theme : Element classes [u'code']
2015-01-21 10:33:05,245 Trac[theme] DEBUG: BH Theme : Inserting class table code table-condensed
2015-01-21 10:33:05,256 Trac[theme] DEBUG: BH Theme : Element classes [u'listing']
2015-01-21 10:33:05,257 Trac[theme] DEBUG: BH Theme : Inserting class table table-condensed
listing
2015-01-21 10:33:05,271 Trac[theme] DEBUG: BH Theme : Element classes [u'code']
2015-01-21 10:33:05,271 Trac[theme] DEBUG: BH Theme : Inserting class table code table-condensed
2015-01-21 10:33:05,283 Trac[theme] DEBUG: BH Theme : Element classes [u'listing']
2015-01-21 10:33:05,283 Trac[theme] DEBUG: BH Theme : Inserting class table table-condensed
listing
2015-01-21 10:33:05,292 Trac[theme] DEBUG: BH Theme : Element classes [u'code']
2015-01-21 10:33:05,293 Trac[theme] DEBUG: BH Theme : Inserting class table code table-condensed
2015-01-21 10:33:05,305 Trac[theme] DEBUG: BH Theme : Element classes [u'listing']
2015-01-21 10:33:05,305 Trac[theme] DEBUG: BH Theme : Inserting class table table-condensed
listing
2015-01-21 10:33:05,317 Trac[theme] DEBUG: BH Theme : Element classes [u'code']
2015-01-21 10:33:05,317 Trac[theme] DEBUG: BH Theme : Inserting class table code table-condensed
2015-01-21 10:33:05,329 Trac[theme] DEBUG: BH Theme : Element classes [u'listing']
2015-01-21 10:33:05,329 Trac[theme] DEBUG: BH Theme : Inserting class table table-condensed
listing
2015-01-21 10:33:05,363 Trac[theme] DEBUG: BH Theme : Element classes [u'code']
2015-01-21 10:33:05,363 Trac[theme] DEBUG: BH Theme : Inserting class table code table-condensed
2015-01-21 10:33:05,375 Trac[theme] DEBUG: BH Theme : Element classes [u'listing']
2015-01-21 10:33:05,375 Trac[theme] DEBUG: BH Theme : Inserting class table table-condensed
listing
2015-01-21 10:33:05,384 Trac[theme] DEBUG: BH Theme : Element classes [u'code']
2015-01-21 10:33:05,384 Trac[theme] DEBUG: BH Theme : Inserting class table code table-condensed
2015-01-21 10:33:05,396 Trac[theme] DEBUG: BH Theme : Element classes [u'listing']
2015-01-21 10:33:05,396 Trac[theme] DEBUG: BH Theme : Inserting class table table-condensed
listing
2015-01-21 10:33:05,405 Trac[theme] DEBUG: BH Theme : Element classes [u'code']
2015-01-21 10:33:05,405 Trac[theme] DEBUG: BH Theme : Inserting class table code table-condensed
2015-01-21 10:33:05,417 Trac[theme] DEBUG: BH Theme : Element classes [u'listing']
2015-01-21 10:33:05,418 Trac[theme] DEBUG: BH Theme : Inserting class table table-condensed
listing
2015-01-21 10:33:05,428 Trac[theme] DEBUG: BH Theme : Element classes [u'code']
2015-01-21 10:33:05,428 Trac[theme] DEBUG: BH Theme : Inserting class table code table-condensed
2015-01-21 10:33:05,440 Trac[theme] DEBUG: BH Theme : Element classes [u'listing']
2015-01-21 10:33:05,440 Trac[theme] DEBUG: BH Theme : Inserting class table table-condensed
listing
2015-01-21 10:33:05,457 Trac[theme] DEBUG: BH Theme : Element classes [u'listing']
2015-01-21 10:33:05,457 Trac[theme] DEBUG: BH Theme : Inserting class table table-condensed
listing
2015-01-21 10:33:05,473 Trac[theme] DEBUG: BH Theme : Element classes [u'listing']
2015-01-21 10:33:05,473 Trac[theme] DEBUG: BH Theme : Inserting class table table-condensed
listing
2015-01-21 10:33:17,049 Trac[main] DEBUG: Dispatching <ProductRequestWithSession "POST
'/qct'">
2015-01-21 10:33:17,064 Trac[session] DEBUG: Retrieving session for ID 'sharifu@SPECTRUMASA.COM<mailto:sharifu@SPECTRUMASA.COM>'
2015-01-21 10:33:17,072 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-21 10:33:17,083 Trac[api] WARNING: Unable to find repository '(default)' for synchronization
2015-01-21 10:33:17,247 Trac[whoosh_backend] DEBUG: Doc to index: {'status': u'new', 'product':
u'SEGY', 'name': u'#10 10', 'author': u'sharifu@SPECTRUMASA.COM<mailto:u%27sharifu@SPECTRUMASA.COM>',
'_stored_name': u'10', 'query_suggestion_basket': u'#10 10  trac email testing', 'summary':
u'trac email testing', 'required_permission': u'TICKET_VIEW', 'time': datetime.datetime(2015,
1, 21, 10, 33, 17, 103449), 'type': u'ticket', 'id': u'10', 'unique_id': u'SEGY:ticket:10'}
2015-01-21 10:33:17,393 Trac[theme] ERROR: Failure sending notification on creation of ticket
#10: 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<http://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

From: Olemis Lang [mailto:olemis@gmail.com<mailto:olemis@gmail.com>]
Sent: 20 January 2015 19:12
To: user
Subject: Re: FW: Creating tickets



On Tue, Jan 20, 2015 at 2:04 PM, Ryan J Ollos <rjollos@apache.org<mailto:rjollos@apache.org>>
wrote:
On Tue, Jan 20, 2015 at 10:55 AM, Olemis Lang <olemis@gmail.com<mailto:olemis@gmail.com>>
wrote:


On Tue, Jan 20, 2015 at 1:46 PM, Ryan J Ollos <rjollos@apache.org<mailto:rjollos@apache.org>>
wrote:
On Tue, Jan 20, 2015 at 10:39 AM, Olemis Lang <olemis@gmail.com<mailto:olemis@gmail.com>>
wrote:

On Tue, Jan 20, 2015 at 12:55 PM, Ryan J Ollos <rjollos@apache.org<mailto:rjollos@apache.org>>
wrote:
I suggest setting the TracLogging level to DEBUG, restarting the web server and looking for
error messages in the logs.

http://trac.edgewall.org/wiki/TracLogging


jftr

@ryan : In the first message Sharif posted the traceback , it seems to be relate to BH relations
plugin , but ...

My comment to look in the logs has to do with trying to figure out why the QCT is missing,
which may be unrelated to this traceback.

oh , sure ! sorry . AFAICR , the only case when QCT should not be included is when rendering
eror pages , and the trivial case when component is disabled . After reviewing components
section it seems to me that it is caused by the later , cmiiw .

{{{
[components]
acct_mgr.notification.accountchangelistener = enabled
acct_mgr.notification.accountchangenotificationadminpanel = enabled
themeengine.admin.customthemeadminmodule = enabled
themeengine.admin.simplethemeadminmodule = enabled
trac.ticket.web_ui.ticketmodule = enabled
tracopt.mimeview.enscript.enscriptrenderer = enabled
tracopt.mimeview.php.phprenderer = enabled
tracopt.ticket.clone.ticketclonebutton = enabled
tracopt.ticket.deleter.ticketdeleter = enabled

}}}

I'm not seeing that QuickCreateTicket is disabled. The base.in<http://base.in> files
shows "bhtheme.* = enabled".  However, now that you made me look again, I notice that "trac.ticket.web_ui.ticketmodule
= enabled" may be causing the problem. IIRC, that component should be disabled in favor of
MultiproductTicketModule, and they will conflict. In fact, base.ini has the module disabled,
but then it is explicitly enabled in trac.ini, which will override. Does that sound right?

afaict , it is worth checking that .

--
Regards,

Olemis - @olemislc

Apache™ Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

IMPORTANT - This message and any attached files contain information intended for the exclusive
use of the party or parties to whom it is addressed and may contain information that is proprietary,
privileged, confidential and/or exempt from disclosure under applicable law. If you are not
an intended recipient, you are hereby notified that any viewing, copying, disclosure or distribution
of this information may be subject to legal restriction or sanction. Please notify the sender
immediately and delete the original message without making any copies. Copyright in this email
and any attachments belong to Spectrum Geo Limited.
We cannot guarantee the security or confidentiality of email communications. We do not accept
any liability for losses or damages that you may suffer as a result of your receipt of this
email.
Email communication with Spectrum Geo Ltd., may be monitored as permitted by UK legislation.
Spectrum Geo Limited, is a limited company registered in England and Wales. Registered number:
1979422. Registered office: 95 Aldwych, London WC2B 4JF.


IMPORTANT - This message and any attached files contain information intended for the exclusive
use of the party or parties to whom it is addressed and may contain information that is proprietary,
privileged, confidential and/or exempt from disclosure under applicable law. If you are not
an intended recipient, you are hereby notified that any viewing, copying, disclosure or distribution
of this information may be subject to legal restriction or sanction. Please notify the sender
immediately and delete the original message without making any copies. Copyright in this email
and any attachments belong to Spectrum Geo Limited.
We cannot guarantee the security or confidentiality of email communications. We do not accept
any liability for losses or damages that you may suffer as a result of your receipt of this
email.
Email communication with Spectrum Geo Ltd., may be monitored as permitted by UK legislation.
Spectrum Geo Limited, is a limited company registered in England and Wales. Registered number:
1979422. Registered office: 95 Aldwych, London WC2B 4JF.
Mime
View raw message