Modify

Opened 4 years ago

Last modified 4 years ago

#8087 new defect

UnicodeDecodeError: 'utf8' codec can't decode bytes in position 5-7: invalid data

Reported by: admin Owned by: hvr
Priority: normal Component: GitPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

How to Reproduce

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

Ive installed Trac 0.12 and the AccMgrPlugin, after that I installed the gitPlugin
changed the trac.ini and restard the server.

Request parameters:

{}

User agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12

System Information

Trac 0.12.1
Genshi 0.6
GIT 1.7.3.1
pysqlite 2.6.0
Python 2.6.5 (r265:79063, Apr 15 2010, 12:37:17)
[GCC 3.4.6]
setuptools 0.6c11
SQLite 3.6.23.1
Subversion 1.6.13 (r1002816)
jQuery 1.4.2

Enabled Plugins

TracAccountManager 0.3dev-r9404
TracGit 0.12.0.5dev

Python Traceback

Traceback (most recent call last):
  File "build/bdist.freebsd-7.3-STABLE-i386/egg/trac/web/main.py", line 511, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.freebsd-7.3-STABLE-i386/egg/trac/web/main.py", line 202, in dispatch
    chosen_handler)
  File "build/bdist.freebsd-7.3-STABLE-i386/egg/trac/web/main.py", line 344, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "build/bdist.freebsd-7.3-STABLE-i386/egg/trac/versioncontrol/api.py", line 332, in pre_process_request
    repo.sync()
  File "build/bdist.freebsd-7.3-STABLE-i386/egg/trac/versioncontrol/cache.py", line 240, in sync
    @self.env.with_transaction()
  File "build/bdist.freebsd-7.3-STABLE-i386/egg/trac/db/api.py", line 77, in transaction_wrapper
    fn(ldb)
  File "build/bdist.freebsd-7.3-STABLE-i386/egg/trac/versioncontrol/cache.py", line 269, in do_transaction
    for path, kind, action, bpath, brev in cset.get_changes():
  File "build/bdist.solaris-2.9-sun4u/egg/tracext/git/git_fs.py", line 655, in get_changes
    self.repos.git.diff_tree(parent, self.rev, find_renames=True):
  File "build/bdist.solaris-2.9-sun4u/egg/tracext/git/PyGIT.py", line 802, in diff_tree
    yield __chg_tuple()
  File "build/bdist.solaris-2.9-sun4u/egg/tracext/git/PyGIT.py", line 785, in __chg_tuple
    chg[5] = self._fs_to_unicode(chg[5])
  File "build/bdist.solaris-2.9-sun4u/egg/tracext/git/PyGIT.py", line 234, in <lambda>
    self._fs_to_unicode = lambda s: s.decode(git_fs_encoding)
  File "/usr/local/lib/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 5-7: invalid data

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by anonymous

  • Component changed from SELECT A HACK to GitPlugin
  • Owner set to hvr
  • Trac Release changed from 0.11 to 0.12

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.