[WebKit-devel] [Bug 263817] Wikipedia search results aren't loading or redirecting correctly

Dawit Alemayehu adawit at kde.org
Wed Jan 26 14:34:23 CET 2011


https://bugs.kde.org/show_bug.cgi?id=263817





--- Comment #15 from Dawit Alemayehu <adawit kde org>  2011-01-26 14:34:21 ---
Well I see what the problem is and why it potentially works in khtml but not
kdewebkit. When you visit fr.wikipedia.org, you get the following error in both
cases:

kio_http(21091)/kio_http_debug HTTPProtocol::readResponseHeader: Content-type:
"text/html"
kio_http(21091)/kio_http_debug HTTPProtocol::readResponseHeader: Encoding-type:
"charset" = "utf-8"
kio_http(21091)/kio_http_debug HTTPProtocol::readResponseHeader: Re-directing
from "http://fr.wikipedia.org/" to
"http://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Accueil_principal"
kio_http(21091)/kio_http_debug HTTPProtocol::cacheFileClose:
kio_http(21091)/kio_http_debug HTTPProtocol::fixupResponseMimetype: before
fixup "text/html"
kio_http(21091)/kio_http_debug HTTPProtocol::fixupResponseMimetype: after fixup
"text/html"
kio_http(21091)/kio_http_debug HTTPProtocol::proceedUntilResponseHeader:
Previous Response: 0
kio_http(21091)/kio_http_debug HTTPProtocol::proceedUntilResponseHeader:
Current Response: 301
kio_http(21091)/kio_http_debug HTTPProtocol::readBody: "20" bytes left.
kio_http(21091)/kio_http_debug HTTPProtocol::readBody: bytesReceived==-1 sz= 0 
Connection broken !

which causes the 124 error, which I incorrectly stated was
ERR_UNSUPPORTED_ACTION in comment #8. It is actually ERR_CONNECTION_BROKEN
which is exactly what happens above. I do not get a connection brokwn when I
visit fr.wikipedia.org:

kio_http(1571)/kio_http_debug HTTPProtocol::readResponseHeader: Re-directing
from "http://fr.wikipedia.org/" to
"http://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Accueil_principal"
kio_http(1571)/kio_http_debug HTTPProtocol::cacheFileClose:
kio_http(1571)/kio_http_debug HTTPProtocol::fixupResponseMimetype: before fixup
"text/html"
kio_http(1571)/kio_http_debug HTTPProtocol::fixupResponseMimetype: after fixup
"text/html"
kio_http(1571)/kio_http_debug HTTPProtocol::proceedUntilResponseHeader:
Previous Response: 0
kio_http(1571)/kio_http_debug HTTPProtocol::proceedUntilResponseHeader: Current
Response: 301
kio_http(1571)/kio_http_debug HTTPProtocol::readBody: "20" bytes left.
kio_http(1571)/kio_http_debug HTTPProtocol::readBody: EOD received! Left = "0"

So the issue for you is why does the connection get broken ? Perhaps your local
squid cache closes the connection immediately when it is redirected ? 

Anyhow, this bug shows up in kdewebkit because it will not do the redirect when
it gets and error message for the request it made. What it should do, to work
like khtml, is ignore errors on redirection. That might fix kwebkitpart/rekonq
working correctly for you, but it does not solve your actual problem of why you
get broken connections in the first place...

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


More information about the WebKit-devel mailing list