incubator-bloodhound-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Martin <gary.mar...@wandisco.com>
Subject Re: [Apache Bloodhound] #244: Apps/New Ticket (/newticket) fails with an internal error
Date Tue, 23 Oct 2012 15:36:55 GMT
Hi Jure,

Thanks for spotting that. I am not sure whether I can replicate it but, 
at first glance,  it looks to me that we should be using _colcount 
rather than colcount on line 115 of 
bloodhound_theme/bhtheme/templates/bh_ticket_box.html

Does that make sense/help?

Cheers,
     Gary


On 23/10/12 15:30, Apache Bloodhound wrote:
> #244: Apps/New Ticket (/newticket) fails with an internal error
> -----------------------+--------------------
>   Reporter:  jure       |      Owner:  nobody
>       Type:  defect     |     Status:  new
>   Priority:  major      |  Milestone:
> Component:  dashboard  |    Version:
>   Keywords:             |
> -----------------------+--------------------
>   Might be connected with trac update, fails in bh theme, r1401301, was able
>   to reproduce on osx and linux. Error looks like this:
>
>   TypeError: unsupported operand type(s) for /: 'Undefined' and 'int'
>
>   ==== How to Reproduce ====
>
>   While doing a GET operation on `/newticket`, Trac issued an internal
>   error.
>
>   ''(please provide additional details here)''
>
>   Request parameters:
>   {{{
>   {}
>   }}}
>
>   User agent: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5)
>   AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4`
>
>   ==== System Information ====
>   ''System information not available''
>
>   ==== Enabled Plugins ====
>   ''Plugin information not available''
>
>   ==== Python Traceback ====
>   {{{
>   Traceback (most recent call last):
>     File "/Users/jure/src/bloodhound/trac/trac/web/main.py", line 497, in
>   _dispatch_request
>       dispatcher.dispatch(req)
>     File "/Users/jure/src/bloodhound/trac/trac/web/main.py", line 233, in
>   dispatch
>       content_type)
>     File "/Users/jure/src/bloodhound/trac/trac/web/chrome.py", line 1000, in
>   render_template
>       encoding='utf-8')
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/core.py", line 183, in render
>       return encode(generator, method=method, encoding=encoding, out=out)
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/output.py", line 58, in encode
>       for chunk in iterator:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/output.py", line 339, in __call__
>       for kind, data, pos in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/output.py", line 826, in __call__
>       for kind, data, pos in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/output.py", line 670, in __call__
>       for kind, data, pos in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/output.py", line 771, in __call__
>       for kind, data, pos in chain(stream, [(None, None, None)]):
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/output.py", line 586, in __call__
>       for ev in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/core.py", line 288, in _ensure
>       for event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/core.py", line 288, in _ensure
>       for event in stream:
>     File "/Users/jure/src/bloodhound/trac/trac/web/chrome.py", line 1137, in
>   _strip_accesskeys
>       for kind, data, pos in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/core.py", line 288, in _ensure
>       for event in stream:
>     File "/Users/jure/src/bloodhound/trac/trac/web/chrome.py", line 1126, in
>   _generate
>       for kind, data, pos in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/core.py", line 288, in _ensure
>       for event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/core.py", line 288, in _ensure
>       for event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/filters/transform.py", line 686, in _unmark
>       for mark, event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/filters/transform.py", line 1175, in __call__
>       for mark, (kind, data, pos) in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/filters/transform.py", line 714, in __call__
>       for mark, event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/filters/transform.py", line 779, in __call__
>       for mark, event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/filters/transform.py", line 726, in __call__
>       mark, subevent = next()
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/filters/transform.py", line 682, in _mark
>       for event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/base.py", line 605, in _include
>       for event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/markup.py", line 378, in _match
>       ctxt, start=idx + 1, **vars):
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/markup.py", line 378, in _match
>       ctxt, start=idx + 1, **vars):
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/markup.py", line 327, in _match
>       for event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/base.py", line 545, in _flatten
>       for kind, data, pos in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/core.py", line 288, in _ensure
>       for event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/path.py", line 588, in _generate
>       subevent = next()
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/base.py", line 605, in _include
>       for event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/markup.py", line 316, in _strip
>       event = next()
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/base.py", line 545, in _flatten
>       for kind, data, pos in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/core.py", line 288, in _ensure
>       for event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/path.py", line 588, in _generate
>       subevent = next()
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/base.py", line 605, in _include
>       for event in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/markup.py", line 316, in _strip
>       event = next()
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/base.py", line 545, in _flatten
>       for kind, data, pos in stream:
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/directives.py", line 359, in __call__
>       iterable = _eval_expr(self.expr, ctxt, vars)
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/base.py", line 277, in _eval_expr
>       retval = expr.evaluate(ctxt)
>     File "/Users/jure/src/bloodhound/installer/bloodhound/lib/python2.7
>   /site-packages/genshi/template/eval.py", line 178, in evaluate
>       return eval(self.code, _globals, {'__data__': data})
>     File
>   "/Users/jure/src/bloodhound/bloodhound_theme/bhtheme/templates/bh_ticket_box.html",
>   line 114, in <Expression u"iter([(text_fields, 'span4', colcount / 2,
>   None, False),            (area_fields, colspan, 1, None, False)])">
>       <py:for each="_fields, csscls, count, fontsize, is_inline in
>   TypeError: unsupported operand type(s) for /: 'Undefined' and 'int'
>   }}}
>


Mime
View raw message