Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Unable to DELETE non-empty directory #26

Open
vokac opened this issue Jun 20, 2020 · 2 comments
Open

Unable to DELETE non-empty directory #26

vokac opened this issue Jun 20, 2020 · 2 comments

Comments

@vokac
Copy link

vokac commented Jun 20, 2020

It is not possible to delete directories that contains some files, e.g.

curl -v --capath /etc/grid-security/certificates -L -X PUT -H "Authorization: Bearer $TOKEN" --upload-file /etc/services https://red-gridftp12.unl.edu:1094/user/dteam/TEST/a
curl -v --capath /etc/grid-security/certificates -L -X DELETE -H "Authorization: Bearer $TOKEN" https://red-gridftp12.unl.edu:1094/user/dteam/TEST

Attempt to delete non-empty directory fails with error message

< HTTP/1.1 500 Internal Server Error
< Connection: Keep-Alive
< Content-Length: 53
< 
Unable to remove /user/dteam/TEST; unknown error 255

Deleting empty directory is works fine, but DELETE normally recursively delete everything

curl -v --capath /etc/grid-security/certificates -L -X DELETE -H "Authorization: Bearer $TOKEN" https://red-gridftp12.unl.edu:1094/user/dteam/TEST/a
curl -v --capath /etc/grid-security/certificates -L -X DELETE -H "Authorization: Bearer $TOKEN" https://red-gridftp12.unl.edu:1094/user/dteam/TEST
@djw8605
Copy link
Contributor

djw8605 commented Jun 20, 2020

I will check with the XRootD developers. This may be something being lost in translation.

@djw8605
Copy link
Contributor

djw8605 commented Jun 22, 2020

I made an issue over on the main XRootD project: xrootd/xrootd#1222

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants