Modify ↓
Opened 11 years ago
Closed 10 years ago
#11503 closed defect (fixed)
UnicodeDecodeError if no handler with unicode characters and trailing slash
Reported by: | Jun Omae | Owned by: | Jun Omae |
---|---|---|---|
Priority: | low | Milestone: | 1.0.3 |
Component: | general | Version: | 0.12-stable |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Fix raising |
||
API Changes: | |||
Internal Changes: |
Description
Visiting a link which is generated from [/UnicodeNaméAndTrailingSlash/]
in wiki, the following occurs.
Traceback (most recent call last): File "/home/jun66j5/src/trac/edgewall/git/trac/web/main.py", line 522, in _dispatch_request dispatcher.dispatch(req) File "/home/jun66j5/src/trac/edgewall/git/trac/web/main.py", line 217, in dispatch req.redirect(req.href + target, permanent=True) File "/home/jun66j5/src/trac/edgewall/git/trac/web/href.py", line 186, in __add__ return self.base + rhs UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128)
Attachments (0)
Change History (3)
comment:1 by , 10 years ago
Milestone: | next-minor-0.12.x → next-stable-1.0.x |
---|
comment:2 by , 10 years ago
Milestone: | next-stable-1.0.x → 1.0.3 |
---|---|
Owner: | set to |
Status: | new → assigned |
comment:3 by , 10 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Committed in [13456-13457] and merged to trunk in [13459].
Note:
See TracTickets
for help on using tickets.
Proposed changes in jomae.git@t11503.
I noticed that adding unicode string to
Href
instance generates url with raw unicode characters. I think we should convert urlencoded characters.If
[mainnav]
and[metanav]
have the following, the above issue would occur.