herokuapp.com - Problems with spaces in filenames (content-disposition not quoted)
Categories
(Core :: Networking, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: hartmantam.enc, Assigned: Gijs)
References
(Blocks 1 open bug, )
Details
(Keywords: dev-doc-complete, Whiteboard: [necko-triaged])
Attachments
(1 file)
Reporter | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
![]() |
||
Comment 3•7 years ago
|
||
![]() |
||
Comment 4•7 years ago
|
||
Reporter | ||
Comment 5•7 years ago
|
||
![]() |
||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Reporter | ||
Comment 12•7 years ago
|
||
![]() |
||
Comment 13•7 years ago
|
||
Reporter | ||
Comment 14•7 years ago
|
||
![]() |
||
Comment 15•7 years ago
|
||
Reporter | ||
Comment 16•7 years ago
|
||
Reporter | ||
Comment 17•7 years ago
|
||
![]() |
||
Comment 18•7 years ago
|
||
Updated•7 years ago
|
Assignee | ||
Comment 21•6 years ago
|
||
This is networking code, not frontend code, so moving and needinfo'ing so this gets triaged despite being 2 years old.
Comment 22•6 years ago
|
||
(In reply to :Gijs (he/him) from comment #21)
This is networking code, not frontend code, so moving and needinfo'ing so this gets triaged despite being 2 years old.
Set this for P2.
Comment 25•6 years ago
|
||
https://bugs.chromium.org/p/chromium/issues/detail?id=1006345 has some discussion with Googlers on perhaps agreeing on a processing model. Nothing concrete thus far though.
Updated•5 years ago
|
Assignee | ||
Comment 28•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 29•5 years ago
|
||
So... I really don't know how to spec this. But as far as I can tell, this passes the mime header unit test so fallout should be OK, right? 😅
Less briefly, re comment #18, I looked at https://source.chromium.org/chromium/chromium/src/+/master:net/http/http_util.cc;l=1051;drc=aed22775d3d02301b9046b23a55dd84fef2b0caa and the associated code. As far as I can tell, chromium implements the header parsing by first stripping the inline/attachment value (which is the same thing we do) and then tokenizing on ;
in a way that ignores the ones that are in quotes (and ignores escaped quotes when looking at quotes). It then splits the resulting tokens by =
and then unquotes as necessary.
As a result, I think as long as we still split unquoted tokens by ;
, this should be a more-compatible change.
I don't think I have the expertise or the cycles to develop this into a more-in-tune-with-reality version of the venerable RFCs here. But this continues to be one of the most-reported bugs in Firefox's file handling code, and because I believe the code post-patch is more cross-browser-compatible than pre-patch, and because chromium have already indicated they are unlikely to change behaviour to move closer to the original RFC, I figured it was worth putting up as-is.
Comment 30•5 years ago
|
||
I filed https://github.com/httpwg/http-extensions/issues/1252 for the specification side of things. (It might have to move to Fetch or HTML if they are not willing.)
Updated•5 years ago
|
Assignee | ||
Comment 31•5 years ago
|
||
Comment 32•5 years ago
|
||
Updated•5 years ago
|
Comment 33•5 years ago
|
||
bugherder |
Comment 34•5 years ago
|
||
Description
•