Modify ↓
Opened 17 years ago
Closed 3 years ago
#2610 closed defect (wontfix)
problems with unicode chars
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | CacheSystemPlugin |
Severity: | major | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
Using unicode chars, the feature does reply with an overall error (see below). In an existing page this is a show-stopper, because the error does not point to the page or char which is malicious. How can I find out which one is the bad unicode character to remove it eventually? Or could unicode support be added to the feature?
Trac[__init__] ERROR: Keys must be str()'s, notunicode. Convert your unicode strings using mystring.encode(charset)! Traceback (most recent call last): File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/var/lib/python-support/python2.4/trac/web/main.py", line 191, in dispatch chosen_handler = self._pre_process_request(req, chosen_handler) File "/var/lib/python-support/python2.4/trac/web/main.py", line 263, in _pre_process_request chosen_handler = f.pre_process_request(req, chosen_handler) File "build/bdist.linux-i686/egg/cachesystem/filter.py", line 40, in pre_process_request File "/usr/lib/python2.4/site-packages/python_memcached-1.40-py2.4.egg/memcache.py", line 619, in get check_key(key) File "/usr/lib/python2.4/site-packages/python_memcached-1.40-py2.4.egg/memcache.py", line 878, i n check_key raise Client.MemcachedStringEncodingError, ("Keys must be str()'s, not" MemcachedStringEncodingError: Keys must be str()'s, notunicode. Convert your unicode strings using mystring.encode(charset)!
Attachments (0)
Change History (4)
comment:1 Changed 17 years ago by
Component: | TracHacks → CacheSystemPlugin |
---|---|
Owner: | changed from Alec Thomas to Noah Kantrowitz |
comment:2 Changed 12 years ago by
comment:3 Changed 10 years ago by
Owner: | Noah Kantrowitz deleted |
---|
Note: See
TracTickets for help on using
tickets.
I had the same issue. Fixed it in a non-elegant way, but this ticket has 5 years open so that'll have to do.
filter.py
req.path_info)req.path_info), req.hdf.getObj('wiki').writeString(), self.timeout)