Bug 253310 - Bad redirection on some pages
Summary: Bad redirection on some pages
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdewebkit (show other bugs)
Version: 4.5
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Andrea Diamantini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-05 13:15 UTC by Jose
Modified: 2010-11-30 09:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.6
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jose 2010-10-05 13:15:39 UTC
Version:           0.6.0
OS:                Linux

Sometimes rekonq gets a bad redirection and appends a "http" at the end of the URL which results in a failure to get the desired content.

Reproducible: Always

Steps to Reproduce:
1. Go to www.kde-look.org
2. Choose whatever content (for example http://kde-look.org/content/show.php?content=40492)
3. Click on the download link
4. Wait for the timeout in the next page

Actual Results:  
You get redirected to http://kde-look.org/content/http

Expected Results:  
You get redirected to the actual download (http://craigd.wikispaces.com/file/view/QtCurve-KDE4-1.6.4.tar.bz2)

OS: Linux (i686) release 2.6.32-25-generic-pae
Compiler: cc

It works ok in Chrome and Firefox so it's not a problem of the site.
It also happens in some other websites specially when sending credentials or getting a redirection.
Comment 1 Panagiotis Papadopoulos 2010-10-09 13:00:11 UTC
confirmed with rekonq and konqueror (with WebKit KPart)…
It works fine with arora and KHTML.
Comment 2 Dawit Alemayehu 2010-11-29 18:36:04 UTC
I can reproduce the bug, but sadly that is a horrendous site to attempt to debug! However that is the url we are asked to navigate to by QtWebKit:

konqueror(7036) WebPage::acceptNavigationRequest: url:  QUrl( "http://kde-look.org/content/http" )  ,type: 5 ,frame: QWebFrame(0x30f6210) ,main frame ? true
konqueror(7036)/kdewebkit KWebPage::acceptNavigationRequest: url:  QUrl( "http://kde-look.org/content/http" )  , type: 5 , frame: QWebFrame(0x30f6210)

I have no idea why this works correctly with Arora which uses the same QtWebKit version.
Comment 3 Dawit Alemayehu 2010-11-30 09:39:42 UTC
SVN commit 1202245 by adawit:

Fixed website breakage in kdewebkit based browsers caused by improper parsing of HTTP repsonse headers!

BUG:253851
BUG:253310


 M  +19 -16    accessmanagerreply_p.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1202245