| Summary: | KIO::http_delete always adds a trailing slash to the url | ||
|---|---|---|---|
| Product: | [Unmaintained] kio | Reporter: | Andrea Iacovitti <aiacovitti> |
| Component: | http | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | adawit |
| Priority: | NOR | ||
| Version First Reported In: | 4.12.60 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/kio/1bdb286f62454bb13cc299abd45a297a56b45cea | Version Fixed/Implemented In: | 4.12.4 |
| Sentry Crash Report: | |||
That is because KIO::http_delete itself does not send the information about whether or not the requested resource is a file or a directory and I do not think it can do so easily ; so we have to find some sort of solution for the webdav related problem. Git commit e90577d4903d2c1b7a35e4a18efe3544132fbb57 by Dawit Alemayehu. Committed on 27/02/2014 at 14:14. Pushed by adawit into branch 'KDE/4.12'. Correctly handle deletion of directories for http/webdav protocols. Reverts http://commits.kde.org/kdelibs/58294ac. FIXED-IN: 4.12.4 REVIEW: 116122 M +9 -2 kio/kio/deletejob.cpp M +1 -5 kioslave/http/http.cpp http://commits.kde.org/kdelibs/e90577d4903d2c1b7a35e4a18efe3544132fbb57 Git commit 1bdb286f62454bb13cc299abd45a297a56b45cea by Dawit Alemayehu. Committed on 08/03/2014 at 22:00. Pushed by adawit into branch 'master'. Forward port: Correctly handle deletion of directories for http/webdav protocols. Reverts http://commits.kde.org/kdelibs/58294ac. FIXED-IN: 4.12.4 REVIEW: 116122 M +11 -2 src/core/deletejob.cpp M +1 -6 src/ioslaves/http/http.cpp http://commits.kde.org/kio/1bdb286f62454bb13cc299abd45a297a56b45cea |
KIO::http_delete always adds a trailing slash to the specified url, e.g. the code: KUrl url("http://localhost/deleteme.html"); KIO::TransferJob *job = KIO::http_delete(url, KIO::HideProgressInfo); results in the following http request: "DELETE /deleteme.html/" It seems the culprit of the issue is commit http://commits.kde.org/kdelibs/58294ac