Bug 464664 - Copy from local to WebDAV creates corrupted files with no error
Summary: Copy from local to WebDAV creates corrupted files with no error
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: WebDAV (show other bugs)
Version: 5.99.0
Platform: Gentoo Packages Linux
: NOR critical
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-22 19:05 UTC by henrybsee
Modified: 2023-03-14 20:04 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.100.0
Sentry Crash Report:


Attachments
Dolphin visial for the copied file (55.58 KB, image/png)
2023-01-22 19:11 UTC, henrybsee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description henrybsee 2023-01-22 19:05:53 UTC
SUMMARY
kio seems to have a bug that results in copying from local to WebDAV in KDE apps corrupting files. I lost 3k pictures from my phone trusting that they will simply get moved correctly. Had to use photorec for recovery and will most likely spend a week straightening this out.
It seems critical to get it fixed ASAP as the operation goes through seemingly fine, until you click at a copied file and find the content has been replaced with some DAV protocol stuff.


STEPS TO REPRODUCE
1. Copy any file from local to WebDAV via Dolphin, Krusader or any other KDE app

OBSERVED RESULT
File copies without errors being shown but the content is replaced with the following:
```
<?xml version="1.0" encoding="utf-8" ?><D:propfind xmlns:D="DAV:"><D:prop><D:creationdate/><D:getcontentlength/><D:displayname/><D:resourcetype/></D:prop></D:propfind>
```

EXPECTED RESULT
File copied matches the original

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Seems somebody else has encountered this:
https://groups.google.com/g/krusader-users/c/q_cagW5trOQ
Comment 1 henrybsee 2023-01-22 19:11:42 UTC
Created attachment 155515 [details]
Dolphin visial for the copied file
Comment 2 henrybsee 2023-01-22 19:19:28 UTC
Seems to have been introduced somewhere between these two versions as it worked just fine before the upgrade:
1649205255:  ::: completed emerge (281 of 353) kde-frameworks/kio-5.90.0 to /
1672270563:  >>> emerge (31 of 104) kde-frameworks/kio-5.99.0 to /
Comment 3 henrybsee 2023-01-23 17:24:39 UTC
Recompiled KDE to ~amd64 version and the problem went away. Therefore this can be closed as already fixed.
I will open a bug for Gentoo instead since it's using a buggy package version.
Comment 4 henrybsee 2023-01-24 18:34:15 UTC
Created:
https://bugs.gentoo.org/891961