Opened 5 years ago

Closed 5 years ago

#582 closed defect (wontfix)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 28: ordinal not in range(128)

Reported by: rob333 Owned by:
Priority: minor Milestone: Release_3.25
Component: fm/2 base Version: 3.23
Keywords: Cc:

Description

How to Reproduce

While doing a GET operation on /export/HEAD/tags/FM2-3_24_0/dirsize.c, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'format': 'raw', 'path': u'tags/FM2-3_24_0/dirsize.c', 'rev': u'HEAD'}

User agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101 Firefox/45.0 SeaMonkey/2.42.9esr

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/trac/web/main.py", line 554, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.7/site-packages/trac/web/main.py", line 247, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.7/site-packages/trac/versioncontrol/web_ui/browser.py", line 408, in process_request
    file_data = self._render_file(req, context, repos, node, rev)
  File "/usr/local/lib/python2.7/site-packages/trac/versioncontrol/web_ui/browser.py", line 669, in _render_file
    content = node.get_processed_content()
  File "/usr/local/lib/python2.7/site-packages/tracopt/versioncontrol/svn/svn_fs.py", line 802, in get_processed_content
    return FileContentStream(self, keyword_substitution, eol_style)
  File "/usr/local/lib/python2.7/site-packages/tracopt/versioncontrol/svn/svn_fs.py", line 1174, in __init__
    node._get_prop(core.SVN_PROP_KEYWORDS))
  File "/usr/local/lib/python2.7/site-packages/tracopt/versioncontrol/svn/svn_fs.py", line 1252, in _get_keyword_values
    for key, value in values.iteritems())
  File "/usr/local/lib/python2.7/site-packages/tracopt/versioncontrol/svn/svn_fs.py", line 1252, in <genexpr>
    for key, value in values.iteritems())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 28: ordinal not in range(128)

Change History (2)

comment:1 Changed 5 years ago by rob333

Other dirsize * files also fail with the same error. Even the download also fails.

comment:2 Changed 5 years ago by diver

Resolution: wontfix
Status: newclosed

you can't download some files via trac. As soon as some unicode values are involved. You can always download the source via svn. or http://svn.netlabs.org/repos/fm2/trunk/ works as well.

Note: See TracTickets for help on using tickets.