Bug 127251

Summary: PROPFIND handling disregards Content-Type charset
Product: [Unmaintained] kio Reporter: Ilya Konstantinov <kde-bugzilla>
Component: webdavAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: andy, bugs-kde, delbd, kde, olig9, renard
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: fix for KDE 3

Description Ilya Konstantinov 2006-05-13 13:17:41 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Debian testing/unstable Packages

On a WebDAV URL whose Content-Type is text/xml; charset="utf-8", the webdav protocol uses the wrong charset to decode file and directory names.

The relevant code in /kdelibs/kioslave/http/http.cc seems to only use SlaveBase::remoteEncoding(), which in turn only relies on SlaveBase::metaData("Charset"), which is a property set by the calling application, not derived from the server's hints.
Comment 1 Ilya Konstantinov 2006-05-13 13:19:29 UTC
You may use the following URL for testing:
webdav://www.shiny.co.il/ilya/kde-bug-127251-test/

It contains an English, a Hebrew and a Russian file name.
Comment 2 bugs-kde 2006-11-10 15:06:05 UTC
The problem is even more significant because manual changing of remote charset doesn't work properly for WebDAV (see bug 137154).
Comment 3 Tommi Tervo 2007-12-08 15:49:32 UTC
*** Bug 148016 has been marked as a duplicate of this bug. ***
Comment 4 Sebastian Lisken 2007-12-09 00:14:39 UTC
*** This bug has been confirmed by popular vote. ***
Comment 5 Sebastian Lisken 2007-12-09 00:19:00 UTC
Oops, I was only voting, but now I've managed to confirm the bug en passant - nice accident. :-) See bug 148016, the previous "target" of my vote and now a duplicate of this one, for some test results including a sniffed HTTP exchange posted by me.
Comment 6 Kai Becker 2008-05-21 20:49:48 UTC
New test url:
webdav://webdav.directserver.org

The old one does not work anymore.
Comment 7 Kai Becker 2008-07-10 12:30:36 UTC
BTW This is fixed in Suse's version of KDE3 and KDE4  (tested KDE 3 under Suse 10.3 and KDE 4 under Suse 11)
Comment 8 Kai Becker 2009-10-15 14:33:11 UTC
This seems to be fixed now (using KDE 4.3.2 (kdemod) in ArchLinux)
Comment 9 Sebastien Renard 2009-10-19 22:10:04 UTC
I confirm. It seems ok with KDE 4.2.3
Comment 10 Tommi Tervo 2009-10-31 10:05:21 UTC
Seems to be fixed.
Comment 11 Dawit Alemayehu 2011-12-25 20:58:32 UTC
*** Bug 137154 has been marked as a duplicate of this bug. ***
Comment 12 Thorsten Glaser 2011-12-27 13:12:11 UTC
Created attachment 67156 [details]
fix for KDE 3

I’ve looked at how KDE 4.2.4 fixed this and sorta re-implemented this in Qt3/KDE3 API. Please commit this to Trinity and Kubuntu LTS.

Test-built by adding this to kdelibs-3.5.10/debian/patches/ then “dch --nmu” to make a 3.5.10-0ubuntu1~hardy1.5tarent1 version, building it in a clean Hardy cowbuilder chroot, and installing the result.