You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@bloodhound.apache.org by Sharif Uddin <Sh...@spectrumasa.com> on 2015/01/20 13:46:52 UTC

FW: Creating tickets

Hello


I think I sent it to wrong list before.


I have created multiple products. See screenshot

[cid:image007.jpg@01D034AE.F14E0380]


If I try to create a ticket for one of these products I get an error

2015-01-20 12:36:48,180 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-20 12:36:48,180 Trac[main] WARNING: [172.16.0.85] HTTPNotFound: 404 Invalid ticket number (Ticket 7 does no




[cid:image008.jpg@01D034AE.F14E0380]


However when I click on tickets I see the following


[cid:image009.jpg@01D034AE.F14E0380]


Seems like the error message is misleading.










Also if I click on "new ticket" then change the product type it redirects me to wiki page. I then have to click on "new ticket" again.


[cid:image010.jpg@01D034AE.F14E0380]





[cid:image011.jpg@01D034AE.F14E0380]




[cid:image012.jpg@01D034AE.F14E0380]



Have to click new ticket again


[cid:image013.jpg@01D034AE.F14E0380]



Sharif Uddin
Development/Support Engineer
-------------------
Spectrum Geo Ltd
Dukes Court, Duke Street
Woking, Surrey
GU21 5BH
UNITED KINGDOM
Tel: +44 (0) 1483 730201
Fax: +44 (0) 1483 762620

www.spectrumasa.com<http://www.spectrumasa.com/>


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.

Re: FW: Creating tickets

Posted by Ryan J Ollos <rj...@apache.org>.
On Tue, Jan 20, 2015 at 4:46 AM, Sharif Uddin <Sh...@spectrumasa.com>
wrote:

>
>
> Hello
>
>
>
>
>
> I think I sent it to wrong list before.
>
>
>
>
>
> I have created multiple products. See screenshot
>
>
>
>
>
>
>
> If I try to create a ticket for one of these products I get an error
>
>
>
> 2015-01-20 12:36:48,180 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-20 12:36:48,180 Trac[main] WARNING: [172.16.0.85] HTTPNotFound:
> 404 Invalid ticket number (Ticket 7 does no
>
>
>
>
>
>
>
>
>
>
>
>
>
> However when I click on tickets I see the following
>
>
>
>
>
>
>
>
>
> Seems like the error message is misleading.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Also if I click on “new ticket” then change the product type it redirects
> me to wiki page. I then have to click on “new ticket” again.
>

Thanks for reporting the redirect issue. Could you create a ticket for this
item? I searched the issue tracker and did not find a ticket, though I seem
to remember the issue having been raised at one time or another.



>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Have to click new ticket again
>
>
>
>
>
>
>
>
>
>
>
> Sharif Uddin
> *Development/Support Engineer*
> -------------------
>
> *Spectrum Geo Ltd*
> Dukes Court, Duke Street
> Woking, Surrey
> GU21 5BH
> UNITED KINGDOM
>
> Tel: +44 (0) 1483 730201
> Fax: +44 (0) 1483 762620
>
>
>
> www.spectrum*asa*.com <http://www.spectrumasa.com/>
>
>
>
> 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.
>

Re: FW: Creating tickets

Posted by Olemis Lang <ol...@gmail.com>.
Hi !

On Tue, Jan 20, 2015 at 7:46 AM, Sharif Uddin <Sh...@spectrumasa.com>
wrote:

> If I try to create a ticket for one of these products I get an error
>
>
>
> 2015-01-20 12:36:48,180 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-20 12:36:48,180 Trac[main] WARNING: [172.16.0.85] HTTPNotFound:
> 404 Invalid ticket number (Ticket 7 does no
>
>
>
>
>
>
>

How did you try to do so ? I mean , what page were you browsing at and what
actions (button clicks etc ...) did you do ?

There are many ways to create tickets , that's why this information is
important in order to provide you with hints .

-- 
Regards,

Olemis - @olemislc

Apache(tm) 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:

RE: FW: Creating tickets

Posted by Sharif Uddin <Sh...@spectrumasa.com>.
Ryan , Olemis


Process flow:


1.       Open browser to bloodhound


2.       I use the New Ticket button which is found under More. See screenshot


[cid:image001.jpg@01D034DD.3691B580]


3.       This will open view to create a new ticket for Default Product. I use the dropdown box, next to Dashboard (top left), to change the product to the one I want to create ticket for. See screen shot
[cid:image007.jpg@01D034DD.3691B580]


I get the following using DEBUG in log file

2015-01-20 18:10:59,165 Trac[main] DEBUG: Dispatching <ProductRequestWithSession "GET ''">
2015-01-20 18:10:59,182 Trac[session] DEBUG: Retrieving session for ID 'sharifu@SPECTRUMASA.COM'
2015-01-20 18:10:59,191 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-20 18:10:59,201 Trac[api] WARNING: Unable to find repository '(default)' for synchronization
2015-01-20 18:10:59,215 Trac[chrome] DEBUG: Prepare chrome data for request
2015-01-20 18:10:59,437 Trac[web_ui] DEBUG: {'active': True, 'name': 'wiki', 'label': <Element "a">}
2015-01-20 18:10:59,437 Trac[web_ui] DEBUG: {'active': False, 'name': 'browser', 'label': <Element "a">}
2015-01-20 18:10:59,437 Trac[web_ui] DEBUG: {'active': False, 'name': 'tickets', 'label': <Element "a">}
2015-01-20 18:11:00,125 Trac[main] DEBUG: Dispatching <ProductRequestWithSession "GET '/chrome/theme/bloodhound/en_GB.js'">
2015-01-20 18:11:00,129 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-20 18:11:00,131 Trac[chrome] DEBUG: Prepare chrome data for request
2015-01-20 18:11:00,133 Trac[main] DEBUG: Dispatching <ProductRequestWithSession "GET '/chrome/common/js/messages/en_GB.js'">
2015-01-20 18:11:00,134 Trac[session] DEBUG: Retrieving session for ID 'sharifu@SPECTRUMASA.COM'
2015-01-20 18:11:00,137 Trac[chrome] WARNING: File js/messages/en_GB.js not found in any of ['/opt/html/bloodhound/trac/trac/htdocs']
2015-01-20 18:11:00,138 Trac[chrome] DEBUG: Prepare chrome data for request
2015-01-20 18:11:00,140 Trac[session] DEBUG: Retrieving session for ID 'sharifu@SPECTRUMASA.COM'
2015-01-20 18:11:00,141 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-20 18:11:00,149 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-20 18:11:00,158 Trac[web_ui] DEBUG: {'active': False, 'name': 'wiki', 'label': <Element "a">}
2015-01-20 18:11:00,158 Trac[web_ui] DEBUG: {'active': False, 'name': 'browser', 'label': <Element "a">}
2015-01-20 18:11:00,159 Trac[web_ui] DEBUG: {'active': False, 'name': 'tickets', 'label': <Element "a">}
2015-01-20 18:11:00,161 Trac[main] WARNING: [172.16.0.85] HTTPNotFound: 404 Not Found (File bloodhound/en_GB.js not found)
2015-01-20 18:11:00,169 Trac[web_ui] DEBUG: {'active': False, 'name': 'wiki', 'label': <Element "a">}
2015-01-20 18:11:00,170 Trac[web_ui] DEBUG: {'active': False, 'name': 'browser', 'label': <Element "a">}
2015-01-20 18:11:00,170 Trac[web_ui] DEBUG: {'active': False, 'name': 'tickets', 'label': <Element "a">}
2015-01-20 18:11:00,171 Trac[main] WARNING: [172.16.0.85] HTTPNotFound: 404 Not Found (File js/messages/en_GB.js not found)



4.       It will display error page. I have to click new ticket again to show me the ticket page.

5.       I create the ticket it show me another error screen

2015-01-20 18:15:29,078 Trac[main] DEBUG: Dispatching <ProductRequestWithSession "POST '/newticket'">
2015-01-20 18:15:29,080 Trac[session] DEBUG: Retrieving session for ID 'sharifu@SPECTRUMASA.COM'
2015-01-20 18:15:29,082 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-20 18:15:29,091 Trac[api] WARNING: Unable to find repository '(default)' for synchronization
2015-01-20 18:15:29,243 Trac[whoosh_backend] DEBUG: Doc to index: {'status': u'new', 'product': u'GDEP', 'name': u'#9 9', 'author': u'sharifu@SPECTRUMASA.COM', '_stored_name': u'9', 'query_suggestion_basket': u'#9 9 sdfafasd dfasdfsfasd', 'component': u'component1', 'summary': u'dfasdfsfasd', 'content': u'sdfafasd', 'required_permission': u'TICKET_VIEW', 'time': datetime.datetime(2015, 1, 20, 18, 15, 29, 188248), 'owner': u'somebody', 'type': u'ticket', 'id': u'9', 'unique_id': u'GDEP:ticket:9'}
2015-01-20 18:15:29,332 Trac[web_ui] ERROR: Failure sending notification on creation of ticket #9: UnboundLocalError: local variable 'reporter' referenced before assignment
2015-01-20 18:15:29,332 Trac[chrome] DEBUG: Prepare chrome data for request
2015-01-20 18:15:29,759 Trac[main] DEBUG: Dispatching <ProductRequestWithSession "GET '/ticket/9'">
2015-01-20 18:15:29,761 Trac[session] DEBUG: Retrieving session for ID 'sharifu@SPECTRUMASA.COM'
2015-01-20 18:15:29,763 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-20 18:15:29,772 Trac[api] WARNING: Unable to find repository '(default)' for synchronization
2015-01-20 18:15:29,784 Trac[chrome] DEBUG: Prepare chrome data for request
2015-01-20 18:15:29,889 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-20 18:15:29,889 Trac[main] WARNING: [172.16.0.85] HTTPNotFound: 404 Invalid ticket number (Ticket 9 does not exist.)
2015-01-20 18:15:30,374 Trac[main] DEBUG: Dispatching <ProductRequestWithSession "GET '/chrome/theme/bloodhound/en_GB.js'">
2015-01-20 18:15:30,377 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-20 18:15:30,378 Trac[chrome] DEBUG: Prepare chrome data for request
2015-01-20 18:15:30,380 Trac[main] DEBUG: Dispatching <ProductRequestWithSession "GET '/chrome/common/js/messages/en_GB.js'">
2015-01-20 18:15:30,381 Trac[session] DEBUG: Retrieving session for ID 'sharifu@SPECTRUMASA.COM'
2015-01-20 18:15:30,385 Trac[chrome] WARNING: File js/messages/en_GB.js not found in any of ['/opt/html/bloodhound/trac/trac/htdocs']
2015-01-20 18:15:30,385 Trac[chrome] DEBUG: Prepare chrome data for request
2015-01-20 18:15:30,387 Trac[session] DEBUG: Retrieving session for ID 'sharifu@SPECTRUMASA.COM'
2015-01-20 18:15:30,390 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-20 18:15:30,396 Trac[main] DEBUG: Negotiated locale: None -> en_GB
2015-01-20 18:15:30,419 Trac[web_ui] DEBUG: {'active': False, 'name': 'wiki', 'label': <Element "a">}
2015-01-20 18:15:30,420 Trac[web_ui] DEBUG: {'active': False, 'name': 'browser', 'label': <Element "a">}
2015-01-20 18:15:30,421 Trac[web_ui] DEBUG: {'active': False, 'name': 'tickets', 'label': <Element "a">}
2015-01-20 18:15:30,423 Trac[main] WARNING: [172.16.0.85] HTTPNotFound: 404 Not Found (File js/messages/en_GB.js not found)
2015-01-20 18:15:30,428 Trac[web_ui] DEBUG: {'active': False, 'name': 'wiki', 'label': <Element "a">}
2015-01-20 18:15:30,429 Trac[web_ui] DEBUG: {'active': False, 'name': 'browser', 'label': <Element "a">}
2015-01-20 18:15:30,429 Trac[web_ui] DEBUG: {'active': False, 'name': 'tickets', 'label': <Element "a">}
2015-01-20 18:15:30,430 Trac[main] WARNING: [172.16.0.85] HTTPNotFound: 404 Not Found (File bloodhound/en_GB.js not found)

See screenshot.

[cid:image008.jpg@01D034DD.3691B580]

However the ticket is created



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

On Tue, Jan 20, 2015 at 7:52 AM, Sharif Uddin <Sh...@spectrumasa.com>> wrote:
I am using latest version 0.8?

Thanks, I didn't notice the version in the footer when replying on my mobile earlier.

 The images I placed on this email are not correct?

There should be a //Create Ticket// button near the top of the page, unless you've explicitly disabled QuickCreateTicket, which it appears is not the case.
Normally I'd refer you to the demo site, but that seems to be down again.
https://bh-demo2.apache.org/
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

bloodhound/installer/bloodhound/environments/main/conf/trac.ini

# -*- coding: utf-8 -*-

[account-manager]
user_lock_max_time = 86400

[bhrelations_links]
children.label = is a child of
dependency = dependson,dependent
dependency.validators = NoCycles,SingleProduct
dependent.label = is a dependency of
dependson.blocks = true
dependson.label = depends on
duplicate = duplicateof,duplicatedby
duplicate.validators = ReferencesOlder
duplicatedby.label = is duplicated by
duplicateof.label = is a duplicate of
oneway = refersto
parent.exclusive = true
parent.label = is a parent of
parent_children = parent,children
parent_children.validators = OneToMany,SingleProduct,NoCycles
refersto.label = refers to

[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

[inherit]
file = /opt/html/bloodhound/installer/bloodhound/environments/main/conf/base.ini

[logging]
log_type = file

[project]
name = main

[ticket]
default_product = ECSP

[ticket-workflow]
accept = new,assigned,accepted,reopened -> accepted
accept.operations = set_owner_to_self
accept.permissions = TICKET_MODIFY
leave = * -> *
leave.default = 1
leave.operations = leave_status
reassign = new,assigned,accepted,reopened -> assigned
reassign.operations = set_owner
reassign.permissions = TICKET_MODIFY
reopen = closed -> reopened
reopen.operations = del_resolution
reopen.permissions = TICKET_CREATE
resolve = new,assigned,accepted,reopened -> closed
resolve.operations = set_resolution
resolve.permissions = TICKET_MODIFY

[trac]
database = sqlite:db/bloodhound.db

[notification]
admit_domains =
always_notify_owner = true
always_notify_reporter = true
always_notify_updater = true
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_ldap_serveruri =
email_sender = SmtpEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc = sharif.uddin@spectrumasa.com<ma...@spectrumasa.com>
smtp_default_domain =
smtp_enabled = true
smtp_from = noreply@spectrumasa.com<ma...@spectrumasa.com>
smtp_from_author = false
smtp_from_name = "SI Test"
smtp_password =
smtp_port = 25
smtp_replyto =
smtp_server = x.uk.spectrumasa.com<http://x.uk.spectrumasa.com>
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = $prefix #$ticket.id<http://ticket.id>: $summary
use_public_cc = true
use_short_addr = false
use_tls = false


bloodhound/installer/bloodhound/environments/main/conf/base.ini


# -*- coding: utf-8 -*-

[account-manager]
account_changes_notify_addresses =
authentication_url =
db_htdigest_realm =
force_passwd_change = true
hash_method = HtDigestHashMethod
htdigest_file = /opt/html/bloodhound/installer/bloodhound/environments/main/bloodhound.htdigest
htdigest_realm = bloodhound
htpasswd_file =
htpasswd_hash_type = crypt
password_store = HtDigestStore
persistent_sessions = False
refresh_passwd = False
user_lock_max_time = 0
verify_email = True

[bhsearch]
enable_redirect = true
is_default = true

[components]
acct_mgr.admin.* = enabled
acct_mgr.api.accountmanager = enabled
acct_mgr.guard.accountguard = enabled
acct_mgr.htfile.htdigeststore = enabled
acct_mgr.macros.* = enabled
acct_mgr.web_ui.accountmodule = enabled
acct_mgr.web_ui.loginmodule = enabled
bhdashboard.* = enabled
bhrelations.* = enabled
bhsearch.* = enabled
bhtheme.* = enabled
multiproduct.* = enabled
permredirect.* = enabled
themeengine.api.* = enabled
themeengine.web_ui.* = enabled
trac.ticket.report.reportmodule = disabled
trac.ticket.web_ui.ticketmodule = disabled
trac.web.auth.loginmodule = disabled

[header_logo]
src =

[labels]
application_full = Apache Bloodhound
application_short = Bloodhound
footer_left_postfix =
footer_left_prefix =
footer_right =

[mainnav]
browser.label = Source
roadmap = disabled
search = disabled
tickets.label = Tickets
timeline = disabled

[metanav]
about = disabled

[project]
footer = Get involved with <a href="https://issues.apache.org/bloodhound/">Apache Bloodhound</a>

[theme]
theme = bloodhound

[trac]
environment_factory = /opt/html/bloodhound/bloodhound_multiproduct/multiproduct/hooks.py
mainnav = dashboard,wiki,browser,tickets,newticket,timeline,roadmap,search,admin
request_factory = /opt/html/bloodhound/bloodhound_multiproduct/multiproduct/hooks.py




From: Ryan J Ollos [mailto:rjollos@apache.org<ma...@apache.org>]
Sent: 20 January 2015 15:24
To: user@bloodhound.apache.org<ma...@bloodhound.apache.org>
Subject: Re: FW: Creating tickets




On Tue, Jan 20, 2015, 4:49 AM Sharif Uddin <Sh...@spectrumasa.com>> wrote:



Hello





I think I sent it to wrong list before.





I have created multiple products. See screenshot


[cid:image006.jpg@01D034DD.1177E030]





If I try to create a ticket for one of these products I get an error



2015-01-20 12:36:48,180 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-20 12:36:48,180 Trac[main] WARNING: [172.16.0.85] HTTPNotFound: 404 Invalid ticket number (Ticket 7 does no








[cid:image006.jpg@01D034DD.1177E030]





However when I click on tickets I see the following




[cid:image006.jpg@01D034DD.1177E030]





Seems like the error message is misleading.





















Also if I click on “new ticket” then change the product type it redirects me to wiki page. I then have to click on “new ticket” again.




[cid:image006.jpg@01D034DD.1177E030]










[cid:image006.jpg@01D034DD.1177E030]








[cid:image006.jpg@01D034DD.1177E030]







Have to click new ticket again




[cid:image006.jpg@01D034DD.1177E030]





Which version of Bloodhound are you running?  It looks like you've disabled the quick create ticket.  Is that correct?  Could you post your entire configuration file?

I think we may have an open ticket for the later issue that you reported.



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.

RE: FW: Creating tickets

Posted by Sharif Uddin <Sh...@spectrumasa.com>.
Not sure if I created the ticket right. But here they are


Global ticket number
https://issues.apache.org/bloodhound/ticket/845



notification not being sent
https://issues.apache.org/bloodhound/ticket/846#ticket





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



On Wed, Jan 21, 2015 at 8:35 AM, Ryan J Ollos <rj...@apache.org>> wrote:
On Wed, Jan 21, 2015 at 8:16 AM, Sharif Uddin <Sh...@spectrumasa.com>> wrote:
“more fields” working


It displays global ticket number several secs which users will most likely press and take them to error page.

Okay, thanks. I'll investigate.


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

That issue appears to be related to use of the global ticket number as well.
Thank you for reporting, and for your patience with these issues. I'll try to have a patch available soon.


It would be helpful if you could also create two tickets for the TicketModule-related issues that we've discussed.  One ticket is for the issue that the global ticket number if shown when using the QCT to create a ticket, and when following the link to the global ticket number an "Invalid ticket number" error is shown.

The other ticket is for the behavior when creating tickets from the New Ticket page. In that case, the global ticket number seems to be passed to post_process_request, we see a traceback from the BloodhoundRelationsPlugin, and the "Invalid ticket number" error page is shown. Also the global ticket number seems to be passed to the Notification module, which results in an error and no notification sent.
Including the tracebacks and images you've shown here in each of the tickets will be helpful.


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.

Re: FW: Creating tickets

Posted by Ryan J Ollos <rj...@apache.org>.
On Wed, Jan 21, 2015 at 8:35 AM, Ryan J Ollos <rj...@apache.org> wrote:

> On Wed, Jan 21, 2015 at 8:16 AM, Sharif Uddin <
> Sharif.Uddin@spectrumasa.com> wrote:
>
>>  “more fields” working
>>
>>
>>
>>
>>
>> It displays global ticket number several secs which users will most
>> likely press and take them to error page.
>>
>
> Okay, thanks. I'll investigate.
>
>
>>
>> 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
>>
>
> That issue appears to be related to use of the global ticket number as
> well.
>
> Thank you for reporting, and for your patience with these issues. I'll try
> to have a patch available soon.
>
>
It would be helpful if you could also create two tickets for the
TicketModule-related issues that we've discussed.  One ticket is for the
issue that the global ticket number if shown when using the QCT to create a
ticket, and when following the link to the global ticket number an "Invalid
ticket number" error is shown.

The other ticket is for the behavior when creating tickets from the New
Ticket page. In that case, the global ticket number seems to be passed to
post_process_request, we see a traceback from the
BloodhoundRelationsPlugin, and the "Invalid ticket number" error page is
shown. Also the global ticket number seems to be passed to the Notification
module, which results in an error and no notification sent.

Including the tracebacks and images you've shown here in each of the
tickets will be helpful.

Re: FW: Creating tickets

Posted by Ryan J Ollos <rj...@apache.org>.
On Wed, Jan 21, 2015 at 8:16 AM, Sharif Uddin <Sh...@spectrumasa.com>
wrote:

>  “more fields” working
>
>
>
>
>
> It displays global ticket number several secs which users will most likely
> press and take them to error page.
>

Okay, thanks. I'll investigate.


>
> 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
>

That issue appears to be related to use of the global ticket number as well.

Thank you for reporting, and for your patience with these issues. I'll try
to have a patch available soon.

RE: FW: Creating tickets

Posted by Sharif Uddin <Sh...@spectrumasa.com>.
“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 <Sh...@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<ma...@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<ma...@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<ma...@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<ma...@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<ma...@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<ma...@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 <rj...@apache.org>> wrote:
On Tue, Jan 20, 2015 at 10:55 AM, Olemis Lang <ol...@gmail.com>> wrote:


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

On Tue, Jan 20, 2015 at 12:55 PM, Ryan J Ollos <rj...@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.

Re: FW: Creating tickets

Posted by Ryan J Ollos <rj...@apache.org>.
On Wed, Jan 21, 2015 at 2:40 AM, Sharif Uddin <Sh...@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'
>
> 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'
>
> 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'
>
> 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'
>
> 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', '_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, 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]
> *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 <rj...@apache.org> wrote:
>
> On Tue, Jan 20, 2015 at 10:55 AM, Olemis Lang <ol...@gmail.com> wrote:
>
>
>
>
>
> On Tue, Jan 20, 2015 at 1:46 PM, Ryan J Ollos <rj...@apache.org> wrote:
>
> On Tue, Jan 20, 2015 at 10:39 AM, Olemis Lang <ol...@gmail.com> wrote:
>
>
>
> On Tue, Jan 20, 2015 at 12:55 PM, Ryan J Ollos <rj...@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 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.
>

RE: FW: Creating tickets

Posted by Sharif Uddin <Sh...@spectrumasa.com>.
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.



[cid:image001.jpg@01D03566.AAB3C9B0]




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.





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'
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'
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'
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'
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', '_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, 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]
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 <rj...@apache.org>> wrote:
On Tue, Jan 20, 2015 at 10:55 AM, Olemis Lang <ol...@gmail.com>> wrote:


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

On Tue, Jan 20, 2015 at 12:55 PM, Ryan J Ollos <rj...@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(tm) 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.

Re: FW: Creating tickets

Posted by Olemis Lang <ol...@gmail.com>.
On Tue, Jan 20, 2015 at 2:04 PM, Ryan J Ollos <rj...@apache.org> wrote:

> On Tue, Jan 20, 2015 at 10:55 AM, Olemis Lang <ol...@gmail.com> wrote:
>
>>
>>
>> On Tue, Jan 20, 2015 at 1:46 PM, Ryan J Ollos <rj...@apache.org> wrote:
>>
>>> On Tue, Jan 20, 2015 at 10:39 AM, Olemis Lang <ol...@gmail.com> wrote:
>>>
>>>>
>>>> On Tue, Jan 20, 2015 at 12:55 PM, Ryan J Ollos <rj...@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 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(tm) 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:

Re: FW: Creating tickets

Posted by Ryan J Ollos <rj...@apache.org>.
On Tue, Jan 20, 2015 at 10:55 AM, Olemis Lang <ol...@gmail.com> wrote:

>
>
> On Tue, Jan 20, 2015 at 1:46 PM, Ryan J Ollos <rj...@apache.org> wrote:
>
>> On Tue, Jan 20, 2015 at 10:39 AM, Olemis Lang <ol...@gmail.com> wrote:
>>
>>>
>>> On Tue, Jan 20, 2015 at 12:55 PM, Ryan J Ollos <rj...@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 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?

Re: FW: Creating tickets

Posted by Olemis Lang <ol...@gmail.com>.
On Tue, Jan 20, 2015 at 1:46 PM, Ryan J Ollos <rj...@apache.org> wrote:

> On Tue, Jan 20, 2015 at 10:39 AM, Olemis Lang <ol...@gmail.com> wrote:
>
>>
>> On Tue, Jan 20, 2015 at 12:55 PM, Ryan J Ollos <rj...@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

}}}



