Edgewall Software

Ticket #6372 (closed defect: duplicate)

Opened 14 months ago

Last modified 14 months ago

Error when add an attachment to a ticket or wiki

Reported by: anonymous Owned by: jonas
Priority: normal Milestone:
Component: web frontend/mod_python Version:
Severity: normal Keywords: needinfo
Cc:

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

Change History

  Changed 14 months ago by eblot

  • keywords needinfo added

Which version of Trac are you using ?

  Changed 14 months ago by cboos

  • status changed from new to closed
  • resolution set to duplicate

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   Changed 14 months ago by anonymous

  • status changed from closed to reopened
  • resolution duplicate deleted

Not the same,
That is in Browse Source,(#3663)
I say that is add attachments in "Attache File" to a ticket or wiki.

  Changed 14 months ago by anonymous

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   Changed 14 months ago by cboos

  • status changed from reopened to closed
  • resolution set to duplicate
  • component changed from general to mod_python frontend

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.

Add/Change #6372 (Error when add an attachment to a ticket or wiki)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.