Bug 464450

Summary: copyFromFile is not enabled in webdav due to missing entry in http.json
Product: [Frameworks and Libraries] frameworks-kio Reporter: Alberto Mattea <alberto>
Component: WebDAVAssignee: KIO Bugs <kio-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs, nate, nicolas.fella
Priority: NOR    
Version: 5.102.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.103

Description Alberto Mattea 2023-01-18 13:36:26 UTC
SUMMARY
See Bug 334192 for full context. Basically, when copyFromFile support was introduced with http://commits.kde.org/kio/3167510f887bb6b2ebc849a91bfebe1319ad1837, the corresponding entry ("copyFromFile": true) was not added to http.json, so the symptoms described in the above bug are still present (unnecessary copy to /tmp, problems with large files etc). Simply adding the entry to the "webdav" and "webdavs" sections of the json file fixes the problem.

STEPS TO REPRODUCE
1.  Upload a large file to a WebDAV server with dolphin

OBSERVED RESULT
The file is copied to /tmp first, RAM usage spikes, the actual upload may not start due to memory problems

EXPECTED RESULT
The file gets uploaded right away
Comment 1 Bug Janitor Service 2023-01-26 13:02:15 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1145
Comment 2 Nicolas Fella 2023-01-27 21:28:33 UTC
Git commit fe76c7e7224bde6a93e327de097c8a1e14c7d323 by Nicolas Fella, on behalf of Alberto Mattea.
Committed on 27/01/2023 at 20:06.
Pushed by cullmann into branch 'master'.

Add missing copyFromFile entries to http.json for webdav and webdavs

copyFromFile support was already implemented but not enabled due to the missing entries.

M  +2    -0    src/kioworkers/http/http.json

https://invent.kde.org/frameworks/kio/commit/fe76c7e7224bde6a93e327de097c8a1e14c7d323
Comment 3 Alberto Mattea 2023-01-31 21:44:01 UTC
Git commit 74b1ec8b63c5e23d288e0d43d898ae2dcdcf43a0 by Alberto Mattea.
Committed on 31/01/2023 at 21:43.
Pushed by mattea into branch 'kf5'.

Add missing copyFromFile entries to http.json for webdav and webdavs

copyFromFile support was already implemented but not enabled due to the missing entries.


(cherry picked from commit fe76c7e7224bde6a93e327de097c8a1e14c7d323)

M  +2    -0    src/kioworkers/http/http.json

https://invent.kde.org/frameworks/kio/commit/74b1ec8b63c5e23d288e0d43d898ae2dcdcf43a0