[Webkit-unassigned] [Bug 52953] New: [Qt] Incorrect Post/Redirect/Redirect/Get pattern processing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 22 03:22:00 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=52953

           Summary: [Qt] Incorrect Post/Redirect/Redirect/Get pattern
                    processing
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: temppost2 at gmail.com


Created an attachment (id=79836)
 --> (https://bugs.webkit.org/attachment.cgi?id=79836&action=review)
Test case Qt project

We all know about Post/Redirect/Get (PRG) pattern (http://en.wikipedia.org/wiki/Post/Redirect/Get). QtWebKit handles this  standart pattern without any issues.

In my development environment I also use Post/Redirect/Redirect/Get (PRRG) pattern. All popular browsers (IE 8, Chrome 8.0.552.237, Opera 10.63, Mozilla 3.6.12) handle this pattern ideally. But not QtWebKit.

The problem is the following: when you try to reload in QWebView last loaded page (after PRRG pattern was processed) QNAM unpredictably sends POST request to last loaded url instead of GET. As a result my web service will accept POST request. 
However, in all popular browsers reloading page (after PRRG was processed) leads to predictable GET request.

I created simple Qt GUI application to reproduce this bug (see TestPRRG_Qt_Project.zip attachment).

For PRRG pattern emulation I used fiddler2 (http://www.fiddler2.com/fiddler2/) with autoresponder feature and some fiddler autoresponse templates (see fiddler_PRRG_emul.zip attachment). If you want to emulate PRG pattern then use PRG_fiddler_emul.zip.

To reproduce this bug you should to: 
1. launch fiddler2 with appropriate autoresponse templates, 
2. compile and run application. Application will automatically send POST request to 'startUrl' (see source code).
4. check out application output window (in qt creator) or fiddler inspector area and you will see registered POST request to last loaded url instead of predictable GET request.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list