Bug 253310

Summary: Bad redirection on some pages
Product: [Frameworks and Libraries] kdelibs Reporter: Jose <getaceres>
Component: kdewebkitAssignee: Andrea Diamantini <adjam7>
Status: RESOLVED FIXED    
Severity: normal CC: adawit, pano_90
Priority: NOR    
Version: 4.5   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: 4.6

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