You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by Apache Bloodhound <de...@bloodhound.apache.org> on 2013/08/20 16:09:48 UTC
[Apache Bloodhound] #639: KeyError: 'product'
#639: KeyError: 'product'
--------------------------+--------------------
Reporter: jav | Owner: nobody
Type: defect | Status: new
Priority: major | Milestone:
Component: multiproduct | Version: 0.6.0
Keywords: |
--------------------------+--------------------
==== How to Reproduce ====
While doing a GET operation on `/attachment/wiki/Topic1/Page1/Image1.png`,
Trac issued an internal error.
Clicking on an attachment link in a Wiki page results in an error message.
Request parameters:
{{{
{'path': u'Topic1/Page1/Image1.png',
'realm': u'wiki'}
}}}
User agent: `Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101
Firefox/23.0`
==== System Information ====
|| '''`Trac`''' || `1.0.1` [[br]] `` ||
|| '''`Babel`''' || `1.3` ||
|| '''`Bloodhound Trac`''' || `1.0.1` ||
|| '''`Genshi`''' || `0.7 (without speedups)` ||
|| '''`GIT`''' || `1.8.1.4` ||
|| '''`mod_wsgi`''' || `3.3 (WSGIProcessGroup bh_tracker
WSGIApplicationGroup %{GLOBAL})` ||
|| '''`psycopg2`''' || `2.4.5` ||
|| '''`Pygments`''' || `1.6` ||
|| '''`Python`''' || `2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]` ||
|| '''`pytz`''' || `2013b` ||
|| '''`setuptools`''' || `0.9.8` ||
|| '''`jQuery`''' || `1.7.2` ||
==== Enabled Plugins ====
|| '''`BloodhoundDashboardPlugin`''' || `0.6.0` ||
|| '''`BloodhoundMultiProduct`''' || `0.6.0` ||
|| '''`BloodhoundRelationsPlugin`''' || `0.6.0` ||
|| '''`BloodhoundSearchPlugin`''' || `0.6.0` ||
|| '''`BloodhoundTheme`''' || `0.6.0` ||
|| '''`TracAccountManager`''' || `0.4.3` ||
|| '''`TracPermRedirect`''' || `3.0` ||
|| '''`TracThemeEngine`''' || `2.2.0` ||
==== Python Traceback ====
{{{
Traceback (most recent call last):
File "/opt/apache-bloodhound-0.6/installer/bloodhound/lib/python2.7
/site-packages/trac/web/main.py", line 477, in _dispatch_request
dispatcher.dispatch(req)
File "/opt/apache-bloodhound-0.6/installer/bloodhound/lib/python2.7
/site-packages/trac/web/main.py", line 224, in dispatch
self._post_process_request(req, *resp)
File "/opt/apache-bloodhound-0.6/installer/bloodhound/lib/python2.7
/site-packages/trac/web/main.py", line 338, in _post_process_request
resp = f.post_process_request(req, *resp)
File "/opt/apache-bloodhound-0.6/installer/bloodhound/lib/python2.7
/site-packages/bhtheme/theme.py", line 476, in post_process_request
product_field = all_fields['product']
KeyError: 'product'
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/639>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #639: KeyError: 'product'
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#639: KeyError: 'product'
---------------------------+--------------------------
Reporter: jav | Owner: olemis
Type: defect | Status: review
Priority: critical | Milestone: Release 8
Component: multiproduct | Version: 0.6.0
Resolution: | Keywords: ticket field
---------------------------+--------------------------
Changes (by olemis):
* status: needinfo(review) => review
Comment:
afaict these errors disappear after applying these patches .
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/639#comment:10>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #639: KeyError: 'product'
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#639: KeyError: 'product'
---------------------------+------------------------------
Reporter: jav | Owner: olemis
Type: defect | Status: needinfo(review)
Priority: critical | Milestone: Release 8
Component: multiproduct | Version: 0.6.0
Resolution: | Keywords: ticket field
---------------------------+------------------------------
Changes (by rjollos):
* owner: rjollos => olemis
* status: review => needinfo(review)
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/639#comment:9>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #639: KeyError: 'product'
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#639: KeyError: 'product'
---------------------------+--------------------------
Reporter: jav | Owner:
Type: defect | Status: review
Priority: critical | Milestone: Release 8
Component: multiproduct | Version: 0.6.0
Resolution: | Keywords: ticket field
---------------------------+--------------------------
Comment (by rjollos):
(In [1517740])
0.8dev: Log warning or add warning message to page when the `product`
field is missing from the ticket template's `data` dictionary. Refs #639.
Patch by Olemis.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/639#comment:4>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #639: KeyError: 'product'
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#639: KeyError: 'product'
---------------------------+--------------------------
Reporter: jav | Owner: olemis
Type: defect | Status: closed
Priority: critical | Milestone: Release 8
Component: multiproduct | Version: 0.6.0
Resolution: fixed | Keywords: ticket field
---------------------------+--------------------------
Changes (by olemis):
* status: review => closed
* resolution: => fixed
Comment:
... therefore I'm closing this ticket . Feel free to reopen this ticket if
a similar issue is detected .
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/639#comment:11>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #639: KeyError: 'product'
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#639: KeyError: 'product'
---------------------------+--------------------------
Reporter: jav | Owner: olemis
Type: defect | Status: assigned
Priority: critical | Milestone: Release 8
Component: multiproduct | Version: 0.6.0
Resolution: | Keywords: ticket field
---------------------------+--------------------------
Changes (by olemis):
* owner: => olemis
* status: review => assigned
Comment:
I'm getting this error now
{{{#!py
Traceback (most recent call last):
File "/path/to/bloodhound/trac/trac/web/main.py", line 477, in
_dispatch_request
dispatcher.dispatch(req)
File "/path/to/bloodhound/trac/trac/web/main.py", line 224, in dispatch
self._post_process_request(req, *resp)
File "/path/to/bloodhound/trac/trac/web/main.py", line 338, in
_post_process_request
resp = f.post_process_request(req, *resp)
File "/path/to/bloodhound/bloodhound_theme/bhtheme/theme.py", line 503,
in post_process_request
msg = _("Missing ticket field '%s'.", 'product')
TypeError: gettext() takes exactly 2 arguments (3 given)
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/639#comment:5>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #639: KeyError: 'product'
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#639: KeyError: 'product'
---------------------------+--------------------------
Reporter: jav | Owner: rjollos
Type: defect | Status: review
Priority: critical | Milestone: Release 8
Component: multiproduct | Version: 0.6.0
Resolution: | Keywords: ticket field
---------------------------+--------------------------
Changes (by olemis):
* status: assigned => review
* owner: olemis => rjollos
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/639#comment:7>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #639: KeyError: 'product'
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#639: KeyError: 'product'
---------------------------+--------------------------
Reporter: jav | Owner:
Type: defect | Status: review
Priority: critical | Milestone: Release 8
Component: multiproduct | Version: 0.6.0
Resolution: | Keywords: ticket field
---------------------------+--------------------------
Changes (by olemis):
* status: accepted => review
* owner: olemis =>
* milestone: => Release 8
Old description:
> ==== How to Reproduce ====
>
> While doing a GET operation on
> `/attachment/wiki/Topic1/Page1/Image1.png`, Trac issued an internal
> error.
>
> Clicking on an attachment link in a Wiki page results in an error
> message.
>
> Request parameters:
> {{{
> {'path': u'Topic1/Page1/Image1.png',
> 'realm': u'wiki'}
> }}}
>
> User agent: `Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101
> Firefox/23.0`
>
> ==== System Information ====
> || '''`Trac`''' || `1.0.1` [[br]] `` ||
> || '''`Babel`''' || `1.3` ||
> || '''`Bloodhound Trac`''' || `1.0.1` ||
> || '''`Genshi`''' || `0.7 (without speedups)` ||
> || '''`GIT`''' || `1.8.1.4` ||
> || '''`mod_wsgi`''' || `3.3 (WSGIProcessGroup bh_tracker
> WSGIApplicationGroup %{GLOBAL})` ||
> || '''`psycopg2`''' || `2.4.5` ||
> || '''`Pygments`''' || `1.6` ||
> || '''`Python`''' || `2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]` ||
> || '''`pytz`''' || `2013b` ||
> || '''`setuptools`''' || `0.9.8` ||
> || '''`jQuery`''' || `1.7.2` ||
>
> ==== Enabled Plugins ====
> || '''`BloodhoundDashboardPlugin`''' || `0.6.0` ||
> || '''`BloodhoundMultiProduct`''' || `0.6.0` ||
> || '''`BloodhoundRelationsPlugin`''' || `0.6.0` ||
> || '''`BloodhoundSearchPlugin`''' || `0.6.0` ||
> || '''`BloodhoundTheme`''' || `0.6.0` ||
> || '''`TracAccountManager`''' || `0.4.3` ||
> || '''`TracPermRedirect`''' || `3.0` ||
> || '''`TracThemeEngine`''' || `2.2.0` ||
>
> ==== Python Traceback ====
> {{{
> Traceback (most recent call last):
> File "/opt/apache-bloodhound-0.6/installer/bloodhound/lib/python2.7
> /site-packages/trac/web/main.py", line 477, in _dispatch_request
> dispatcher.dispatch(req)
> File "/opt/apache-bloodhound-0.6/installer/bloodhound/lib/python2.7
> /site-packages/trac/web/main.py", line 224, in dispatch
> self._post_process_request(req, *resp)
> File "/opt/apache-bloodhound-0.6/installer/bloodhound/lib/python2.7
> /site-packages/trac/web/main.py", line 338, in _post_process_request
> resp = f.post_process_request(req, *resp)
> File "/opt/apache-bloodhound-0.6/installer/bloodhound/lib/python2.7
> /site-packages/bhtheme/theme.py", line 476, in post_process_request
> product_field = all_fields['product']
> KeyError: 'product'
> }}}
New description:
==== How to Reproduce ====
While doing a GET operation on `/attachment/wiki/Topic1/Page1/Image1.png`,
Trac issued an internal error.
Clicking on an attachment link in a Wiki page results in an error message.
Request parameters:
{{{
{'path': u'Topic1/Page1/Image1.png',
'realm': u'wiki'}
}}}
User agent: `Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101
Firefox/23.0`
==== System Information ====
|| '''`Trac`''' || `1.0.1` [[br]] `` ||
|| '''`Babel`''' || `1.3` ||
|| '''`Bloodhound Trac`''' || `1.0.1` ||
|| '''`Genshi`''' || `0.7 (without speedups)` ||
|| '''`GIT`''' || `1.8.1.4` ||
|| '''`mod_wsgi`''' || `3.3 (WSGIProcessGroup bh_tracker
WSGIApplicationGroup %{GLOBAL})` ||
|| '''`psycopg2`''' || `2.4.5` ||
|| '''`Pygments`''' || `1.6` ||
|| '''`Python`''' || `2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]` ||
|| '''`pytz`''' || `2013b` ||
|| '''`setuptools`''' || `0.9.8` ||
|| '''`jQuery`''' || `1.7.2` ||
==== Enabled Plugins ====
|| '''`BloodhoundDashboardPlugin`''' || `0.6.0` ||
|| '''`BloodhoundMultiProduct`''' || `0.6.0` ||
|| '''`BloodhoundRelationsPlugin`''' || `0.6.0` ||
|| '''`BloodhoundSearchPlugin`''' || `0.6.0` ||
|| '''`BloodhoundTheme`''' || `0.6.0` ||
|| '''`TracAccountManager`''' || `0.4.3` ||
|| '''`TracPermRedirect`''' || `3.0` ||
|| '''`TracThemeEngine`''' || `2.2.0` ||
==== Python Traceback ====
{{{#!py
Traceback (most recent call last):
File "/opt/apache-bloodhound-0.6/installer/bloodhound/lib/python2.7
/site-packages/trac/web/main.py", line 477, in _dispatch_request
dispatcher.dispatch(req)
File "/opt/apache-bloodhound-0.6/installer/bloodhound/lib/python2.7
/site-packages/trac/web/main.py", line 224, in dispatch
self._post_process_request(req, *resp)
File "/opt/apache-bloodhound-0.6/installer/bloodhound/lib/python2.7
/site-packages/trac/web/main.py", line 338, in _post_process_request
resp = f.post_process_request(req, *resp)
File "/opt/apache-bloodhound-0.6/installer/bloodhound/lib/python2.7
/site-packages/bhtheme/theme.py", line 476, in post_process_request
product_field = all_fields['product']
KeyError: 'product'
}}}
--
Comment:
The root cause of this error seems to be related to a lower level failure
of ''PostgreSQL'' DB backend that makes product ticket module component
look like if it was disabled. I've removed the failure by applying
[attachment:t639_r1516428_keyerror_product.diff attached patch] . It just
emits messages when such issue is detected . Details
{{{#!sh
$ hg qapplied
t639/t639_r1516428_keyerror_product.diff
$ hg log -r qparent
changeset: 398:17cd489fc827
tag: qparent
tag: svn-1516428
user: matevz@13f79535-47bb-0310-9956-ffa450edef68
date: Thu Aug 22 12:17:32 2013 +0000
summary: #444 - Show number of attachments next to attachment heading
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/639#comment:3>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #639: KeyError: 'product'
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#639: KeyError: 'product'
---------------------------+--------------------------
Reporter: jav | Owner: rjollos
Type: defect | Status: review
Priority: critical | Milestone: Release 8
Component: multiproduct | Version: 0.6.0
Resolution: | Keywords: ticket field
---------------------------+--------------------------
Comment (by rjollos):
(In [1518010])
0.8dev: Translatable message was generating a `gettext` error. Refs #639.
Patch by Olemis.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/639#comment:8>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #639: KeyError: 'product'
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#639: KeyError: 'product'
---------------------------+--------------------
Reporter: jav | Owner: nobody
Type: defect | Status: new
Priority: major | Milestone:
Component: multiproduct | Version: 0.6.0
Resolution: | Keywords:
---------------------------+--------------------
Comment (by rjollos):
It could be a duplicate of #594, which was fixed for version 0.7.0. We are
in the process of releasing 0.7.0, which will likely be available
tomorrow.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/639#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #639: KeyError: 'product'
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#639: KeyError: 'product'
---------------------------+--------------------------
Reporter: jav | Owner: olemis
Type: defect | Status: assigned
Priority: critical | Milestone: Release 8
Component: multiproduct | Version: 0.6.0
Resolution: | Keywords: ticket field
---------------------------+--------------------------
Comment (by olemis):
`gettext` error fixed after applying
[attachment:t639_r1516428_keyerror_product.2.diff this patch]. Details
{{{#!sh
$ hg qapplied
t639/t639_r1516428_keyerror_product.2.diff
$ hg log -r qparent
changeset: 408:58cebe8ffbba
tag: qparent
tag: svn-1517740
user: rjollos@13f79535-47bb-0310-9956-ffa450edef68
date: Tue Aug 27 02:22:40 2013 +0000
summary: 0.8dev: Log warning or add warning message to page when the
`product` field is missing from the ticket template's `data` dictionary.
Refs #639.
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/639#comment:6>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #639: KeyError: 'product'
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#639: KeyError: 'product'
---------------------------+--------------------------
Reporter: jav | Owner: olemis
Type: defect | Status: accepted
Priority: critical | Milestone:
Component: multiproduct | Version: 0.6.0
Resolution: | Keywords: ticket field
---------------------------+--------------------------
Changes (by olemis):
* owner: nobody => olemis
* priority: major => critical
* status: new => accepted
* keywords: => ticket field
Comment:
I've noticed this too running ''apache2'' web server . The error used to
disappear after a {{{kill -s HUP `pgrep apache2`}}} .
Replying to [comment:1 rjollos]:
> It could be a duplicate of #594, which was fixed for version 0.7.0. We
are in the process of releasing 0.7.0, which will likely be available
tomorrow.
To me it looks more like an issue related to ticket fields . I'll take a
look ...
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/639#comment:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker