Summary: | webdav client don't use url encoding provided by server, breaking on UTF-8 | ||
---|---|---|---|
Product: | [Unmaintained] kio | Reporter: | David Delbecq <delbd> |
Component: | webdav | Assignee: | Hamish Rodda <rodda> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | andy |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | WebDAV request by Konqueror and Apache response in UTF-8 |
Description
David Delbecq
2007-07-19 12:40:42 UTC
I can confirm this problem. German Umlauts in Filenames are garbled in konqueror (3.5.6) if I try to access webdav (running on apache 2.2.4). I didn't inspect the protocol stream, but I suppose that it's a bug in konqueror, since it works without problems using cadaver (a commandline webdav client) or using Windows. I can confirm the bug too with KDE 3.5.6 & Apache 2. Other webdav clients (including Windows/Explorer) does not have this behaviour. It is quite annoying. While looking at kdelibs-3.5.6/kioslave/http/http.cc, I hack around line 755 (KDE 3.5.6) and found that forcing encoding to 106 (utf8) give a good reading. All file and directories appear with correct encoding. But browsing inside those directories still does not work : url sent is not prperly encoded and server answer 404 (not found). Moreover, using konqueror menu tools=>select remote encoding, freeze Konqueror when using webdav.... Created attachment 22151 [details]
WebDAV request by Konqueror and Apache response in UTF-8
To almost quote my namesake Sebastien Renard, I can confirm the bug too with
KDE 3.5.2 & Apache 2. Other webdav clients (Nautilus or Windows/Explorer) do
not have this behaviour. It is quite annoying.
What I can't believe is why the bug status is still shown as unconfirmed. I
hope this will be changed soon, and of course I'd like a fix to appear too (so
I'll vote for this bug). Maybe this will help to finally confirm it: I've run a
test on a directory containing only one file, "Tést.txt" (shown as
"Tést.txt" by Konqueror), and used Wireshark to sniff the communication.
Here is the key part, a request and response in which both in the Content-Type
header and in the XML header mark the content as UTF-8. I've edited the host
out and converted line breaks to Windows and added two new lines between the
request and response for clarity, otherwise the communication is unchanged. See
the attachment.
|