Last Comment Bug 372643 - Publishing a document to a website via PUT, if subject to temporary redirect (HTTP response code 307), pops a warning dialog concerning POST operations
: Publishing a document to a website via PUT, if subject to temporary redirect ...
Status: RESOLVED WORKSFORME
:
Product: Core
Classification: Components
Component: Networking: HTTP (show other bugs)
: Trunk
: All All
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-04 22:21 PST by Paul Hammant
Modified: 2016-01-19 11:08 PST (History)
3 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Paul Hammant 2007-03-04 22:21:50 PST
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.2) Gecko/20070221 SeaMonkey/1.1.1

nsHttpChannel.cpp :-

    // if we need to re-send POST data then be sure to ask the user first.
    PRBool preserveMethod = (redirectType == 307);
    if (preserveMethod && mUploadStream) {
        rv = PromptTempRedirect();
        if (NS_FAILED(rv)) return rv;
    }

The text of the message is to do with POST, yet more than just POST can have temp redirects in force.  

Can the message be changed? 
Can there be a tick box "Remember this decision" or similar.

Reproducible: Always

Steps to Reproduce:
1. Edit a page on a web server with temp redirects in force for the PUT only.
2. Try to publish back 
3. Not the warning dialog.



Refer usage of the following in necko.properties.

RepostFormData=This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?
Comment 1 Serge Gautherie (:sgautherie) 2008-05-01 16:50:52 PDT
Can you reproduce with SeaMonkey v1.1.9 ?
Comment 2 Ian Neal 2011-09-17 16:46:33 PDT
This is Core backend stuff so pushing to more relevant Product/Component
Comment 3 Patrick McManus [:mcmanus] 2016-01-19 11:08:23 PST
line 25 -- RepostFormData=This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?

Note You need to log in before you can comment on or make changes to this bug.