Edgewall Software
Modify

Opened 15 years ago

Closed 14 years ago

#9213 closed defect (worksforme)

AttributeError: 'bool' object has no attribute 'splitlines'

Reported by: watts@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.11rc2
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

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

When trying to run a query on the trac, I get the error below. The error is reproducible for different logins.

I noticed when I opened a query for tickets where reporter is "watts" (me) or "bahadur", it gave this error, but when I used "keenan" it worked.

Request parameters:

{'col': [u'id',
         u'summary',
         u'status',
         u'engineering_time',
         u'gripper',
         u'forearm'],
 'order': u'priority',
 'reporter': u'~fx_sung',
 'status': [u'closed with redline',
            u'engineering',
            u'manufacturing',
            u'new',
            u'postponed',
            u'reopened']}

User Agent was: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021501 Ubuntu/8.04 (hardy) Firefox/3.0.18

System Information

Trac 0.11rc2
Python 2.5.1 (r251:54863, Jul 31 2008, 23:17:40)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]
setuptools 0.6c6
SQLite 3.4.2
pysqlite 2.3.4
Genshi 0.5
Subversion 1.4.4 (r25188)
jQuery: 1.2.3

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/web/main.py", line 219, in dispatch
    data, content_type)
  File "/usr/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/web/chrome.py", line 726, in render_template
    stream.render(method, doctype=doctype, out=buffer)
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/core.py", line 179, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/output.py", line 61, in encode
    for chunk in iterator:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/output.py", line 311, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/output.py", line 753, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/output.py", line 592, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/output.py", line 698, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/output.py", line 532, in __call__
    for ev in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/web/chrome.py", line 779, in _strip_accesskeys
    for kind, data, pos in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/web/chrome.py", line 768, in _generate
    for kind, data, pos in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/markup.py", line 299, in _match
    ctxt, match_templates[idx + 1:], **vars):
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/markup.py", line 299, in _match
    ctxt, match_templates[idx + 1:], **vars):
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/markup.py", line 246, in _match
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 533, in _eval
    for event in substream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 496, in _eval
    for kind, data, pos in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 551, in _flatten
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/path.py", line 141, in _generate
    subevent = stream.next()
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/markup.py", line 235, in _strip
    event = stream.next()
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 533, in _eval
    for event in substream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 496, in _eval
    for kind, data, pos in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 551, in _flatten
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/path.py", line 141, in _generate
    subevent = stream.next()
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 582, in _include
    for event in tmpl.generate(ctxt, **vars):
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/markup.py", line 246, in _match
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 520, in _eval
    result = _eval_expr(data, ctxt, **vars)
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/base.py", line 286, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "/usr/lib/python2.5/site-packages/Genshi-0.5-py2.5-linux-i686.egg/genshi/template/eval.py", line 180, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "/usr/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ticket/templates/query_results.html", line 64, in <Expression u'wiki_to_html(ticket_context, value)'>
    <py:otherwise>${wiki_to_html(ticket_context, value)}</py:otherwise>
  File "/usr/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/wiki/formatter.py", line 1102, in format_to_html
    return HtmlFormatter(env, context, wikidom).generate(escape_newlines)
  File "/usr/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/wiki/formatter.py", line 1061, in generate
    escape_newlines)
  File "/usr/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/wiki/formatter.py", line 837, in format
    for line in text.splitlines():
AttributeError: 'bool' object has no attribute 'splitlines'

Attachments (0)

Change History (2)

comment:1 by Christian Boos, 15 years ago

0.11rc2 is way too old. Please upgrade to some released version of Trac 0.11 (0.11.7 being the latest, see TracDownload).

comment:2 by Christian Boos, 14 years ago

Resolution: worksforme
Status: newclosed

Please reopen if this can be reproduced with a recent version (i.e. ≥ 0.11.7).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.