Closed
Bug 300037
Opened 20 years ago
Closed 20 years ago
If a Web page generated by a POST operation is saved to file, a second POST operation is performed with no warning
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 115174
People
(Reporter: andrew, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
A Web form is filled in and submitted with action=post. The resulting page
is required to be sent to someone. If it is printed out and sent by surface mail,
everything is fine. If in Mozilla the user clicks "Send Page" to send it as
email a second POST operation is performed to get the source code again.
Similarly if the user clicks "Save As File" in FireFox or Mozilla a second
POST is performed with no popup or alert box appearing
The second POST violates the principle that all POST operations should be in
response to an explicit user request, since they may make a payment, turn on a
motor, launch a missile or perform some other operation that should not be
duplicated
Reproducible: Always
Steps to Reproduce:
1.Submit a web form using POST
2.Save the resulting page to file
3.Check webserver logs
Actual Results:
The browser sends a HEAD request followed by a second POST operation
Expected Results:
Saved the page to file using the cached copy. If the page was not cacheable,
the user should be given a dialogue "the page you are trying to save
contains POST data ..." before a second POST is performed. Ideally, the browser
should just be able to save what is on the screen, in the same way as it
can save it to PostScript when print is requested., without doing any other
HTTP operations
Firefox performs like this for text/plain, HTML and PNG.
Mozilla instead does a GET request for text/plain and PNG, but does the second
POST operation for HTML
Comment 1•20 years ago
|
||
*** This bug has been marked as a duplicate of 115174 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•