Bug 170745

Summary: fails to open URLs
Product: [Applications] konqueror Reporter: Anders Lund <anderslund>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: maksim, rpogomes
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Anders Lund 2008-09-09 15:21:48 UTC
Version:           4.1.1 (KDE 4.1.1) (using 4.1.1 (KDE 4.1.1), Kubuntu packages)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.24-16-generic

I have problems getting konqueror to open URLs like this one:

http://www.sejlsport.dk/graphics/ds/DSUngdom/PDF/Pr%F8v%20noget%20nyt%20dokumenter/Invitation_Kerteminde_11.07.08.pdf

Other browsers such as konqueror from KDE 3, firefox and assumingly (so I am told) ie can open the URL.
Comment 1 Maksim Orlovich 2008-09-10 01:56:04 UTC
The DOM looks fine, so probably something funny happens when it gets to KUrl?
Right-click copy seems to turn %F8 into %FD, at least.
Comment 2 Anders Lund 2008-09-10 09:30:20 UTC
What happens is I get 404s, it happens innseveral occations with URLs containing non-ascii characters. So konqueror is sending a wrong request somehow.
Comment 3 Rui G. 2008-09-12 17:12:25 UTC
according to wireshark, firefox requests this:
- GET /graphics/ds/DSUngdom/PDF/Pr%F8v%20noget%20nyt%20dokumenter/Invitation_Kerteminde_11.07.08.pdf HTTP/1.1\r\n 

and konqueror 4.1.1 requests this:

- GET /graphics/ds/DSUngdom/PDF/Pr%EF%BF%BDv%20noget%20nyt%20dokumenter/Invitation_Kerteminde_11.07.08.pdf HTTP/1.1\r\n

 
Comment 4 Maksim Orlovich 2008-09-12 17:21:31 UTC
%EF%BF%BD = utf-8 for U+FFFD  REPLACEMENT CHARACTER
Comment 5 Andreas Hartmetz 2008-11-24 18:37:23 UTC
SVN commit 888509 by ahartmetz:

Fix output of encodedPathAndQuery(). For example, umlauts that just need one
%nn group were output as %nn%nn%nn which, when used in a HTTP query, makes
webservers send a redirection to an URL with the correct encoding. The HTTP
ioslave would send the wrongly encoded URL again, leading to a redirection
cycle.
The KUrl unittests still pass.
BUG: 170745



 M  +21 -29    kurl.cpp  


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