Project

General

Profile

Bug #1334

mod_webdav returns Not Implemented when DELETE fails on permissions error

Added by Anonymous over 9 years ago. Updated 10 months ago.

Status:
Obsolete
Priority:
Low
Assignee:
-
Category:
mod_webdav
Target version:
Start date:
Due date:
% Done:

0%

Missing in 1.5.x:
Yes

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
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 "
//W3C//DTD XHTML 1.0 Transitional//EN". "http://www.w3.org/TR/xhtm
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

History

#1 Updated by gstrauss 11 months ago

  • Description updated (diff)
  • Assignee deleted (jan)
  • Missing in 1.5.x set to Yes

fixed in lighttpd 1.4.40

#2 Updated by gstrauss 10 months ago

  • Status changed from New to Obsolete

Also available in: Atom