Open
Bug 685192
Opened 13 years ago
Updated 2 years ago
in RFC2231/5987 encoding, a missing charset field should be treated as error
Categories
(Core :: Networking, defect, P5)
Core
Networking
Tracking
()
NEW
mozilla10
People
(Reporter: julian.reschke, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: dev-doc-needed, Whiteboard: [necko-would-take])
Attachments
(1 file, 1 obsolete file)
1.86 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
See
http://greenbytes.de/tech/tc2231/#attwithfn2231noc
which tests
Content-Disposition: attachment; filename*=''foo-%c3%a4-%e2%82%ac.html
Here, the charset field is missing; apparently FF falls back to UTF-8. Opera falls back to something else. IE9, Chrome, and Konqueror ignore the parameter.
I think it would be good to align with IE, Chrome, and Konqueror.
Comment 1•13 years ago
|
||
once bug 589292 lands, this should be a matter of fixing NS_GetFilenameFromDisposition() to not pass the channel's fallback charset, nor pass true for aTryLocaleCharset, and perhaps removing the call to IsUTF8() from nsMIMEHeaderParamImpl::GetParameter(). To do the latter we'd need to make sure we don't break mail header parsing.
Depends on: 589292
Reporter | ||
Comment 2•13 years ago
|
||
This might be one of the cases where we need to distinguish MIME and HTTP.
Reporter | ||
Updated•13 years ago
|
Assignee: nobody → julian.reschke
Reporter | ||
Comment 3•13 years ago
|
||
(In reply to Jason Duell (:jduell) from comment #1)
> once bug 589292 lands, this should be a matter of fixing
> NS_GetFilenameFromDisposition() to not pass the channel's fallback charset,
> nor pass true for aTryLocaleCharset, and perhaps removing the call to
> IsUTF8() from nsMIMEHeaderParamImpl::GetParameter(). To do the latter we'd
> need to make sure we don't break mail header parsing.
Maybe. We can also change the 2231/5987 parsing code to just skip values where the charset is missing; that should be less intrusive.
On the other hand, it would be cool if we heuristics like aTryLocaleCharset -- maybe we can do that as part of a separate bug? I also have no idea how this will affect mail as opposed to http...
Reporter | ||
Comment 4•13 years ago
|
||
Applies on top of patch for bug 692574
Attachment #566315 -
Flags: review?(bzbarsky)
Comment 5•13 years ago
|
||
Comment on attachment 566315 [details] [diff] [review]
Proposed patch, incl test case
r=me
Attachment #566315 -
Flags: review?(bzbarsky) → review+
Reporter | ||
Comment 6•13 years ago
|
||
Updated to that it applies on top of bug 692574
Attachment #566581 -
Flags: review?(bzbarsky)
Comment 7•13 years ago
|
||
Comment on attachment 566581 [details] [diff] [review]
Proposed patch, incl test case
r=me
Attachment #566581 -
Flags: review?(bzbarsky) → review+
Reporter | ||
Updated•13 years ago
|
Target Milestone: --- → mozilla10
Reporter | ||
Updated•13 years ago
|
Keywords: checkin-needed
Updated•13 years ago
|
Attachment #566315 -
Attachment is obsolete: true
Comment 8•13 years ago
|
||
Missing patch author added locally, now in my queue with a few other bits that are being sent to try first and then onto inbound :-)
https://tbpl.mozilla.org/?tree=Try&rev=488d4a5f274a
Status: NEW → ASSIGNED
Keywords: checkin-needed
Comment 9•13 years ago
|
||
Flags: in-testsuite+
Comment 10•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Keywords: dev-doc-needed
Reporter | ||
Comment 11•13 years ago
|
||
Reopened because the change was backed out for now due to bug 704989.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•9 years ago
|
Whiteboard: [necko-would-take]
Comment 12•7 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
Comment 13•2 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: julian.reschke → nobody
Updated•2 years ago
|
Severity: minor → S4
Updated•2 years ago
|
Status: REOPENED → NEW
You need to log in
before you can comment on or make changes to this bug.
Description
•