Modify ↓
#2688 closed defect (wontfix)
Trac detected an internal error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)
Reported by: | anonymous | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | IniAdminPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description (last modified by )
Oops…
Trac detected an internal error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: 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 POST operation on `/admin/tracini/logging`, Trac issued an internal error. ''(please provide additional details here)'' Request parameters: {{{ {'panel_id': u'logging', 'log_level': u'ERRORp', 'cat_id': u'tracini', '__FORM_TOKEN': u'499e786d8f8c124a2d9b2cf1', 'path_info': None, 'log_format': u'', 'log_file': u'trac.log', 'log_type': u'none'} }}} ==== System Information ==== || '''Trac''' || `0.11b1` || || '''Python''' || `2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]` || || '''setuptools''' || `0.6c8` || || '''SQLite''' || `3.5.2` || || '''pysqlite''' || `2.4.1` || || '''Genshi''' || `0.4.4` || || '''Pygments''' || `0.9` || ==== Python Traceback ==== {{{ Traceback (most recent call last): File "C:\PROGRA~1\Python23\Lib\site-packages\trac\web\main.py", line 398, in _dispatch_request dispatcher.dispatch(req) File "C:\PROGRA~1\Python23\Lib\site-packages\trac\web\main.py", line 195, in dispatch resp = chosen_handler.process_request(req) File "C:\PROGRA~1\Python23\Lib\site-packages\trac\admin\web_ui.py", line 108, in process_request path_info) File "build\bdist.win32\egg\iniadmin\iniadmin.py", line 40, in render_admin_panel File "C:\PROGRA~1\Python23\Lib\site-packages\trac\config.py", line 184, in save if current is not False and current != default: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: 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:\PROGRA~1\Python23\Lib\site-packages\trac\web\main.py", line 398, 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 [' except RequestDone:', ' pass', ' resp = ... before [' try:', ' if not env and env_error:', ' raise ... dispatcher <trac.web.main.RequestDispatcher object at 0x00F326F0> e <exceptions.UnicodeDecodeError instance at 0x019B7738> env <trac.env.Environment object at 0x00BD6110> env_error None exc_info (<class exceptions.UnicodeDecodeError at 0x00694F60>, ... filename 'C:\\PROGRA~1\\Python23\\Lib\\site-packages\\trac\\web\\main.py' frames [{'function': '_dispatch_request', 'lines_before': [' try:', ' ... has_admin True line ' dispatcher.dispatch(req)' lineno 397 message u"UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ... req <Request "POST u'/admin/tracini/logging'"> resp [] tb <traceback object at 0x019B7C38> tb_hide None traceback 'Traceback (most recent call last):\n File ... File "C:\PROGRA~1\Python23\Lib\site-packages\trac\web\main.py", line 195, in dispatch Code fragment: req.args.get('__FORM_TOKEN') != req.form_token: raise HTTPBadRequest('Missing or invalid form token. ' 'Do you have cookies enabled?') # Process the request and render the template resp = chosen_handler.process_request(req) if resp: if len(resp) == 2: # Clearsilver chrome.populate_hdf(req) template, content_type = \ self._post_process_request(req, *resp) Local variables: Name Value chosen_handler <trac.admin.web_ui.AdminModule object at 0x00F32A70> chrome <trac.web.chrome.Chrome object at 0x00D79B90> ctype 'application/x-www-form-urlencoded' err (<class exceptions.UnicodeDecodeError at 0x00694F60>, ... handler <trac.admin.web_ui.AdminModule object at 0x00F32A70> options {} req <Request "POST u'/admin/tracini/logging'"> self <trac.web.main.RequestDispatcher object at 0x00F326F0> File "C:\PROGRA~1\Python23\Lib\site-packages\trac\admin\web_ui.py", line 108, in process_request Code fragment: if not provider: raise HTTPNotFound(_('Unknown administration panel')) if hasattr(provider, 'render_admin_panel'): template, data = provider.render_admin_panel(req, cat_id, panel_id, path_info) else: # support for legacy WebAdmin panels data = {} cstmpl, ct = provider.process_admin_request(req, cat_id, panel_id, path_info) Local variables: Name Value _panel_order <function _panel_order at 0x01C6E2B0> cat_id u'tracini' panel_id u'logging' panels [('general', 'General', 'basics', 'Basic Settings'), ('general', ... path_info None provider <iniadmin.iniadmin.IniAdminPlugin object at 0x00F740D0> providers {('tracini', 'inherit'): <iniadmin.iniadmin.IniAdminPlugin object at ... req <Request "POST u'/admin/tracini/logging'"> self <trac.admin.web_ui.AdminModule object at 0x00F32A70> File "build\bdist.win32\egg\iniadmin\iniadmin.py", line 40, in render_admin_panel Local variables: Name Value _ 'log_type' cat u'tracini' modified True option 'log_type' options ['log_level', 'log_file', 'log_format', 'log_type'] page u'logging' path_info None req <Request "POST u'/admin/tracini/logging'"> s 'logging' section 'logging' self <iniadmin.iniadmin.IniAdminPlugin object at 0x00F740D0> value u'none' File "C:\PROGRA~1\Python23\Lib\site-packages\trac\config.py", line 184, in save Code fragment: default = None if self.parent: default = self.parent.get(section, option) current = self.parser.has_option(section, option) and \ self.parser.get(section, option) if current is not False and current != default: options.append((option, current)) if options: sections.append((section, sorted(options))) fileobj = open(self.filename, 'w') Local variables: Name Value current 'gel\xc3\xb6st' default u'fixed' option 'default_resolution' options [('default_version', 'public'), ('default_component', 'Workflow-Server ... section 'ticket' sections [('account-manager', [('authentication_url', 'https://www.aidaorga.de'), ... self <Configuration 'c:\\trac_aida\\conf\\trac.ini'> File "C:\PROGRA~1\Python23\Lib\site-packages\trac\web\main.py", line 398, in _dispatch_request dispatcher.dispatch(req) File "C:\PROGRA~1\Python23\Lib\site-packages\trac\web\main.py", line 195, in dispatch resp = chosen_handler.process_request(req) File "C:\PROGRA~1\Python23\Lib\site-packages\trac\admin\web_ui.py", line 108, in process_request path_info) File "build\bdist.win32\egg\iniadmin\iniadmin.py", line 40, in render_admin_panelFile "C:\PROGRA~1\Python23\Lib\site-packages\trac\config.py", line 184, in save if current is not False and current != default: System Information: User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727) Trac: 0.11b1 Python: 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] setuptools: 0.6c8 SQLite: 3.5.2 pysqlite: 2.4.1 Genshi: 0.4.4 Pygments: 0.9 jQuery: 1.2.1 TracGuide — The Trac User and Administration Guide
Attachments (0)
Change History (2)
comment:1 Changed 14 years ago by
Cc: | anonymous added; atrav99@… removed |
---|---|
Description: | modified (diff) |
Owner: | changed from Alec Thomas to Ryan J Ollos |
comment:2 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Trac 0.10 version is no longer supported, but I'll apply patches if they are provided.