Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#8529 closed defect (wontfix)

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

Reported by: mareva Owned by:
Priority: normal Milestone:
Component: version control Version: devel
Severity: normal Keywords: svn unicode
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Come riprodurre

Mentre cercavo di GET operazione su /login, Trac ha provocato un errore. (prego fornire ulteriori dettagli)

Informazioni di Sistema

Trac 0.12dev-r7854
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
setuptools 0.6c8
SQLite 3.4.2
pysqlite 2.3.2
Genshi 0.6dev-r999
Babel 1.0dev-r467
Pygments 1.0
Subversion 1.4.6 (r28521)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.12dev_r7854-py2.5.egg/trac/web/main.py", line 459, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.12dev_r7854-py2.5.egg/trac/web/main.py", line 183, in dispatch
    chosen_handler)
  File "/usr/lib/python2.5/site-packages/Trac-0.12dev_r7854-py2.5.egg/trac/web/main.py", line 322, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.5/site-packages/Trac-0.12dev_r7854-py2.5.egg/trac/versioncontrol/api.py", line 86, in pre_process_request
    self.get_repository(req.authname).sync()
  File "/usr/lib/python2.5/site-packages/Trac-0.12dev_r7854-py2.5.egg/trac/versioncontrol/cache.py", line 202, in sync
    for path,kind,action,bpath,brev in cset.get_changes():
  File "/usr/lib/python2.5/site-packages/Trac-0.12dev_r7854-py2.5.egg/trac/versioncontrol/svn_fs.py", line 920, in get_changes
    if not (_is_path_within_scope(self.scope, path) and \
  File "/usr/lib/python2.5/site-packages/Trac-0.12dev_r7854-py2.5.egg/trac/versioncontrol/svn_fs.py", line 124, in _is_path_within_scope
    return (fullpath + '/').startswith(scope + '/')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128)

Attachments (0)

Change History (3)

comment:1 by paulsandor@…, 15 years ago

This error occurred while browsing recently added source files added to my SVN repository.

comment:2 by Christian Boos, 15 years ago

Component: generalversion control
Keywords: svn unicode added

Strange, both self.scope and path should be unicode objects here.

What is the scope? What is the path involved?

You could add a print, e.g.

  • trac/versioncontrol/svn_fs.py

     
    871877        revroots = {}
    872878        for path_utf8, change in editor.changes.items():
    873879            path = _from_svn(path_utf8)
     880            print repr((path_utf8, path, self.scope))
    874881
    875882            # Filtering on `path`
    876883            if not (_is_path_within_scope(self.scope, path) and

comment:3 by Christian Boos, 15 years ago

Resolution: wontfix
Status: newclosed

No feedback, closing.

r7854 is also a bit old now, try updating first.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.