Bug 54915

Summary: GET on a WebDAV-enabled collection, with DirectoryIndex disabled, returns 404
Product: Apache httpd-2 Reporter: Wim Lewis <wiml>
Component: mod_davAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: All   

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.