Opened 10 years ago

Closed 9 years ago

#9960 closed defect (duplicate)

UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in position 20: invalid start byte

Reported by: alegz@… Owned by: Herbert Valerio Riedel
Priority: normal Component: GitPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


How to Reproduce

While doing a GET operation on /changeset, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'new': u'79cf28fad96b103e92d1412281a965f6ef3a6ecb',
 'new_path': u'/DreamMealDeal_git/application/controllers/default.class.php',
 'old': u'79cf28fad96b103e92d1412281a965f6ef3a6ecb',
 'old_path': u'/DreamMealDeal_git/application/controllers/default.class.php'}

User agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0

System Information

Trac 0.12.3
Babel 0.9.6
Genshi 0.6
Mercurial 2.1
psycopg2 2.4.4
Pygments 1.5
Python 2.7.2 (default, Jan 31 2012, 13:19:49)
[GCC 4.6.2 20120120 (prerelease)]
setuptools 0.6
jQuery 1.4.4

Enabled Plugins


Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/trac/web/", line 522, in _dispatch_request
  File "/usr/lib/python2.7/site-packages/trac/web/", line 243, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.7/site-packages/trac/versioncontrol/web_ui/", line 352, in process_request
    self._render_html(req, repos, chgset, restricted, xhr, data)
  File "/usr/lib/python2.7/site-packages/trac/versioncontrol/web_ui/", line 581, in _render_html
    for old_node, new_node, kind, change in get_changes():
  File "/usr/lib/python2.7/site-packages/trac/versioncontrol/web_ui/", line 395, in get_changes
    for npath, kind, change, opath, orev in chgset.get_changes():
  File "/usr/lib/python2.7/site-packages/tracext/git/", line 655, in get_changes
    self.repos.git.diff_tree(parent, self.rev, find_renames=True):
  File "/usr/lib/python2.7/site-packages/tracext/git/", line 862, in diff_tree
    yield __chg_tuple()
  File "/usr/lib/python2.7/site-packages/tracext/git/", line 854, in __chg_tuple
    chg[5] = self._fs_to_unicode(chg[5])
  File "/usr/lib/python2.7/site-packages/tracext/git/", line 237, in <lambda>
    self._fs_to_unicode = lambda s: s.decode(git_fs_encoding)
  File "/usr/lib/python2.7/encodings/", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in position 20: invalid start byte

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by Ryan J Ollos

Component: SELECT A HACKGitPlugin
Owner: changed from anonymous to Herbert Valerio Riedel

comment:2 Changed 9 years ago by Jun Omae

Resolution: duplicate
Status: newclosed

A duplicate of #8087.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Herbert Valerio Riedel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.