Edgewall Software
Modify

Opened 17 years ago

Closed 17 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 Emmanuel Blot, 17 years ago

Keywords: needinfo added

Which version of Trac are you using ?

comment:2 by Christian Boos, 17 years ago

Resolution: duplicate
Status: newclosed

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.

comment:3 by anonymous, 17 years ago

Resolution: duplicate
Status: closedreopened

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 anonymous, 17 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


in reply to:  3 comment:5 by Christian Boos, 17 years ago

Component: generalmod_python frontend
Resolution: duplicate
Status: reopenedclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.