Bug 422238 - Overwriting files in kio webdav slave leads to error
Summary: Overwriting files in kio webdav slave leads to error
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: WebDAV (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-29 18:02 UTC by Ben Gruber
Modified: 2020-07-05 22:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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