Bug 54915 - GET on a WebDAV-enabled collection, with DirectoryIndex disabled, returns 404
Summary: GET on a WebDAV-enabled collection, with DirectoryIndex disabled, returns 404
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_dav (show other bugs)
Version: 2.5-HEAD
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-30 22:41 UTC by Wim Lewis
Modified: 2013-04-30 22:41 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wim Lewis 2013-04-30 22:41:37 UTC
If DirectoryIndex is disabled (see bug #54914), Apache incorrectly returns 404 for collection URLs. A more appropriate response would be "405 Method Not Allowed", since the resource does exist and can be examined and manipulated with DAV methods like PROPFIND, DELETE, MOVE, etc.

(Actually, with mod_dir loaded but DirectoryIndex disabled, a GET on /blah/blah/somedir returns a 301 redirect to /blah/blah/somedir/ , but a subsequent GET on /blah/blah/somedir/ returns 404, which just seems perverse.)

Behavior is the same in 2.4.4 and in 2.5.0-dev r1477687.