Bug 510599

Summary: webdav filenames are corrupted
Product: [Frameworks and Libraries] kio-extras Reporter: Luigi Baldoni <aloisio>
Component: WebDavAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kdedev
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Luigi Baldoni 2025-10-14 14:07:17 UTC
SUMMARY
I run a webdav server on my lan using lighttpd. After upgrading to kf6, every share lists filenames and directories with the last directory in the path prepended to them in Dolphin.

STEPS TO REPRODUCE
1. Install kf6
2. Create webdav share
3. Access the latter from the former

OBSERVED RESULT
webdavs://myserver.local/dav/files lists:
 filesfolder1
 filesfolder2
...
 filesfile1.txt
 filesfile2.pdf
 filesfile3.zip
...

EXPECTED RESULT
webdavs://myserver.local/dav/files lists:
 folder1
 folder2
...
 file1.txt
 file2.pdf
 file3.zip
...

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Leap 16.0
KDE Plasma Version: 6.4.2
KDE Frameworks Version:  6.16.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
1. Files are accessible if one writes their actual names by hand
2. The problem exists also with kioclient
3. The problem does not occur on kf5 nor Android
4. I could also reproduce the problem on a fresh openSUSE Leap 16.0 machine and on
    Fedora 42 (KDE Plasma Version: 6.3.4, KDE Frameworks Version: 6.12.0, Qt Version: 6.8.2,
    Kernel Version: 6.14.0-63.fc42.x86_64)
Comment 1 TraceyC 2025-12-01 18:05:07 UTC
Just a note, this can be tested with a Nextcloud instance by entering this into Dolphin:
davs://example.com/nextcloud/remote.php/dav/files/USERNAME/

I see the folders on my Nextcloud instance in the same way as accessing the folder created by the Nextcloud client. They are shown correctly.

> kinfo            
Operating System: Solus 4.8
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.9.3
Kernel Version: 6.17.8-324.current (64-bit)
Graphics Platform: Wayland
Comment 2 TraceyC 2025-12-01 18:08:33 UTC
I'm also able to rename files using the webdav view