Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#8340 closed defect (duplicate)

UnicodeDecodeError: 'utf8' codec can't decode bytes in position 28-30: invalid data

Reported by: eusaman@… Owned by: Herbert Valerio Riedel
Priority: normal Component: GitPlugin
Severity: normal Keywords: unicode
Cc: Trac Release: 0.12

Description

How to Reproduce

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

(please provide additional details here)

Request parameters:

{}

User agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fi; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

System Information

Trac 0.12.1
Agilo 0.9.2
Babel 0.9.5
Genshi 0.6
GIT 1.5.6.5
mod_python 3.3.1
psycopg2 2.0.7
Pygments 1.1.1
Python 2.5.2 (r252:60911, Jan 24 2010, 18:02:01)
[GCC 4.3.2]
pytz 2008c
setuptools 0.6c8
Subversion 1.6.12 (r955767)
jQuery 1.4.2

Enabled Plugins

agilo 0.9.2
TracGit 0.12.0.5dev

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 511, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 202, in dispatch
    chosen_handler)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 344, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "build/bdist.linux-x86_64/egg/trac/versioncontrol/api.py", line 332, in pre_process_request
    repo.sync()
  File "build/bdist.linux-x86_64/egg/trac/versioncontrol/cache.py", line 240, in sync
    @self.env.with_transaction()
  File "build/bdist.linux-x86_64/egg/trac/db/api.py", line 77, in transaction_wrapper
    fn(ldb)
  File "build/bdist.linux-x86_64/egg/trac/versioncontrol/cache.py", line 269, in do_transaction
    for path, kind, action, bpath, brev in cset.get_changes():
  File "build/bdist.linux-x86_64/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.linux-x86_64/egg/tracext/git/PyGIT.py", line 793, in diff_tree
    yield __chg_tuple()
  File "build/bdist.linux-x86_64/egg/tracext/git/PyGIT.py", line 785, in __chg_tuple
    chg[5] = self._fs_to_unicode(chg[5])
  File "build/bdist.linux-x86_64/egg/tracext/git/PyGIT.py", line 234, in <lambda>
    self._fs_to_unicode = lambda s: s.decode(git_fs_encoding)
  File "/usr/lib/python2.5/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 28-30: invalid data

Attachments (0)

Change History (2)

comment:1 Changed 13 years ago by Steffen Hoffmann

Keywords: unicode added
Resolution: duplicate
Status: newclosed

Sorry, but apart from the implicit fact, that this problem is observed independently of the presence of AccountManagerPlugin there is no new information here over #8087.

comment:2 Changed 13 years ago by eusaman@…

yes, I seem to have forgotten to close the ticket myself. Error first occurred during repository resync which caused everything to fail, but setting

git_fs_encoding = latin1

in trac.ini fixed it.

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.