bloodhound-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sharif Uddin <Sharif.Ud...@spectrumasa.com>
Subject RE: FW: Creating tickets
Date Tue, 20 Jan 2015 18:16:30 GMT
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 <Sharif.Uddin@spectrumasa.com<mailto:Sharif.Uddin@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<mailto:sharif.uddin@spectrumasa.com>
smtp_default_domain =
smtp_enabled = true
smtp_from = noreply@spectrumasa.com<mailto: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<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<mailto:rjollos@apache.org>]
Sent: 20 January 2015 15:24
To: user@bloodhound.apache.org<mailto:user@bloodhound.apache.org>
Subject: Re: FW: Creating tickets




On Tue, Jan 20, 2015, 4:49 AM Sharif Uddin <Sharif.Uddin@spectrumasa.com<mailto:Sharif.Uddin@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.
Mime
View raw message