Ticket #1334 (new defect)

Opened 12 months ago

mod_webdav returns Not Implemented when DELETE fails on permissions error

Reported by: anthony@… Owned by: jan
Priority: low Milestone: 1.5.0
Component: mod_webdav Version: 1.4.17
Severity: normal Keywords:
Cc: Blocked By:
Need User Feedback: no Blocking:

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....<?xml version="1.0" encoding="iso-8859-1"?>.<!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?

Attachments

Add/Change #1334 (mod_webdav returns Not Implemented when DELETE fails on permissions error)

Author



Change Properties
<Author field>
Action
as new
 
Note: See TracTickets for help on using tickets.