Edgewall Software

Changes between Initial Version and Version 9 of Ticket #3663


Ignore:
Timestamp:
Sep 17, 2006, 12:55:49 PM (18 years ago)
Author:
Christian Boos
Comment:

Ok, so according to attachment:a2.PNG, the request was for path "vendor/试试中文.txt" (url = u'vendor/\u8bd5\u8bd5\u4e2d\u6587'), but then, the PATH_INFO CGI env variable contained something that had a byte 0xa8 in position 16… I couldn't find an encoding that would actually encode the above url to this, so I'm left wondering what to do here…

Perhaps you could add a print `self.environ.get('PATH_INFO', '')` statement in trac.web.api.py before line 193, in order to see the full sequence of bytes. From that, perhaps we could guess what Apache is doing.

Also, this issue is possibly related to: http://twiki.org/cgi-bin/view/Codev.ApacheTwoBreaksNonUTF8EncodedURLsOnWindows

In any case, this is not going to block 0.10…

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3663

    • Property Keywords apache cgi win32 unicode needinfo added; chinese removed
    • Property Owner changed from Jonas Borgström to Christian Boos
    • Property Milestone 0.100.10.1
    • Property Priority highnormal
  • Ticket #3663 – Description

    initial v9  
    22
    33----
    4 
     4{{{
    55Traceback (most recent call last):
    66  File "C:\Python23\Lib\site-packages\trac\web\main.py", line 335, in dispatch_request
     
    1111    path_info = property(fget=lambda self: self.environ.get('PATH_INFO', '').decode('utf-8'),
    1212UnicodeDecodeError: 'utf8' codec can't decode byte 0xa6 in position 17: unexpected code byte
    13 
     13}}}