Opened 18 years ago
Closed 18 years ago
#6372 closed defect (duplicate)
Error when add an attachment to a ticket or wiki
| Reported by: | anonymous | Owned by: | Jonas Borgström | 
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | web frontend/mod_python | Version: | |
| Severity: | normal | Keywords: | needinfo | 
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Error when add an attachment to a ticket or wiki
Traceback (most recent call last):
  File "e:\Python24\Lib\site-packages\trac\web\main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "e:\Python24\Lib\site-packages\trac\web\main.py", line 170, in dispatch
    if not req.path_info or req.path_info == '/':
  File "e:\Python24\Lib\site-packages\trac\web\api.py", line 219, in <lambda>
    path_info = property(fget=lambda self: self.environ.get('PATH_INFO', '').decode('utf-8'),
  File "E:\Python24\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa8 in position 27: unexpected code byte
error picture look "e1"
Attachments (0)
Change History (5)
comment:1 by , 18 years ago
| Keywords: | needinfo added | 
|---|
comment:2 by , 18 years ago
| Resolution: | → duplicate | 
|---|---|
| Status: | new → closed | 
Duplicate of #3663 - which has a fix, but no one ever bothered to confirm…
Please try it and follow-up there, so we could maybe make some progress on this issue.
follow-up: 5 comment:3 by , 18 years ago
| Resolution: | duplicate | 
|---|---|
| Status: | closed → reopened | 
Not the same,
That is in Browse Source,(#3663)
I say that is add attachments in "Attache File" to a ticket or wiki.
comment:4 by , 18 years ago
why don't me add attachment on here?
this is the error information: 
Invalid Attachment
Attachment WikiStart: svn?????¡§????¡€¡ì.doc does not exist.
TracGuide — The Trac User and Administration Guide
comment:5 by , 18 years ago
| Component: | general → mod_python frontend | 
|---|---|
| Resolution: | → duplicate | 
| Status: | reopened → closed | 
Replying to anonymous:
Not the same,
That is in Browse Source,(#3663)
I say that is add attachments in "Attache File" to a ticket or wiki.
Trust me, it's the same thing, no matter what the module is (attachment or browser), the problem is at a lower level, directly when decoding the PATH_INFO given by mod_python on Windows. We assume it's utf-8 encoded, and apparently it's not (always?), and someone had better luck when changing that to 'mbcs'.
We eventually need to reproduce that ourselves and find out how we can decide between 'utf-8', 'mbcs' or anything else in a robust way. And that's ticket #3663.



  
Which version of Trac are you using ?