-- 
Regards,

Olemis - @olemislc

Apache(tm) 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:

Re: FW: Creating tickets

Posted by Ryan J Ollos <rj...@apache.org>.
On Tue, Jan 20, 2015 at 10:39 AM, Olemis Lang <ol...@gmail.com> wrote:

>
> On Tue, Jan 20, 2015 at 12:55 PM, Ryan J Ollos <rj...@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.

Re: FW: Creating tickets

Posted by Olemis Lang <ol...@gmail.com>.
On Tue, Jan 20, 2015 at 12:55 PM, Ryan J Ollos <rj...@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 ...
@sharif : ... the last part seems to be missing , so please insert full
error message you find in the log.

<ot>
@sharif : please try to avoid sending images to the list . Your messages
look almost unreadable to me . I recommend you to please read some
suggestions for posting images on public mailing lists , and follow these
guidelines so that it will be easier for us to provide you with feedback .

http://apache.org/dev/contrib-email-tips.html

Please it'd be nice if you could pay special attention to "Do not send
HTML; send plain text (Content-type: text/plain) instead" . My personal
suggestion would be to post the pictures to public web sites and insert the
URL in your messages .

Thanks in advance
</ot>

-- 
Regards,

Olemis - @olemislc

Apache(tm) 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:

Re: FW: Creating tickets

