Modify

Opened 14 years ago

Last modified 5 years ago

#7436 new defect

UnicodeDecodeError: 'ascii' codec can't decode ...

Reported by: jerryli Owned by:
Priority: normal Component: SiteUploadPlugin
Severity: normal Keywords: unicode 0.12
Cc: Trac Release: 0.12

Description

How to Reproduce

While doing a GET operation on /admin/siteupload/files, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'cat_id': u'siteupload', 'panel_id': u'files', 'path_info': None}

User agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

System Information

Trac 0.12
Genshi 0.6
mod_python 3.3.1
MySQL server: "5.1.48-log", client: "5.1.48", thread-safe: 1
MySQLdb 1.2.3
Python 2.6.5 (r265:79063, Jul 14 2010, 17:39:10)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-10)]
RPC 1.1.0
setuptools 0.6c11
Subversion 1.6.12 (r955767)
jQuery 1.4.2

Enabled Plugins

AdvancedTicketWorkflowPlugin 0.10dev
HudsonTrac 0.3
IniAdmin 0.2
PageToDoc 0.2
siteupload 0.11dev
TracDocs 0.3
tracreposearch 0.2
TracXMLRPC 1.1.0

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/trac/admin/web_ui.py", line 116, in process_request
    path_info)
  File "build/bdist.linux-x86_64/egg/siteupload/admin.py", line 77, in render_admin_panel
    self._render_view(req, data)
  File "build/bdist.linux-x86_64/egg/siteupload/admin.py", line 90, in _render_view
    self.env.href.chrome('site', f), f),
  File "build/bdist.linux-x86_64/egg/trac/web/href.py", line 168, in <lambda>
    self._derived[name] = lambda *args, **kw: self(name, *args, **kw)
  File "build/bdist.linux-x86_64/egg/trac/web/href.py", line 151, in __call__
    if arg is not None])
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)

Attachments (0)

Change History (3)

comment:1 Changed 14 years ago by Steffen Hoffmann

Component: SELECT A HACKSiteUploadPlugin
Keywords: unicode 0.12 added
Owner: changed from anonymous to John Hampton
Summary: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)UnicodeDecodeError: 'ascii' codec can't decode ...
Trac Release: 0.110.12

Let's put this to the proper plugin and add proper release as mentioned in the report.

comment:2 Changed 10 years ago by Ryan J Ollos

Owner: John Hampton deleted

comment:3 Changed 5 years ago by figaro

Possibly identical issue as described in #3238, which has a patch.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.