Bug 464450 - copyFromFile is not enabled in webdav due to missing entry in http.json
Summary: copyFromFile is not enabled in webdav due to missing entry in http.json
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: WebDAV (show other bugs)
Version: 5.102.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-18 13:36 UTC by Alberto Mattea
Modified: 2023-01-31 21:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.103


Attachments

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