Opened 11 years ago
Closed 11 years ago
#11442 closed defect (cantfix)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 347: ordinal not in range(128)
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | TracSvnAuthzPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
Hi
I am trying to edit the SUBVERSION permissions in the Admin panel but I always get the below error.
I feel it will have to do with some character entered which might be causing this but Im not aware of were to look at.
Could you please help me on that?
The error details are below
Thanks
Oops…
Trac detected an internal error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 347: ordinal not in range(128) If you think this should work you can reproduce the problem, you should consider reporting this to the Trac team.
Before you do that, though, please first try searching for similar issues, as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac, please try the mailing list instead of filing a ticket.
Otherwise, please
How to Reproduce
While doing a GET operation on /admin/svn/authz
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'cat_id': u'svn', 'panel_id': u'authz', 'path_info': None}
User Agent was: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; BOIE8;ENUS)
System Information
Trac | 0.11.1
|
Python | 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
|
setuptools | 0.6c9
|
MySQL | server: "5.0.67-community-nt", client: "5.0.27", thread-safe: 1
|
MySQLdb | 1.2.2
|
Genshi | 0.5.1
|
mod_python | 3.3.1
|
Pygments | 0.11.1
|
Subversion | 1.5.2 (r32768)
|
jQuery: | 1.2.6
|
Python Traceback
Traceback (most recent call last): File "c:\jamp\bin\Python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac\web\main.py", line 423, in _dispatch_request dispatcher.dispatch(req) File "c:\jamp\bin\Python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac\web\main.py", line 219, in dispatch data, content_type) File "c:\jamp\bin\Python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac\web\chrome.py", line 715, in render_template return stream.render(method, doctype=doctype) File "build\bdist.win32\egg\genshi\core.py", line 179, in render return encode(generator, method=method, encoding=encoding, out=out) File "build\bdist.win32\egg\genshi\output.py", line 60, in encode return _encode(u''.join(list(iterator))) File "build\bdist.win32\egg\genshi\output.py", line 311, in __call__ for kind, data, pos in stream: File "build\bdist.win32\egg\genshi\output.py", line 753, in __call__ for kind, data, pos in stream: File "build\bdist.win32\egg\genshi\output.py", line 592, in __call__ for kind, data, pos in stream: File "build\bdist.win32\egg\genshi\output.py", line 710, in __call__ text = escape(pop_text(), quotes=False) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 347: ordinal not in range(128)
a new ticket at the Trac project site, where you can describe the problem and explain how to reproduce it.
Python Traceback Most recent call last: File "c:\jamp\bin\Python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac\web\main.py", line 423, in _dispatch_request Code fragment: try: if not env and env_error: raise HTTPInternalError(env_error) try: dispatcher = RequestDispatcher(env) dispatcher.dispatch(req) except RequestDone: pass resp = req._response or [] except HTTPException, e: Local variables:Name Value after [u' except RequestDone:', u' pass', u' resp = ... before [u' try:', u' if not env and env_error:', u' raise ... dispatcher <trac.web.main.RequestDispatcher object at 0x070B7450> e UnicodeDecodeError('ascii', '[groups]\nnissan = amarco, dperez\nao = ... env <trac.env.Environment object at 0x05CC41D0> env_error None exc_info (<type 'exceptions.UnicodeDecodeError'>, UnicodeDecodeError('ascii', ... filename 'c:\\jamp\\bin\\Python25\\lib\\site-packages\\trac-0.11.1-py2.5.egg\\trac\\ ... frames [{'function': '_dispatch_request', 'lines_before': [u' try:', u' ... has_admin True line u' dispatcher.dispatch(req)' lineno 422 message u"UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position ... req <Request "GET u'/admin/svn/authz'"> resp [] tb <traceback object at 0x077EF710> tb_hide None traceback 'Traceback (most recent call last):\n File ... File "c:\jamp\bin\Python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac\web\main.py", line 219, in dispatch Code fragment: out = StringIO() pprint(data, out) req.send(out.getvalue(), 'text/plain') else: output = chrome.render_template(req, template, data, content_type) # Give the session a chance to persist changes if req.session: req.session.save() req.send(output, content_type or 'text/html') Local variables:Name Value chosen_handler <trac.admin.web_ui.AdminModule object at 0x070B7670> chrome <trac.web.chrome.Chrome object at 0x070A8530> content_type None data {'auth_data': '[groups]\nnissan = amarco, dperez\nao = fmerkle\ndc = ... e AttributeError("'NoneType' object has no attribute 'has_key'",) err (<type 'exceptions.UnicodeDecodeError'>, UnicodeDecodeError('ascii', ... handler <trac.admin.web_ui.AdminModule object at 0x070B7670> req <Request "GET u'/admin/svn/authz'"> resp ('svnauthz.html', {'auth_data': '[groups]\nnissan = amarco, dperez\nao = ... self <trac.web.main.RequestDispatcher object at 0x070B7450> template 'svnauthz.html' File "c:\jamp\bin\Python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac\web\chrome.py", line 715, in render_template Code fragment: 'late_links': req.chrome['links'], 'late_scripts': req.chrome['scripts'], }) try: return stream.render(method, doctype=doctype) except: # restore what may be needed by the error template req.chrome['links'] = links req.chrome['scripts'] = scripts raise Local variables:Name Value content_type 'text/html' data {'abs_url_of': <function get_abs_url at 0x0777CE70>, 'active_panel': ... doctype ('html', '-//W3C//DTD XHTML 1.0 Strict//EN', ... filename 'svnauthz.html' fragment False links {'search': [{'href': '/trac/search', 'type': None, 'class': None, 'title': ... method 'xhtml' req <Request "GET u'/admin/svn/authz'"> scripts [{'href': '/trac/chrome/common/js/jquery.js', 'type': 'text/javascript'}, ... self <trac.web.chrome.Chrome object at 0x070A8530> stream <genshi.core.Stream object at 0x077CEAF0> template <MarkupTemplate "svnauthz.html"> File "build\bdist.win32\egg\genshi\core.py", line 179, in render Local variables:Name Value encode <function encode at 0x05CC7D30> encoding 'utf-8' generator <generator object at 0x077A23A0> kwargs {'doctype': ('html', '-//W3C//DTD XHTML 1.0 Strict//EN', ... method 'xhtml' out None self <genshi.core.Stream object at 0x077CEAF0> File "build\bdist.win32\egg\genshi\output.py", line 60, in encode Local variables:Name Value _encode <function <lambda> at 0x0777C670> encoding 'utf-8' errors 'xmlcharrefreplace' iterator <generator object at 0x077A23A0> method 'xhtml' out None File "build\bdist.win32\egg\genshi\output.py", line 311, in __call__ Local variables:Name Value attr u'name' attrib Attrs([(u'rows', u'20'), (u'style', u'width:63%'), (u'name', u'current')]) boolean_attrs frozenset(['compact', 'defer', 'checked', 'nohref', 'selected', 'ismap', ... buf ['<', u'textarea', ' ', u'rows', '="', <Markup u'20'>, '"', ' ', u'style', ... data (u'textarea', Attrs([(u'rows', u'20'), (u'style', u'width:63%'), (u'name', ... drop_xml_decl True empty_elems frozenset(['img', 'area', 'basefont', 'frame', 'isindex', 'meta', 'param', ... filter_ <genshi.output.DocTypeInserter object at 0x077CE0D0> have_decl False have_doctype True in_cdata False kind 'START' name 'html' pos ('svnauthz.html', 15, 6) pubid '-//W3C//DTD XHTML 1.0 Strict//EN' self <genshi.output.XHTMLSerializer object at 0x077CEA50> stream <generator object at 0x077A2A80> sysid 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd' tag u'textarea' value u'current' File "build\bdist.win32\egg\genshi\output.py", line 753, in __call__ Local variables:Name Value data (u'textarea', Attrs([(u'rows', u'20'), (u'style', u'width:63%'), (u'name', ... doctype_inserted True kind 'START' pos ('svnauthz.html', 15, 6) self <genshi.output.DocTypeInserter object at 0x077CE0D0> stream <generator object at 0x077A2670> File "build\bdist.win32\egg\genshi\output.py", line 592, in __call__ Local variables:Name Value _gen_prefix <method-wrapper 'next' of generator object at 0x077A2080> _make_ns_attr <function _make_ns_attr at 0x0777CB70> _push_ns <function _push_ns at 0x0777CC70> _push_ns_attr <built-in method append of list object at 0x077EA170> attr QName(u'name') attrname u'name' attrns None attrs Attrs([(QName(u'rows'), u'20'), (QName(u'style'), u'width:63%'), ... data (QName(u'http://www.w3.org/1999/xhtml}textarea'), Attrs([(QName(u'rows'), ... k u'http://www.w3.org/XML/1998/namespace' kind 'START' namespaces {u'http://www.w3.org/1999/xhtml': ['', '', '', ''], ... new_attrs [(u'rows', u'20'), (u'style', u'width:63%'), (u'name', u'current')] ns_attrs [] pos ('svnauthz.html', 15, 6) prefix '' prefixes {'': ['http://www.w3.org/1999/xhtml', u'http://www.w3.org/1999/xhtml'], ... self <genshi.output.NamespaceFlattener object at 0x077CEDB0> stream <generator object at 0x077A2990> tag QName(u'http://www.w3.org/1999/xhtml}textarea') tagname u'textarea' tagns u'http://www.w3.org/1999/xhtml' uri u'http://www.w3.org/1999/xhtml' uris ['http://www.w3.org/1999/xhtml', u'http://www.w3.org/1999/xhtml'] v 'xml' value u'current' File "build\bdist.win32\egg\genshi\output.py", line 710, in __call__ Local variables:Name Value attrs Attrs([(QName(u'rows'), u'20'), (QName(u'style'), u'width:63%'), ... collapse_lines <built-in method sub of _sre.SRE_Pattern object at 0x05CCB650> ctxt None data QName(u'http://www.w3.org/1999/xhtml}textarea') kind 'END' mjoin <built-in method join of genshi._speedups.Markup object at 0x077C9470> noescape False noescape_elems frozenset([]) pop_text <built-in method pop of list object at 0x078210A8> pos ('svnauthz.html', 15, 71) preserve 1 preserve_elems frozenset([QName(u'pre'), QName(u'http://www.w3.org/1999/xhtml}textarea'), ... push_text <built-in method append of list object at 0x078210A8> self <genshi.output.WhitespaceFilter object at 0x077CE4F0> space QName(u'http://www.w3.org/XML/1998/namespace}space') stream <generator object at 0x077A23C8> tag QName(u'http://www.w3.org/1999/xhtml}textarea') text u'\n ' textbuf [] trim_trailing_space <built-in method sub of _sre.SRE_Pattern object at 0x05CCA200> File "c:\jamp\bin\Python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac\web\main.py", line 423, in _dispatch_request dispatcher.dispatch(req) File "c:\jamp\bin\Python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac\web\main.py", line 219, in dispatch data, content_type) File "c:\jamp\bin\Python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac\web\chrome.py", line 715, in render_template return stream.render(method, doctype=doctype) File "build\bdist.win32\egg\genshi\core.py", line 179, in renderFile "build\bdist.win32\egg\genshi\output.py", line 60, in encodeFile "build\bdist.win32\egg\genshi\output.py", line 311, in __call__File "build\bdist.win32\egg\genshi\output.py", line 753, in __call__File "build\bdist.win32\egg\genshi\output.py", line 592, in __call__File "build\bdist.win32\egg\genshi\output.py", line 710, in __call__
Attachments (0)
Change History (1)
comment:1 Changed 11 years ago by
Component: | SELECT A HACK → TracSvnAuthzPlugin |
---|---|
Description: | modified (diff) |
Resolution: | → cantfix |
Status: | new → closed |
Trac Release: | → 0.11 |
The plugin is not maintained in trac-hacks.org. Please report in http://svn.geophysik.uni-muenchen.de/trac/tracmods/wiki.