Closed
Bug 89389
Opened 24 years ago
Closed 23 years ago
"Save As Link..." improperly handles URLs that give 403 Forbidden or 404 Not Found
Categories
(Core Graveyard :: File Handling, defect)
Core Graveyard
File Handling
Tracking
(Not tracked)
VERIFIED
FIXED
Future
People
(Reporter: alexm, Assigned: bugzilla)
References
()
Details
Attachments
(1 file, 2 obsolete files)
2.14 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.3 i686; en-US; rv:0.9) Gecko/20010505
BuildID: 2001050521
When I try to save a URL with "Save Link As...", and that URL gives HTTP error
403 Forbidden, the page with error message from the remote server (or proxy, as
in my case), gets saved.
Reproducible: Always
Steps to Reproduce:
1. Go to the specified URL, http://cr.yp.to/crypto.html
2. Try to save the "Probability theory" link with right mouse button and "Save
Link As..."
3. The 'prob.html' file gets saved.
Actual Results: prob.html contains "<html><body>file does not exist</body></html>"
Expected Results: Mozilla should clearly state that the file was not found on
server or was forbidden, and do not save the file.
Comment 1•24 years ago
|
||
hmm I don't know about that.. what if you WANTED to save the error page?
This is not User Interface Design.. trying Networking: HTTP
but I recommend WONTFIX
Component: User Interface Design → Networking: HTTP
OS: Linux → All
Hardware: PC → All
Reporter | ||
Comment 2•24 years ago
|
||
> what if you WANTED to save the error page?
I do think that 99% of users do not want to save (silently) the error page :)
For those who do want, Mozilla could provide a button in error dialog.
ask: please don't forget to reassign... cc'ing mpt because we probably need
some UID thoughts...
Personally I would have made the same comments as ask.
Assignee: mpt → neeti
QA Contact: zach → benc
-> xpapss.
I think that we should add error handling.
If you want to save the page, you should be clicking on the link, seeing the
html that came w/ the 4xx error, and then doing Save As (page)...
Otherwise, people end up saving error pages that they thought was content.
Component: Networking: HTTP → XP Apps: GUI Features
don't forget to reassign!
personally i'd settle for a dialog that says the page returned an error, would
I like to save, view or cancel.
Assignee: neeti → blake
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: benc → sairuh
Assignee | ||
Comment 6•24 years ago
|
||
Cool idea.
usability/polish, 0.9.4.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.4
Assignee | ||
Updated•24 years ago
|
Target Milestone: mozilla0.9.4 → mozilla1.0
Comment 7•24 years ago
|
||
spam: over to File Handling. i have not changed the assigned developer [or the
other fields for that matter], so if anyone realizes that a bug should have a
more appropriate owner, go ahead and change it. :)
Component: XP Apps: GUI Features → File Handling
Assignee | ||
Updated•24 years ago
|
Target Milestone: mozilla1.0 → Future
Assignee | ||
Comment 8•23 years ago
|
||
![]() |
||
Comment 9•23 years ago
|
||
Comment on attachment 69743 [details] [diff] [review]
patch
>+ promptService.alert(null, errorTitle, errorMsg);
Shouldn't that first arg be "window" to properly have modality stuff set up?
Assignee | ||
Comment 10•23 years ago
|
||
Well, I don't have a handle to the window, this is the nsHeaderSniffer js "class"
![]() |
||
Comment 11•23 years ago
|
||
Yeah. Just add the window to the "data" you initialize the header sniffer with....
Assignee | ||
Comment 12•23 years ago
|
||
hmm...I guess. seems mildly lame that nsHeaderSniffer would take a window as
an arg to its ctor.
Attachment #69743 -
Attachment is obsolete: true
Assignee | ||
Comment 13•23 years ago
|
||
Attachment #69804 -
Attachment is obsolete: true
![]() |
||
Comment 14•23 years ago
|
||
Comment on attachment 69806 [details] [diff] [review]
oh! I see what you meant.
Yep, exactly. r=bzbarsky
Attachment #69806 -
Flags: review+
Assignee | ||
Comment 15•23 years ago
|
||
JoeHew: sr=hewitt
checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 16•23 years ago
|
||
vrfy'd fixed using 2002.02.18 comm bits on linux rh7.2, win2k and mac 10.1.2.
now get an alert: "The link could not be saved. The web page might have been
removed or had its name changed."
Status: RESOLVED → VERIFIED
Comment 17•15 years ago
|
||
For reference: this is broken again; see bug 174167 comment 10.
![]() |
||
Comment 18•15 years ago
|
||
Yeah, because the header sniffer got nuked....
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•