Closed
Bug 116210
Opened 23 years ago
Closed 23 years ago
File upload stalls when file name is invalid
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
VERIFIED
FIXED
mozilla0.9.8
People
(Reporter: neil, Assigned: hwaara)
References
Details
(Keywords: regression, relnote)
Attachments
(1 file)
688 bytes,
patch
|
bzbarsky
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
Using Build ID: 2001121803 I was trying to submit a patch to Bugzilla but mistyped the filename. Previous versions of mozilla submitted the form and Bugzilla traps the error. However today the trobber just spins sending data to bugzilla.mozilla.org...
Comment 2•23 years ago
|
||
Worse, this includes *empty* filenames, which causes some serious breakage in a case like <FORM METHOD="post" ACTION="test.cgi" ENCTYPE="multipart/form-data"> Upload a file: <INPUT TYPE="file" NAME="file"><BR> Or type some content: <INPUT TYPE="text" NAME="text"><BR> <INPUT TYPE="submit"> </FORM> this causes Zope site to break, for example, and probably many other things.
Comment 3•23 years ago
|
||
Let me try that again. :) Also, read "Zope *sites*", not just "site". <FORM METHOD=post ACTION=test.cgi ENCTYPE="multipart/form-data"> Upload a file: <INPUT TYPE="file" NAME="file"><BR> Or type some content: <INPUT TYPE="text" NAME="text"><BR> <INPUT TYPE="submit"> </FORM>
Comment 4•23 years ago
|
||
Oh, and also, not just Win95. I see the same behavior on Linux and Win98.
Comment 5•23 years ago
|
||
Minimal test example: http://jadzia.bu.edu/~mattdm/test/mozform/test.html Leave the "upload a file" box empty, or put in an invalid filename, and mozilla just spins -- even if you have typed into the "or type some content" text input. test.cgi is #!/usr/bin/perl use CGI qw/:standard/; print header, "Ok." by the way. (But it doesn't really matter, since the request is never sent.)
Comment 6•23 years ago
|
||
ccing hwaara and brendan. hwaara, did you change the logic in your leak fix (like adding a break on read failure or something like that)?
Assignee | ||
Comment 7•23 years ago
|
||
Does this patch fix things? I'm not in a position to be able to try this patch right now.
Comment 8•23 years ago
|
||
Yes, that patch does indeed fix the problem. It also means that incorrect filenames are silently ignored, but that's a less-severe problem in my estimation. Related -- bug #82634 (file upload doesn't check user-entered filename [form sub])
Assignee | ||
Comment 9•23 years ago
|
||
Can I get r/sr on the patch?
Assignee: alexsavulov → hwaara
Keywords: regression
Assignee | ||
Updated•23 years ago
|
OS: Windows 95 → All
Target Milestone: --- → mozilla0.9.8
Comment 10•23 years ago
|
||
Comment on attachment 62547 [details] [diff] [review] Patch So is ignoring read errors really the right thing? Or should the code avoid hanging, but report the failure? /be
Comment 11•23 years ago
|
||
It certainly shouldn't report anything if the file input box just happens to be blank!
Comment 12•23 years ago
|
||
The whole function needs cleanup and rewwriting. See bug 115815.... if we want to unregress this in the meantime, that's fine, but the whole thing needs de-nsFileSpec'ing and the like.. in the process, I'll put in reasonable error handling.
Assignee | ||
Comment 13•23 years ago
|
||
Right, this code sucks pretty much right now, and my intention with this patch is just to fix this regression. There's another bug logged for rewriting it and cleaning up the logic. Bzbarsky, r=? Brendan, sr=?
Comment 14•23 years ago
|
||
Comment on attachment 62547 [details] [diff] [review] Patch r=bzbarsky I'll reinstate the error-check when I clean up.
Attachment #62547 -
Flags: review+
Comment 15•23 years ago
|
||
*** Bug 116829 has been marked as a duplicate of this bug. ***
Updated•23 years ago
|
Component: HTML Form Controls → Form Submission
Comment 16•23 years ago
|
||
Resummarizing to include my dupe.
Summary: File upload stalls when file name is invalid → File upload stalls when file name is invalid or on EACCES
Comment 17•23 years ago
|
||
Comment on attachment 62547 [details] [diff] [review] Patch sr=jst
Attachment #62547 -
Flags: superreview+
Assignee | ||
Comment 18•23 years ago
|
||
fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 19•23 years ago
|
||
*** Bug 116822 has been marked as a duplicate of this bug. ***
Comment 20•23 years ago
|
||
*** Bug 116494 has been marked as a duplicate of this bug. ***
Comment 21•23 years ago
|
||
*** Bug 116873 has been marked as a duplicate of this bug. ***
Comment 22•23 years ago
|
||
*** Bug 116603 has been marked as a duplicate of this bug. ***
Comment 23•23 years ago
|
||
*** Bug 116749 has been marked as a duplicate of this bug. ***
Comment 24•23 years ago
|
||
*** Bug 116901 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 25•23 years ago
|
||
*** Bug 116900 has been marked as a duplicate of this bug. ***
Comment 26•23 years ago
|
||
*** Bug 114777 has been marked as a duplicate of this bug. ***
Comment 27•23 years ago
|
||
*** Bug 116681 has been marked as a duplicate of this bug. ***
Comment 28•23 years ago
|
||
*** Bug 116936 has been marked as a duplicate of this bug. ***
Comment 29•23 years ago
|
||
*** Bug 117079 has been marked as a duplicate of this bug. ***
Comment 30•23 years ago
|
||
Suggested relnote entry (Please add it to 0.9.7 Release Notes, in the Known Problems=>Navigator section) : <h4>Forms</h4><p>Forms which have a field to upload files ( i.e., a field with TYPE set to 'file' ) will hang when sending the data if the file field is blank or has an invalid file. This affects sites using Zope or IMP webmail, among others. If you need this feature, you can download a nightly build <a href="http://ftp.mozilla.org/pub/mozilla/nightly/latest/">here</a>. (Bug <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=116210">116210</a>)</p>
Comment 31•23 years ago
|
||
DAMN! Please remove the "( i.e., a field with TYPE set to 'file' )" section... Sorry for the spam The correct message is: Suggested relnote entry (Please add it to 0.9.7 Release Notes, in the Known Problems=>Navigator section) : <h4>Forms</h4><p>Forms which have a field to upload files will hang when sending the data if the file field is blank or has an invalid file. This affects sites using Zope or IMP webmail, among others. If you need this feature, you can download a nightly build <a href="http://ftp.mozilla.org/pub/mozilla/nightly/latest/">here</a>. (Bug <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=116210">116210</a>)</p>
Assignee | ||
Comment 32•23 years ago
|
||
Mozilla 0.9.7 is out the door, and this will be fixed in the next release. No need to relnote it.
Comment 33•23 years ago
|
||
relnoted for 0.9.7. We can remove the relnote from full release notes when 0.9.8 comes around.
Keywords: relnote
Comment 34•23 years ago
|
||
*** Bug 117101 has been marked as a duplicate of this bug. ***
Comment 35•23 years ago
|
||
*** Bug 117124 has been marked as a duplicate of this bug. ***
Comment 36•23 years ago
|
||
*** Bug 117110 has been marked as a duplicate of this bug. ***
Comment 37•23 years ago
|
||
*** Bug 117182 has been marked as a duplicate of this bug. ***
Comment 38•23 years ago
|
||
*** Bug 117227 has been marked as a duplicate of this bug. ***
Comment 39•23 years ago
|
||
*** Bug 117237 has been marked as a duplicate of this bug. ***
Comment 40•23 years ago
|
||
*** Bug 117364 has been marked as a duplicate of this bug. ***
Comment 41•23 years ago
|
||
*** Bug 117352 has been marked as a duplicate of this bug. ***
Comment 42•23 years ago
|
||
*** Bug 117424 has been marked as a duplicate of this bug. ***
Comment 43•23 years ago
|
||
*** Bug 117306 has been marked as a duplicate of this bug. ***
Comment 44•23 years ago
|
||
*** Bug 117535 has been marked as a duplicate of this bug. ***
Comment 45•23 years ago
|
||
*** Bug 117591 has been marked as a duplicate of this bug. ***
Comment 46•23 years ago
|
||
*** Bug 117748 has been marked as a duplicate of this bug. ***
Comment 47•23 years ago
|
||
*** Bug 117847 has been marked as a duplicate of this bug. ***
Comment 48•23 years ago
|
||
*** Bug 117898 has been marked as a duplicate of this bug. ***
Comment 49•23 years ago
|
||
*** Bug 117899 has been marked as a duplicate of this bug. ***
Comment 50•23 years ago
|
||
*** Bug 117897 has been marked as a duplicate of this bug. ***
Comment 51•23 years ago
|
||
*** Bug 117947 has been marked as a duplicate of this bug. ***
Comment 52•23 years ago
|
||
*** Bug 117942 has been marked as a duplicate of this bug. ***
Comment 53•23 years ago
|
||
*** Bug 117959 has been marked as a duplicate of this bug. ***
Comment 54•23 years ago
|
||
*** Bug 118366 has been marked as a duplicate of this bug. ***
Comment 55•23 years ago
|
||
*** Bug 118330 has been marked as a duplicate of this bug. ***
Comment 56•23 years ago
|
||
*** Bug 118446 has been marked as a duplicate of this bug. ***
Comment 57•23 years ago
|
||
*** Bug 118469 has been marked as a duplicate of this bug. ***
Comment 58•23 years ago
|
||
verified on linux cvs build, waiting for verification on mac and windows...
Comment 59•23 years ago
|
||
*** Bug 118614 has been marked as a duplicate of this bug. ***
Comment 60•23 years ago
|
||
*** Bug 118667 has been marked as a duplicate of this bug. ***
Comment 61•23 years ago
|
||
*** Bug 118695 has been marked as a duplicate of this bug. ***
Comment 62•23 years ago
|
||
*** Bug 118861 has been marked as a duplicate of this bug. ***
Comment 63•23 years ago
|
||
*** Bug 119004 has been marked as a duplicate of this bug. ***
Comment 64•23 years ago
|
||
*** Bug 119602 has been marked as a duplicate of this bug. ***
Comment 65•23 years ago
|
||
*** Bug 119643 has been marked as a duplicate of this bug. ***
Comment 66•23 years ago
|
||
*** Bug 119780 has been marked as a duplicate of this bug. ***
Comment 67•23 years ago
|
||
*** Bug 119839 has been marked as a duplicate of this bug. ***
Comment 68•23 years ago
|
||
*** Bug 119921 has been marked as a duplicate of this bug. ***
Comment 69•23 years ago
|
||
*** Bug 117582 has been marked as a duplicate of this bug. ***
Comment 70•23 years ago
|
||
*** Bug 119878 has been marked as a duplicate of this bug. ***
Comment 71•23 years ago
|
||
*** Bug 120088 has been marked as a duplicate of this bug. ***
Comment 72•23 years ago
|
||
*** Bug 120269 has been marked as a duplicate of this bug. ***
Comment 73•23 years ago
|
||
*** Bug 120490 has been marked as a duplicate of this bug. ***
Comment 74•23 years ago
|
||
*** Bug 120726 has been marked as a duplicate of this bug. ***
Comment 75•23 years ago
|
||
It's...er....back. Linux 2002011806. Uploading a file without read perms. No errors. Just sits there.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 76•23 years ago
|
||
Please file a new bug. This bug is fixed. Thanks.
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Comment 77•23 years ago
|
||
A bit of research shows that: 1) Uploading a nonexistent file is indeed fixed. 2) Uploading a file with no read perms does not work. In fact it never worked. I just regressed builds back to September at one-week intervals and it fails in them all. Jeremy, please comment in this bug with the bug number of the new bug you file.
Comment 78•23 years ago
|
||
I originally did. It was duped here. Is this bug not covering permission problems, only invalid names? Half of the dupes are for permission problems. I'll reopen the original bug I filed for this - bug 116829: Attaching a file to form submission w/o read permission hangs file upload Undoing my resummary of this bug, as it was never taken into account.
Summary: File upload stalls when file name is invalid or on EACCES → File upload stalls when file name is invalid
Comment 79•23 years ago
|
||
*** Bug 120805 has been marked as a duplicate of this bug. ***
Comment 80•23 years ago
|
||
*** Bug 120825 has been marked as a duplicate of this bug. ***
Comment 81•23 years ago
|
||
*** Bug 121086 has been marked as a duplicate of this bug. ***
Comment 82•23 years ago
|
||
*** Bug 121096 has been marked as a duplicate of this bug. ***
Comment 83•23 years ago
|
||
*** Bug 121195 has been marked as a duplicate of this bug. ***
Comment 84•23 years ago
|
||
*** Bug 121450 has been marked as a duplicate of this bug. ***
Comment 85•23 years ago
|
||
*** Bug 122058 has been marked as a duplicate of this bug. ***
Comment 86•23 years ago
|
||
*** Bug 122058 has been marked as a duplicate of this bug. ***
Comment 87•23 years ago
|
||
*** Bug 122058 has been marked as a duplicate of this bug. ***
Comment 88•23 years ago
|
||
*** Bug 122275 has been marked as a duplicate of this bug. ***
Comment 89•23 years ago
|
||
*** Bug 122350 has been marked as a duplicate of this bug. ***
Comment 90•23 years ago
|
||
*** Bug 122354 has been marked as a duplicate of this bug. ***
Comment 91•23 years ago
|
||
*** Bug 122396 has been marked as a duplicate of this bug. ***
Comment 92•23 years ago
|
||
*** Bug 122724 has been marked as a duplicate of this bug. ***
Comment 93•23 years ago
|
||
*** Bug 122771 has been marked as a duplicate of this bug. ***
Comment 94•23 years ago
|
||
*** Bug 123004 has been marked as a duplicate of this bug. ***
Comment 95•23 years ago
|
||
*** Bug 119449 has been marked as a duplicate of this bug. ***
Comment 96•22 years ago
|
||
*** Bug 133186 has been marked as a duplicate of this bug. ***
Updated•5 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•