Open
Bug 292088
Opened 20 years ago
Updated 2 years ago
Wrong file in error message when page resulting from file upload reloaded after local file deleted
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
NEW
People
(Reporter: bugzillaspambox, Unassigned)
Details
Attachments
(1 obsolete file)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 See "steps to reproduce" Reproducible: Always Steps to Reproduce: -1. crate a new text file or something on your desktop 0. open it, write some **** in it and save it (just that the file isn't 0 bytes in size. if it would be, the reproducing of the bug wouldn't work) 1. go to this page: http://ontheserver.de/temp/test.htm (it's just a simple formular) 2. choose the file and then upload it 3. delete the file 4. now press [F5] or right click and then reload to reload the page. Actual Results: the error message shows that test.htm does not exist Expected Results: show that the text file (or whatever was uploaded) does not exist.
Comment 1•20 years ago
|
||
confirmed linux firefox trunk and 1.0.3. Reload at step 4 brings up the POSTDATA warning; clicking OK gives error message "The file /temp/test.htm cannot be found." Maybe related: bug 229260
Assignee: bugs → form-submission
Status: UNCONFIRMED → NEW
Component: File Handling → HTML: Form Submission
Ever confirmed: true
OS: Windows 2000 → All
Product: Firefox → Core
QA Contact: aebrahim-bmo → ian
Summary: Wrong file in error message → Wrong file in error message when page resulting from file upload reloaded after local file deleted
Version: unspecified → Trunk
Comment 2•20 years ago
|
||
Comment 3•20 years ago
|
||
Comment on attachment 181969 [details] reporter's testcase *cough* er, nevermind comment 2, obviously there's no /temp.htm on bmo. I'll go flog myself now.
Attachment #181969 -
Attachment is obsolete: true
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050427 Firefox/1.0+ Confirmed. It shows an alert saying that the destination page does not exist instead of saying that the file that is being uploaded does not exist.
Comment 5•20 years ago
|
||
So the problem seems to be that we get someone (presumably the file input stream trying to read from the file or something?) throwing an NS_ERROR_FILE_NOT_FOUND. When this ends up in the docshell's DisplayLoadError() method docshell thinks (reasonably) that this refers to the file it was trying to load.... Whoever is propagating this rv all the way out to docshell probably shouldn't be.
Updated•15 years ago
|
Assignee: form-submission → nobody
QA Contact: ian → form-submission
| Assignee | ||
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
Updated•2 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•