Modify

Opened 4 years ago

Last modified 4 years ago

#7436 new defect

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

Reported by: jerryli Owned by: pacopablo
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 (1)

comment:1 Changed 4 years ago by hasienda

  • Component changed from SELECT A HACK to SiteUploadPlugin
  • Keywords unicode 0.12 added
  • Owner changed from anonymous to pacopablo
  • Summary changed from UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128) to UnicodeDecodeError: 'ascii' codec can't decode ...
  • Trac Release changed from 0.11 to 0.12

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

Add Comment

Modify Ticket

Action
as new The owner will remain pacopablo.
Author


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

 
Note: See TracTickets for help on using tickets.