Review Request 116122: Do not add trailing slash on http DELETE requests

Dawit Alemayehu adawit at kde.org
Wed Mar 5 14:01:13 GMT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/116122/
-----------------------------------------------------------

(Updated March 5, 2014, 2:01 p.m.)


Review request for kdelibs, Andrea Iacovitti and David Faure.


Changes
-------

Updated patch. The problem was actually in DeleteJob where http_delete and not rmdir should have been used to delete http/webdav folder.


Bugs: 331295
    http://bugs.kde.org/show_bug.cgi?id=331295


Repository: kdelibs


Description
-------

This patch fixes a prior commit, http://commits.kde.org/kdelibs/58294ac, which attempted to workaround webdav servers that do not accept delete requests on directories unless there is a trailing slash. It ensures that the "fix" is only applicable to webdav and the addition of the trailing slash is communicated to the client application.


Diffs (updated)
-----

  kio/kio/deletejob.cpp b0268ef 
  kioslave/http/http.cpp b4d64d4 

Diff: https://git.reviewboard.kde.org/r/116122/diff/


Testing
-------

For HTTP delete:
http://greenbytes.de/tech/tc/httpredirects/t301methods.html

For WebDAV delete:
http://boonfaya.com/sites/webdavapps.com/#targets


Thanks,

Dawit Alemayehu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20140305/8b94468d/attachment.htm>


More information about the kde-core-devel mailing list