Non-ASCII Attachment Name Not Properly Prepared in HTTP Header Content-Disposition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web Client |
Fix Released
|
Undecided
|
OpenERP Publisher's Warranty Team |
Bug Description
The current web client dose not encode the non-ASCII filename correctly in in HTTP Header Content-
HTTP/1.1 200 OK
Date: Thu, 17 Nov 2011 13:17:05 GMT
Content-Length: 2671
Content-Type: application/
Content-
=?utf-
Server: CherryPy/3.1.2
Set-Cookie: session_
and the browsers ( Firefox and Chrome ) will not recognize the correct filename, instead, they will let you use "get" to save it.
We'd tested to add such an attachment in the 6.1 beta, the new web client handles the filename correctly and will prompt the user to save it with the right name ( sorry I don't have the dump of the HTTP traffic of this case now, but it has a form of "Content-
Related branches
- Olivier Laurent (Open ERP) (community): Needs Fixing
- Vaibhav Darji (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedaddons/openerp/controllers/attachment.py (+1/-1)
Changed in openobject-client-web: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-client-web: | |
status: | New → Fix Committed |
Changed in openobject-client-web: | |
status: | Fix Committed → Fix Released |
Well I think this is caused python unicode string is not properly encoded, here is the patch to fix it.