Bug #1334
closedmod_webdav returns Not Implemented when DELETE fails on permissions error
Description
When trying to delete a file using the webdav DELETE command, lighttpd returns Not Implemented if it can't delete the file due to incorrect permissions on the file.
When permissions are corrected, it behaves properly and returns a No Data status code.
Here is the capture of the exchange:
########
T client.ip:62652 -> server.ip:1715 AP
DELETE /archive/509/15/43/file.txt HTTP/1.1..TE: deflate,gzip;q=0.3..Connection: TE, close..Authorization: Basic YXJjaGasdadsfgsdfjsadfwtgwgfsdfafsdfsfcndz..Host: server.host:1715..User-Agent: DAV.pm/v0.31..Content-Length: 0....
########
T server.ip:1715 > client.ip:62652 AP//W3C//DTD XHTML 1.0 Transitional//EN". "http://www.w3.org/TR/xhtm
HTTP/1.1 501 Not Implemented..Connection: close..Content-Type: text/html..Content-Length: 357..Date: Sun, 02 Sep 2007 21:56:35 GMT..Server: lighttp
d.....<DOCTYPE html PUBLIC "
l1/DTD/xhtml1-transitional.dtd">.<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">. <head>. <title>501 - Not Implemented</title>
. </head>. <body>. <h1>501 - Not Implemented</h1>. </body>.</html>.
########
According to http://www.webdav.org/specs/rfc2518.html#METHOD_DELETE we should probably return something else for this error, maybe a 403?
-- anthony
Updated by gstrauss over 8 years ago
- Description updated (diff)
- Assignee deleted (
jan) - Missing in 1.5.x set to Yes
fixed in lighttpd 1.4.40
Also available in: Atom