WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
52953
[Qt] Incorrect Post/Redirect/Redirect/Get pattern processing
https://bugs.webkit.org/show_bug.cgi?id=52953
Summary
[Qt] Incorrect Post/Redirect/Redirect/Get pattern processing
Ivan Shestakov
Reported
2011-01-22 03:22:00 PST
Created
attachment 79836
[details]
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.
Attachments
Test case Qt project
(3.06 KB, application/x-zip-compressed)
2011-01-22 03:22 PST
,
Ivan Shestakov
no flags
Details
Fiddler2 autoresponder templates for PRRG emulation
(21.50 KB, application/x-zip-compressed)
2011-01-22 03:23 PST
,
Ivan Shestakov
no flags
Details
Fiddler2 autoresponder templates for standart PRG pattern emulation
(18.61 KB, application/x-zip-compressed)
2011-01-22 03:23 PST
,
Ivan Shestakov
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Ivan Shestakov
Comment 1
2011-01-22 03:23:02 PST
Created
attachment 79837
[details]
Fiddler2 autoresponder templates for PRRG emulation
Ivan Shestakov
Comment 2
2011-01-22 03:23:58 PST
Created
attachment 79838
[details]
Fiddler2 autoresponder templates for standart PRG pattern emulation
Benjamin Poulain
Comment 3
2011-01-28 18:15:58 PST
Please follow
http://trac.webkit.org/wiki/QtWebKitBugs
when reporing bug here.
Jocelyn Turcotte
Comment 4
2014-02-03 03:13:42 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at
https://bugreports.qt-project.org
and add a link to this issue. See
http://qt-project.org/wiki/ReportingBugsInQt
for additional guidelines.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug