#491: All request handlers failing after upgrade
---------------------------+------------------------------------
  Reporter:  olemis        |      Owner:  nobody
      Type:  defect        |     Status:  new
  Priority:  blocker       |  Milestone:  Release 6
 Component:  multiproduct  |    Version:
Resolution:                |   Keywords:  request handler filter
---------------------------+------------------------------------
Description changed by olemis:

Old description:

> ==== How to Reproduce ====
>
> While doing a GET operation on `/wiki`, Trac issued an internal error.
>
> This happened in global environment after upgrade with multi-product
> disabled while running r1462483 . I'm not sure of whether this is an
> issue caused by dashboard or theme plugin .
>
> Request parameters:
> {{{
> {}
> }}}
>
> User agent: `Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0)
> Gecko/20100101 Firefox/11.0`
>
> ==== System Information ====
> || '''`Trac`''' || `1.0.1` [[br]] `` ||
> || '''`Babel`''' || `0.9.4` ||
> || '''`Bloodhound Trac`''' || `1.0.1` ||
> || '''`Docutils`''' || `0.6` ||
> || '''`Genshi`''' || `0.6 (without speedups)` ||
> || '''`Pygments`''' || `1.2.2` ||
> || '''`pysqlite`''' || `2.4.1` ||
> || '''`Python`''' || `2.6.5 (r265:79063, Apr 16 2010, 13:57:41) ` [[br]]
> `[GCC 4.4.3]` ||
> || '''`pytz`''' || `2010b` ||
> || '''`setuptools`''' || `0.6c11` ||
> || '''`SQLite`''' || `3.6.22` ||
> || '''`jQuery`''' || `1.7.2` ||
>
> ==== Enabled Plugins ====
> || '''`BloodhoundDashboardPlugin`''' || `0.6.0dev` ||
> || '''`BloodhoundTheme`''' || `0.6.0dev` ||
> || '''`TracThemeEngine`''' || `2.1.3` ||
>
> ==== Python Traceback ====
> {{{
> Traceback (most recent call last):
>   File "/path/to/bloodhound/trac/trac/web/main.py", line 506, 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 264,
> in post_process_request
>     data['product_list'] = self._get_product_list(req)
>   File "/path/to/bloodhound/bloodhound_theme/bhtheme/theme.py", line 356,
> in _get_product_list
>     if 'PRODUCT_VIEW' in req.product_perm(product.prefix,
> product.resource):
>   File "/path/to/bloodhound/trac/trac/web/api.py", line 319, in
> __getattr__
>     raise AttributeError(name)
> AttributeError: product_perm
> }}}

New description:

 ==== How to Reproduce ====

 While doing a GET operation on `/wiki`, Trac issued an internal error.

 This happened in global environment after upgrade with multi-product
 disabled while running r1462483 (i.e. `bep_0003_multiproduct` branch) .
 I'm not sure of whether this is an issue caused by dashboard or theme
 plugin .

 Request parameters:
 {{{
 {}
 }}}

 User agent: `Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0)
 Gecko/20100101 Firefox/11.0`

 ==== System Information ====
 || '''`Trac`''' || `1.0.1` [[br]] `` ||
 || '''`Babel`''' || `0.9.4` ||
 || '''`Bloodhound Trac`''' || `1.0.1` ||
 || '''`Docutils`''' || `0.6` ||
 || '''`Genshi`''' || `0.6 (without speedups)` ||
 || '''`Pygments`''' || `1.2.2` ||
 || '''`pysqlite`''' || `2.4.1` ||
 || '''`Python`''' || `2.6.5 (r265:79063, Apr 16 2010, 13:57:41) ` [[br]]
 `[GCC 4.4.3]` ||
 || '''`pytz`''' || `2010b` ||
 || '''`setuptools`''' || `0.6c11` ||
 || '''`SQLite`''' || `3.6.22` ||
 || '''`jQuery`''' || `1.7.2` ||

 ==== Enabled Plugins ====
 || '''`BloodhoundDashboardPlugin`''' || `0.6.0dev` ||
 || '''`BloodhoundTheme`''' || `0.6.0dev` ||
 || '''`TracThemeEngine`''' || `2.1.3` ||

 ==== Python Traceback ====
 {{{
 #!py

 Traceback (most recent call last):
   File "/path/to/bloodhound/trac/trac/web/main.py", line 506, 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 264,
 in post_process_request
     data['product_list'] = self._get_product_list(req)
   File "/path/to/bloodhound/bloodhound_theme/bhtheme/theme.py", line 356,
 in _get_product_list
     if 'PRODUCT_VIEW' in req.product_perm(product.prefix,
 product.resource):
   File "/path/to/bloodhound/trac/trac/web/api.py", line 319, in
 __getattr__
     raise AttributeError(name)
 AttributeError: product_perm
 }}}

--

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/491#comment:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Reply via email to