Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 19484 invoked from network); 27 Jan 2009 23:17:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jan 2009 23:17:12 -0000 Received: (qmail 85616 invoked by uid 500); 27 Jan 2009 23:17:11 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 85585 invoked by uid 500); 27 Jan 2009 23:17:11 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 85572 invoked by uid 99); 27 Jan 2009 23:17:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jan 2009 15:17:11 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jan 2009 23:17:09 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 60742234C48C; Tue, 27 Jan 2009 15:16:48 -0800 (PST) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 46615] New: Apache returns 501 on unknown method; can't guarantee this is correct X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: Core X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: geoffers+asfbug@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 27 Jan 2009 15:16:48 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=46615 Summary: Apache returns 501 on unknown method; can't guarantee this is correct Product: Apache httpd-2 Version: 2.2.9 Platform: Macintosh OS/Version: Mac OS X 10.4 Status: NEW Severity: normal Priority: P2 Component: Core AssignedTo: bugs@httpd.apache.org ReportedBy: geoffers+asfbug@gmail.com When there is any CGI scripts, or modules loaded, Apache's current behaviour of returning 501 on an unknown method goes against the definition of the status code in RFC2616. This is because the server might support the method on some resource which is accessed by the CGI/module. To quote the 501 status code definition: "The server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource." While none of this is normative, the latter sentence makes this behaviour incorrect for Apache. I might have a CGI/module accessed resource which can support the method, even if Apache itself, serving static files, cannot. I would suggest using "405 Method Not Allowed", but I realize that this requires sending an Allow header, which may not be possible. To re-create: access any resource served by Apache directly (and not via a module or CGI script) using the method "foo" and view the status code. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org