Bug 36690 - [Qt] LayoutTests/http/tests/appcache/resource-redirect-2.html failed and skipped
Summary: [Qt] LayoutTests/http/tests/appcache/resource-redirect-2.html failed and skipped
Status: CLOSED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P3 Normal
Assignee: krithigassree.sambamurthy
URL:
Keywords: Qt
Depends on: 37097
Blocks: 34712 35784
  Show dependency treegraph
 
Reported: 2010-03-26 18:31 PDT by Chang Shu
Modified: 2010-06-09 06:54 PDT (History)
7 users (show)

See Also:


Attachments
Patch helps in detetcting http redirect loops in Qt (3.53 KB, patch)
2010-03-29 13:34 PDT, krithigassree.sambamurthy
no flags Details | Formatted Diff | Diff
Re-submitting patch according to style rules (3.73 KB, patch)
2010-03-30 07:19 PDT, krithigassree.sambamurthy
eric: review-
Details | Formatted Diff | Diff
Patch file adhereing to style rules (3.53 KB, patch)
2010-04-02 13:47 PDT, krithigassree.sambamurthy
laszlo.gombos: review-
eric: commit-queue-
Details | Formatted Diff | Diff
Patch file for appcache layout tests that can be removed from the skipped list. (1.14 KB, patch)
2010-04-06 11:43 PDT, krithigassree.sambamurthy
no flags Details | Formatted Diff | Diff
new patch file following tab rules for Change log (1.14 KB, patch)
2010-04-06 13:11 PDT, krithigassree.sambamurthy
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chang Shu 2010-03-26 18:31:36 PDT
The above test timed out on QtLinux.
Comment 1 krithigassree.sambamurthy 2010-03-29 13:34:33 PDT
Created attachment 51960 [details]
Patch helps in detetcting http redirect loops in Qt
Comment 2 WebKit Review Bot 2010-03-29 13:39:37 PDT
Attachment 51960 [details] did not pass style-queue:

Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1
WebCore/platform/network/qt/QNetworkReplyHandler.cpp:252:  An else should appear on the same line as the preceding }  [whitespace/newline] [4]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 krithigassree.sambamurthy 2010-03-30 07:19:05 PDT
Created attachment 52035 [details]
Re-submitting patch according to style rules
Comment 4 Eric Seidel (no email) 2010-04-01 16:53:18 PDT
Comment on attachment 52035 [details]
Re-submitting patch according to style rules

LayoutTests ChangeLog is bogus.
Comment 5 krithigassree.sambamurthy 2010-04-02 13:47:52 PDT
Created attachment 52447 [details]
Patch file adhereing to  style rules
Comment 6 Eric Seidel (no email) 2010-04-05 12:57:23 PDT
Comment on attachment 52447 [details]
Patch file adhereing to  style rules

Tab in the ChangeLog will prevent this from being committed.  I'm surprised the style bot didn't catch that.

This looks sane, although I'm surprised the Qt network layer doesn't do this for you.
Comment 7 Laszlo Gombos 2010-04-05 13:03:13 PDT
Comment on attachment 52447 [details]
Patch file adhereing to  style rules

r- as this now has to be reworked after fix for 37097 is landed. The same bug (missing feature) cause both xhr and app cache failures. 

Bug 37097 is using 10 as a redirect limit, I'm ok with that instead of 16 proposed as part of this patch.

Krithiga, can you rewor your patch so that it works on top of patch for bug 37097. I think your error handling code and the Skipped list update is still needed.
Comment 8 Chang Shu 2010-04-05 13:32:03 PDT
(In reply to comment #7)
> (From update of attachment 52447 [details])
> r- as this now has to be reworked after fix for 37097 is landed. The same bug
> (missing feature) cause both xhr and app cache failures. 
> 
> Bug 37097 is using 10 as a redirect limit, I'm ok with that instead of 16
> proposed as part of this patch.
> 
> Krithiga, can you rewor your patch so that it works on top of patch for bug
> 37097. I think your error handling code and the Skipped list update is still
> needed.

Thanks for finding this out for us, Laszlo.
Comment 9 Robert Hogan 2010-04-05 14:11:33 PDT
(In reply to comment #6)
> (From update of attachment 52447 [details])
> Tab in the ChangeLog will prevent this from being committed.  I'm surprised the
> style bot didn't catch that.
> 
> This looks sane, although I'm surprised the Qt network layer doesn't do this
> for you.

QtNetwork is pretty agnostic on this score. It passes back redirects to the client by setting an attribute in the QNetworkRequest:


    \value RedirectionTargetAttribute
        Replies only, type: QVariant::Url (no default)
        If present, it indicates that the server is redirecting the
        request to a different URL. The Network Access API does not by
        default follow redirections: it's up to the application to
        determine if the requested redirection should be allowed,
        according to its security policies.
        The returned URL might be relative. Use QUrl::resolved()
        to create an absolute URL out of it.

So if QtWebKit wants to respect redirects it needs to sanity check them as well.
Comment 10 Chang Shu 2010-04-05 14:50:01 PDT
(In reply to comment #9)
> (In reply to comment #6)
> > (From update of attachment 52447 [details] [details])

> So if QtWebKit wants to respect redirects it needs to sanity check them as
> well.

Thanks for the clarification. This confirms the correctness of webkit approach.
Comment 11 krithigassree.sambamurthy 2010-04-06 11:43:19 PDT
Created attachment 52654 [details]
Patch file for appcache layout tests that can be removed from the skipped list.

New patch file containing the changes to layout skipped tests and corresponding change log.
Comment 12 Laszlo Gombos 2010-04-06 12:20:25 PDT
ChangeLog has a small text alignment issue, otherwise looks good. Krithiga, can you fix it ?
Comment 13 krithigassree.sambamurthy 2010-04-06 13:11:33 PDT
Created attachment 52659 [details]
new patch file following tab rules for Change log
Comment 14 Laszlo Gombos 2010-04-06 13:16:12 PDT
Comment on attachment 52659 [details]
new patch file following tab rules for Change log

lgtm, r+.
Comment 15 WebKit Commit Bot 2010-04-06 16:04:51 PDT
Comment on attachment 52659 [details]
new patch file following tab rules for Change log

Clearing flags on attachment: 52659

Committed r57175: <http://trac.webkit.org/changeset/57175>
Comment 16 WebKit Commit Bot 2010-04-06 16:04:57 PDT
All reviewed patches have been landed.  Closing bug.
Comment 17 Simon Hausmann 2010-05-07 14:16:21 PDT
Revision r57175 cherry-picked into qtwebkit-2.0 with commit f8d7b7e06126519131d47d84f5d8cc9f0873b9fb
Comment 18 Csaba Osztrogonác 2010-06-09 06:54:53 PDT
(In reply to comment #17)
> Revision r57175 cherry-picked into qtwebkit-2.0 with commit f8d7b7e06126519131d47d84f5d8cc9f0873b9fb

This make http/tests/appcache/fallback.html crash 
on the qtwebkit-2.0 bot. Have you got any idea why? 

I tried against Qt 4.6.0, 4.6.2 and 4.7.0, but
they didn't solve this crash.