id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
4722,post_process_request not preserve content_type_ which cause text/plain templates fail to render.,jiangxin,jiangxin,post_process_request in traccosign/accountldap.py carelessly set content_type to None. It's bad if template is not a html template but a text template.\r\n\r\nThis bug cause plain text output of source code revision log raise a exception:\r\n{{{\r\nTraceback (most recent call last):\r\n  File "/usr/lib/python2.5/site-packages/trac/web/main.py"_ line 459_ in _dispatch_request\r\n    dispatcher.dispatch(req)\r\n  File "/usr/lib/python2.5/site-packages/trac/web/main.py"_ line 237_ in dispatch\r\n    content_type)\r\n  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py"_ line 740_ in render_template\r\n    template = self.load_template(filename_ method=method)\r\n  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py"_ line 724_ in load_template\r\n    return self.templates.load(filename_ cls=cls)\r\n  File "/var/lib/python-support/python2.5/genshi/template/loader.py"_ line 227_ in load\r\n    filename_ encoding=encoding)\r\n  File "/var/lib/python-support/python2.5/genshi/template/loader.py"_ line 265_ in _instantiate\r\n    allow_exec=self.allow_exec)\r\n  File "/var/lib/python-support/python2.5/genshi/template/markup.py"_ line 67_ in __init__\r\n    allow_exec=allow_exec)\r\n  File "/var/lib/python-support/python2.5/genshi/template/base.py"_ line 406_ in __init__\r\n    raise TemplateSyntaxError(e.msg_ self.filepath_ e.lineno_ e.offset)\r\nTemplateSyntaxError: not well-formed (invalid token): line 1_ column 1 (/usr/lib/python2.5/site-packages/trac/versioncontrol/templates/revisionlog.txt_ line 1)\r\n}}},defect,closed,highest,TracCoSignPlugin,blocker,fixed,,,0.11
