Bug 422238

Summary: Overwriting files in kio webdav slave leads to error
Product: [Frameworks and Libraries] frameworks-kio Reporter: Ben Gruber <bengruber250>
Component: WebDAVAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ben Gruber 2020-05-29 18:02:25 UTC
SUMMARY
The kio http/webdav slave gives an error when you perform a copy on a webdav server where the destination file already exists. I am nearly finished with a patch and will submit it soon.

STEPS TO REPRODUCE
1. Open dolphin and connect to a webdav server.
2. Copy a file from local to remote such that a file with the same name already exists on remote.
3. Observe failure.
4. Copy a file from one directory on remote to another directory on remote such that the file in the destination directory already exists.
5. Observe failure.

SOFTWARE/OS VERSIONS
Kio from git master

ADDITIONAL INFORMATION
I am working on a patch.
Comment 2 David Faure 2020-07-05 22:20:33 UTC
Git commit 39ce81330d216a3592b5aa9be9a15545bb1e767f by David Faure, on behalf of Ben Gruber.
Committed on 05/07/2020 at 22:20.
Pushed by dfaure into branch 'master'.

[WebDav] Fix copies that include overwrites for the webdav slave

M  +11   -0    autotests/CMakeLists.txt
A  +258  -0    autotests/webdavtest.cpp     [License: LGPL (v2/3+eV)]
A  +35   -0    cmake/FindWsgidavExe.cmake
M  +34   -16   src/ioslaves/http/http.cpp
M  +2    -2    src/ioslaves/http/http.h

https://invent.kde.org/frameworks/kio/commit/39ce81330d216a3592b5aa9be9a15545bb1e767f