(this issue described by @airnandez)

WebDAV method DELETE fails for non-empty directory, using Server: XrootD/v5.5.0
Message returned:
Unable to remove /cephfs/grid/lsst/user/fabioh/tests/dir-vtz3iejc/; directory not empty

The response status code 500 Internal Server Error is inconvenient since that is one of the return codes that are typically retried.

According to the RFC:
The DELETE method on a collection MUST act as if a "Depth: infinity" header was used on it.
The server may return a 4xx status response, rather than a 207, if the request failed completely.
DELETE works correctly when the path is a file.

`
$ curl -i -L -v \

--capath /etc/grid-security/certificates
--cacert ${X509_USER_PROXY}
--cert ${X509_USER_PROXY}
--output /dev/stdout
-X DELETE
https://xgate.hec.lancs.ac.uk:1094/cephfs/grid/lsst/user/fabioh/tests/dir-vtz3iejc/
 

DELETE /cephfs/grid/lsst/user/fabioh/tests/dir-vtz3iejc/ HTTP/1.1
User-Agent: curl/7.29.0
Host: xgate.hec.lancs.ac.uk:1094
Accept: /

< HTTP/1.1 302 Redirect
HTTP/1.1 302 Redirect
< Connection: Keep-Alive
Connection: Keep-Alive
< Content-Length: 0
Content-Length: 0
< Location: https://stor015.hec.lancs.ac.uk:1095/cephfs/grid/lsst/user/fabioh/tests/dir-vtz3iejc/
Location: https://stor015.hec.lancs.ac.uk:1095/cephfs/grid/lsst/user/fabioh/tests/dir-vtz3iejc/
 

DELETE /cephfs/grid/lsst/user/fabioh/tests/dir-vtz3iejc/ HTTP/1.1
User-Agent: curl/7.29.0
Host: stor015.hec.lancs.ac.uk:1095
Accept: /

< HTTP/1.1 500 Internal Server Error
HTTP/1.1 500 Internal Server Error
< Connection: Keep-Alive
Connection: Keep-Alive
< Server: XrootD/v5.5.0
Server: XrootD/v5.5.0
< Content-Length: 88
Content-Length: 88
 
<
{ [data not shown]
Unable to remove /cephfs/grid/lsst/user/fabioh/tests/dir-vtz3iejc/; directory not empty

`


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <xrootd/xrootd/issues/1896@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1896", "url": "https://github.com/xrootd/xrootd/issues/1896", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1