Bug 460582

Summary: Copying files to WebDAV share creates garbled files
Product: [Frameworks and Libraries] frameworks-kio Reporter: slt <nevermind942>
Component: WebDAVAssignee: KIO Bugs <kio-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: code-bugs, kdelibs-bugs, medhefgo, vive.linux
Priority: NOR    
Version: 5.99.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A garbled file created when copying a file to a WebDAV share

Description slt 2022-10-17 11:15:33 UTC
Created attachment 152936 [details]
A garbled file created when copying a file to a WebDAV share

SUMMARY
When a file is written or copied to a WebDAV share, a small file with garbled output is created instead (it's a small XML file, attached)


STEPS TO REPRODUCE
1. Use Dolphin to open webdavs://username@some.example.com:443/testfolder/
2. Copy a file testfile.txt to the share

OBSERVED RESULT
The contents of any files created are always a small XML file, which is attached.

EXPECTED RESULT
The actual contents of the copied file.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
I have now upgraded KDE Frameworks to version 5.99, but kept just the package kio to version 5.98, which doesn't produce this bug.
The WebDAV share is served by Apache over a Nginx reverse proxy.
Comment 1 vive.linux 2022-10-18 10:44:55 UTC
I confirm I have exactly the same buggy behaviour since last update to  5.99.0.
Same config and distro as OP.
Comment 2 Jan 2022-10-20 10:47:55 UTC
Man, bugzilla search sucks. I created a duplicate in https://bugs.kde.org/show_bug.cgi?id=460717, but my report also has the commit responsible for this (ed1a8a529f12c8a239877b8e68e2fdd12c991590).
Comment 3 Ben 2022-10-27 10:49:42 UTC

*** This bug has been marked as a duplicate of bug 460717 ***