Posted by Ryan J Ollos <rj...@apache.org>.
On Tue, Jan 20, 2015 at 7:52 AM, Sharif Uddin <Sh...@spectrumasa.com>
wrote:

>  I am using latest version 0.8?
>
>
Thanks, I didn't notice the version in the footer when replying on my
mobile earlier.

 The images I placed on this email are not correct?
>

There should be a //Create Ticket// button near the top of the page, unless
you've explicitly disabled QuickCreateTicket, which it appears is not the
case.

Normally I'd refer you to the demo site, but that seems to be down again.
https://bh-demo2.apache.org/

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


> bloodhound/installer/bloodhound/environments/main/conf/trac.ini
>
>
>
> # -*- coding: utf-8 -*-
>
>
>
> [account-manager]
>
> user_lock_max_time = 86400
>
>
>
> [bhrelations_links]
>
> children.label = is a child of
>
> dependency = dependson,dependent
>
> dependency.validators = NoCycles,SingleProduct
>
> dependent.label = is a dependency of
>
> dependson.blocks = true
>
> dependson.label = depends on
>
> duplicate = duplicateof,duplicatedby
>
> duplicate.validators = ReferencesOlder
>
> duplicatedby.label = is duplicated by
>
> duplicateof.label = is a duplicate of
>
> oneway = refersto
>
> parent.exclusive = true
>
> parent.label = is a parent of
>
> parent_children = parent,children
>
> parent_children.validators = OneToMany,SingleProduct,NoCycles
>
> refersto.label = refers to
>
>
>
> [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
>
>
>
> [inherit]
>
> file =
> /opt/html/bloodhound/installer/bloodhound/environments/main/conf/base.ini
>
>
>
> [logging]
>
> log_type = file
>
>
>
> [project]
>
> name = main
>
>
>
> [ticket]
>
> default_product = ECSP
>
>
>
> [ticket-workflow]
>
> accept = new,assigned,accepted,reopened -> accepted
>
> accept.operations = set_owner_to_self
>
> accept.permissions = TICKET_MODIFY
>
> leave = * -> *
>
> leave.default = 1
>
> leave.operations = leave_status
>
> reassign = new,assigned,accepted,reopened -> assigned
>
> reassign.operations = set_owner
>
> reassign.permissions = TICKET_MODIFY
>
> reopen = closed -> reopened
>
> reopen.operations = del_resolution
>
> reopen.permissions = TICKET_CREATE
>
> resolve = new,assigned,accepted,reopened -> closed
>
> resolve.operations = set_resolution
>
> resolve.permissions = TICKET_MODIFY
>
>
>
> [trac]
>
> database = sqlite:db/bloodhound.db
>
>
>
> [notification]
>
> admit_domains =
>
> always_notify_owner = true
>
> always_notify_reporter = true
>
> always_notify_updater = true
>
> ambiguous_char_width = single
>
> batch_subject_template = $prefix Batch modify: $tickets_descr
>
> email_ldap_serveruri =
>
> email_sender = SmtpEmailSender
>
> ignore_domains =
>
> mime_encoding = none
>
> sendmail_path = sendmail
>
> smtp_always_bcc =
>
> smtp_always_cc = sharif.uddin@spectrumasa.com
>
> smtp_default_domain =
>
> smtp_enabled = true
>
> smtp_from = noreply@spectrumasa.com
>
> smtp_from_author = false
>
> smtp_from_name = "SI Test"
>
> smtp_password =
>
> smtp_port = 25
>
> smtp_replyto =
>
> smtp_server = x.uk.spectrumasa.com
>
> smtp_subject_prefix = __default__
>
> smtp_user =
>
> ticket_subject_template = $prefix #$ticket.id: $summary
>
> use_public_cc = true
>
> use_short_addr = false
>
> use_tls = false
>
>
>
>
>
> bloodhound/installer/bloodhound/environments/main/conf/base.ini
>
>
>
>
>
> # -*- coding: utf-8 -*-
>
>
>
> [account-manager]
>
> account_changes_notify_addresses =
>
> authentication_url =
>
> db_htdigest_realm =
>
> force_passwd_change = true
>
> hash_method = HtDigestHashMethod
>
> htdigest_file =
> /opt/html/bloodhound/installer/bloodhound/environments/main/bloodhound.htdigest
>
> htdigest_realm = bloodhound
>
> htpasswd_file =
>
> htpasswd_hash_type = crypt
>
> password_store = HtDigestStore
>
> persistent_sessions = False
>
> refresh_passwd = False
>
> user_lock_max_time = 0
>
> verify_email = True
>
>
>
> [bhsearch]
>
> enable_redirect = true
>
> is_default = true
>
>
>
> [components]
>
> acct_mgr.admin.* = enabled
>
> acct_mgr.api.accountmanager = enabled
>
> acct_mgr.guard.accountguard = enabled
>
> acct_mgr.htfile.htdigeststore = enabled
>
> acct_mgr.macros.* = enabled
>
> acct_mgr.web_ui.accountmodule = enabled
>
> acct_mgr.web_ui.loginmodule = enabled
>
> bhdashboard.* = enabled
>
> bhrelations.* = enabled
>
> bhsearch.* = enabled
>
> bhtheme.* = enabled
>
> multiproduct.* = enabled
>
> permredirect.* = enabled
>
> themeengine.api.* = enabled
>
> themeengine.web_ui.* = enabled
>
> trac.ticket.report.reportmodule = disabled
>
> trac.ticket.web_ui.ticketmodule = disabled
>
> trac.web.auth.loginmodule = disabled
>
>
>
> [header_logo]
>
> src =
>
>
>
> [labels]
>
> application_full = Apache Bloodhound
>
> application_short = Bloodhound
>
> footer_left_postfix =
>
> footer_left_prefix =
>
> footer_right =
>
>
>
> [mainnav]
>
> browser.label = Source
>
> roadmap = disabled
>
> search = disabled
>
> tickets.label = Tickets
>
> timeline = disabled
>
>
>
> [metanav]
>
> about = disabled
>
>
>
> [project]
>
> footer = Get involved with <a href="https://issues.apache.org/bloodhound/">Apache
> Bloodhound</a>
>
>
>
> [theme]
>
> theme = bloodhound
>
>
>
> [trac]
>
> environment_factory =
> /opt/html/bloodhound/bloodhound_multiproduct/multiproduct/hooks.py
>
> mainnav =
> dashboard,wiki,browser,tickets,newticket,timeline,roadmap,search,admin
>
> request_factory =
> /opt/html/bloodhound/bloodhound_multiproduct/multiproduct/hooks.py
>
>
>
>
>
>
>
>
>
> *From:* Ryan J Ollos [mailto:rjollos@apache.org]
> *Sent:* 20 January 2015 15:24
> *To:* user@bloodhound.apache.org
> *Subject:* Re: FW: Creating tickets
>
>
>
>
>
> On Tue, Jan 20, 2015, 4:49 AM Sharif Uddin <Sh...@spectrumasa.com>
> wrote:
>
>
>
> Hello
>
>
>
>
>
> I think I sent it to wrong list before.
>
>
>
>
>
> I have created multiple products. See screenshot
>
>
>
>
>
>
>
> If I try to create a ticket for one of these products I get an error
>
>
>
> 2015-01-20 12:36:48,180 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-20 12:36:48,180 Trac[main] WARNING: [172.16.0.85] HTTPNotFound:
> 404 Invalid ticket number (Ticket 7 does no
>
>
>
>
>
>
>
>
>
>
>
>
>
> However when I click on tickets I see the following
>
>
>
>
>
>
>
>
>
> Seems like the error message is misleading.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Also if I click on “new ticket” then change the product type it redirects
> me to wiki page. I then have to click on “new ticket” again.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Have to click new ticket again
>
>
>
>
>
>
>
>
>
> Which version of Bloodhound are you running?  It looks like you've
> disabled the quick create ticket.  Is that correct?  Could you post your
> entire configuration file?
>
> I think we may have an open ticket for the later issue that you reported.
>
>
>
> 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.
>

RE: FW: Creating tickets

Posted by Sharif Uddin <Sh...@spectrumasa.com>.
I am using latest version 0.8?

The images I placed on this email are not correct?

bloodhound/installer/bloodhound/environments/main/conf/trac.ini

# -*- coding: utf-8 -*-

[account-manager]
user_lock_max_time = 86400

[bhrelations_links]
children.label = is a child of
dependency = dependson,dependent
dependency.validators = NoCycles,SingleProduct
dependent.label = is a dependency of
dependson.blocks = true
dependson.label = depends on
duplicate = duplicateof,duplicatedby
duplicate.validators = ReferencesOlder
duplicatedby.label = is duplicated by
duplicateof.label = is a duplicate of
oneway = refersto
parent.exclusive = true
parent.label = is a parent of
parent_children = parent,children
parent_children.validators = OneToMany,SingleProduct,NoCycles
refersto.label = refers to

[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

[inherit]
file = /opt/html/bloodhound/installer/bloodhound/environments/main/conf/base.ini

[logging]
log_type = file

[project]
name = main

[ticket]
default_product = ECSP

[ticket-workflow]
accept = new,assigned,accepted,reopened -> accepted
accept.operations = set_owner_to_self
accept.permissions = TICKET_MODIFY
leave = * -> *
leave.default = 1
leave.operations = leave_status
reassign = new,assigned,accepted,reopened -> assigned
reassign.operations = set_owner
reassign.permissions = TICKET_MODIFY
reopen = closed -> reopened
reopen.operations = del_resolution
reopen.permissions = TICKET_CREATE
resolve = new,assigned,accepted,reopened -> closed
resolve.operations = set_resolution
resolve.permissions = TICKET_MODIFY

[trac]
database = sqlite:db/bloodhound.db

[notification]
admit_domains =
always_notify_owner = true
always_notify_reporter = true
always_notify_updater = true
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_ldap_serveruri =
email_sender = SmtpEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc = sharif.uddin@spectrumasa.com
smtp_default_domain =
smtp_enabled = true
smtp_from = noreply@spectrumasa.com
smtp_from_author = false
smtp_from_name = "SI Test"
smtp_password =
smtp_port = 25
smtp_replyto =
smtp_server = x.uk.spectrumasa.com
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = true
use_short_addr = false
use_tls = false


bloodhound/installer/bloodhound/environments/main/conf/base.ini


# -*- coding: utf-8 -*-

[account-manager]
account_changes_notify_addresses =
authentication_url =
db_htdigest_realm =
force_passwd_change = true
hash_method = HtDigestHashMethod
htdigest_file = /opt/html/bloodhound/installer/bloodhound/environments/main/bloodhound.htdigest
htdigest_realm = bloodhound
htpasswd_file =
htpasswd_hash_type = crypt
password_store = HtDigestStore
persistent_sessions = False
refresh_passwd = False
user_lock_max_time = 0
verify_email = True

[bhsearch]
enable_redirect = true
is_default = true

[components]
acct_mgr.admin.* = enabled
acct_mgr.api.accountmanager = enabled
acct_mgr.guard.accountguard = enabled
acct_mgr.htfile.htdigeststore = enabled
acct_mgr.macros.* = enabled
acct_mgr.web_ui.accountmodule = enabled
acct_mgr.web_ui.loginmodule = enabled
bhdashboard.* = enabled
bhrelations.* = enabled
bhsearch.* = enabled
bhtheme.* = enabled
multiproduct.* = enabled
permredirect.* = enabled
themeengine.api.* = enabled
themeengine.web_ui.* = enabled
trac.ticket.report.reportmodule = disabled
trac.ticket.web_ui.ticketmodule = disabled
trac.web.auth.loginmodule = disabled

[header_logo]
src =

[labels]
application_full = Apache Bloodhound
application_short = Bloodhound
footer_left_postfix =
footer_left_prefix =
footer_right =

[mainnav]
browser.label = Source
roadmap = disabled
search = disabled
tickets.label = Tickets
timeline = disabled

[metanav]
about = disabled

[project]
footer = Get involved with <a href="https://issues.apache.org/bloodhound/">Apache Bloodhound</a>

[theme]
theme = bloodhound

[trac]
environment_factory = /opt/html/bloodhound/bloodhound_multiproduct/multiproduct/hooks.py
mainnav = dashboard,wiki,browser,tickets,newticket,timeline,roadmap,search,admin
request_factory = /opt/html/bloodhound/bloodhound_multiproduct/multiproduct/hooks.py




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




On Tue, Jan 20, 2015, 4:49 AM Sharif Uddin <Sh...@spectrumasa.com>> wrote:



Hello





I think I sent it to wrong list before.





I have created multiple products. See screenshot


[cid:image001.jpg@01D034C9.0B349290]





If I try to create a ticket for one of these products I get an error



2015-01-20 12:36:48,180 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-20 12:36:48,180 Trac[main] WARNING: [172.16.0.85] HTTPNotFound: 404 Invalid ticket number (Ticket 7 does no








[cid:image001.jpg@01D034C9.0B349290]





However when I click on tickets I see the following




[cid:image001.jpg@01D034C9.0B349290]





Seems like the error message is misleading.





















Also if I click on “new ticket” then change the product type it redirects me to wiki page. I then have to click on “new ticket” again.




[cid:image001.jpg@01D034C9.0B349290]










[cid:image001.jpg@01D034C9.0B349290]








[cid:image001.jpg@01D034C9.0B349290]







Have to click new ticket again




[cid:image001.jpg@01D034C9.0B349290]





Which version of Bloodhound are you running?  It looks like you've disabled the quick create ticket.  Is that correct?  Could you post your entire configuration file?

I think we may have an open ticket for the later issue that you reported.



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.

Re: FW: Creating tickets

Posted by Ryan J Ollos <rj...@apache.org>.
 On Tue, Jan 20, 2015, 4:49 AM Sharif Uddin <Sh...@spectrumasa.com>
wrote:



Hello





I think I sent it to wrong list before.





I have created multiple products. See screenshot







If I try to create a ticket for one of these products I get an error



2015-01-20 12:36:48,180 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-20 12:36:48,180 Trac[main] WARNING: [172.16.0.85] HTTPNotFound: 404
Invalid ticket number (Ticket 7 does no













However when I click on tickets I see the following









Seems like the error message is misleading.





















Also if I click on “new ticket” then change the product type it redirects
me to wiki page. I then have to click on “new ticket” again.





























Have to click new ticket again







  Which version of Bloodhound are you running?  It looks like you've
disabled the quick create ticket.  Is that correct?  Could you post your
entire configuration file?

I think we may have an open ticket for the later issue that you reported.