Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#9529 closed defect (worksforme)

UnicodeEncodeError: ('ascii', u'repo-\u200bsqliteconnector', 5, 6, 'ordinal not in range(128)')

Reported by: 2.andrey.d@… Owned by:
Priority: normal Milestone:
Component: timeline Version: 0.12
Severity: normal Keywords: UnicodeEncodeError ascii encode
Cc: needinfo Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

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

working server: ubuntu 9.10 x86_64

Request parameters:

{}

User agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

System Information

Trac 0.12
Genshi 0.6
mod_python 3.3.1
pysqlite 2.4.1
Python 2.6.4 (r264:75706, Dec 7 2009, 18:59:58)
[GCC 4.4.1]
setuptools 0.6c9
SQLite 3.6.16
Subversion 1.6.5 (r38866)
jQuery 1.4.2

Enabled Plugins

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/trac/timeline/web_ui.py", line 220, in process_request
    format='rss')
  File "build/bdist.linux-x86_64/egg/trac/web/href.py", line 168, in <lambda>
    self._derived[name] = lambda *args, **kw: self(name, *args, **kw)
  File "build/bdist.linux-x86_64/egg/trac/web/href.py", line 162, in __call__
    href += '?' + unicode_urlencode(params)
  File "build/bdist.linux-x86_64/egg/trac/util/text.py", line 118, in unicode_urlencode
    k = quote_plus(str(k))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u200b' in position 5: ordinal not in range(128)

Attachments (0)

Change History (6)

comment:1 by Remy Blank, 14 years ago

Cc: needinfo added
Milestone: 0.12.1

Anything special in recent events in the timeline? It looks like a URL parameter name has a zero-width space. Do you have named (i.e. non-default) repositories? Does one of them have non-ASCII characters?

comment:2 by 2.andrey.d@…, 14 years ago

No. non-ascii symbols in repository names; no special in timelines. Server locale set to Ukrainian (UTF-8)

in reply to:  2 comment:3 by 2.andrey.d@…, 14 years ago

Replying to 2.andrey.d@…:

No. non-ascii symbols in repository names; no special in timelines. Server locale set to Ukrainian (UTF-8)

Sorry, I had to reinstall Trac :(

Some additional details: # easy_install Trac==0.12 into: /trac (owner www-data:www:data) connection to DB via sqlite svn: /svn (owner www-data:www:data)

Repositories were added via TracRepositoryAdmin (no changes in trac.ini)

no non-ascii symbols in any names/params etc…

comment:4 by Christian Boos, 14 years ago

Component: generaltimeline

If you're familiar with Python, I suggest you install from source (TracDownload#Installingversionsfromcheckouts), then add a self.log.debug("timeline args %r", (<the list of arguments to href.timeline>) in timeline.py before line 220. If you're not, then prepare an install from source anyway and wait for the patch doing the above ;-)

comment:5 by 2.andrey.d@…, 14 years ago

[root@srv]# apt-get install Trac
[root@srv]# apt-get remote Trac
[root@srv]# easyinstall Trac=0.12

Now TracTimeline works fine with same (2) repos..
bug)

comment:6 by Christian Boos, 14 years ago

Milestone: 0.12.1
Resolution: worksforme
Status: newclosed

Good ;-)

If the problem happens again (eventually for someone else), then please provide us with the information requested in comment:4 and then reopen.

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.