BytemarkHosting / docker-webdav

Docker image for running an Apache WebDAV server
MIT License
350 stars 166 forks source link

Unable to delete locked file #22

Open Chebura opened 4 years ago

Chebura commented 4 years ago

Hi, I try to delete locked file with actual lock token and receive: Status code: 424, description: Failed Dependency

server log: 172.17.0.1 - - [21/Apr/2020:13:05:34 +0000] "LOCK /logs/hello3.txt HTTP/1.1" 401 381 "-" "NAX/1.0" 172.17.0.1 - alice [21/Apr/2020:13:05:34 +0000] "LOCK /logs/hello3.txt HTTP/1.1" 200 372 "-" "NAX/1.0" 172.17.0.1 - - [21/Apr/2020:13:05:34 +0000] "DELETE /logs/hello3.txt HTTP/1.1" 401 381 "-" "NAX/1.0" 172.17.0.1 - alice [21/Apr/2020:13:05:34 +0000] "DELETE /logs/hello3.txt HTTP/1.1" 424 572 "-" "NAX/1.0" [Tue Apr 21 13:05:34.575278 2020] [dav:error] [pid 11:tid 139649092442856] [client 172.17.0.1:36712] Could not DELETE /logs/hello3.txt due to a failed precondition (e.g. locks). [424, #0] [Tue Apr 21 13:05:34.575327 2020] [dav:error] [pid 11:tid 139649092442856] [client 172.17.0.1:36712] An error occurred on another resource, preventing the requested operation on this resource. [424, #0]

Same operation works done with another WebDav server (IIS WebDAV). Server works within docker with default settings.