Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 8226 invoked from network); 13 Feb 2007 19:38:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2007 19:38:26 -0000 Received: (qmail 29735 invoked by uid 500); 13 Feb 2007 19:38:30 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 29663 invoked by uid 500); 13 Feb 2007 19:38:30 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 29651 invoked by uid 99); 13 Feb 2007 19:38:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 11:38:30 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.93.240.135] (HELO Mail.MeepZor.Info) (66.93.240.135) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 11:38:19 -0800 Received: by Mail.MeepZor.Info (Postfix, from userid 506) id 6019C42DD3; Tue, 13 Feb 2007 14:37:58 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on Bromine.MeepZor.Com X-Spam-Level: Received: from [127.0.0.1] (dsl093-240-231.ral1.dsl.speakeasy.net [66.93.240.231]) by Mail.MeepZor.Info (Postfix) with ESMTP id E4B4A42DD3; Tue, 13 Feb 2007 14:37:57 -0500 (EST) Message-ID: <45D21397.3010800@Golux.Com> Date: Tue, 13 Feb 2007 14:37:59 -0500 From: Rodent of Unusual Size Reply-To: coar@apache.org Organization: The Apache Software Foundation; Open Source Initiative User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Apache httpd developers Subject: Enabling arbitrary/unregistered methods for 2.0 X-Enigmail-Version: 0.94.1.2 Content-Type: multipart/mixed; boundary="------------020904070905060705030907" X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-4.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.1 This is a multi-part message in MIME format. --------------020904070905060705030907 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Here's a patch to allow the Script directive to handle arbitrary (e.g., site-specific or experimental) methods. Current 2.0 behaviour is 'if it's not something hard-coded into me, it's rubbish and gets tossed.' I notice that this functionality already exists in trunk, so this is essentially a feature^Woversight-correction backport. As to why I came across this.. I think there's a bug in PUT handling on 2.0. Trying to track it down.. -- #ken P-)} Ken Coar, Sanagendamgagwedweinini http://Ken.Coar.Org/ Author, developer, opinionist http://Apache-Server.Com/ "Millennium hand and shrimp!" --------------020904070905060705030907 Content-Type: text/plain; name="script-method.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="script-method.patch" Index: mod_actions.c =================================================================== --- mod_actions.c (revision 507150) +++ mod_actions.c (working copy) @@ -103,12 +103,13 @@ int methnum; methnum = ap_method_number_of(method); - if (methnum == M_TRACE) + if (methnum == M_TRACE) { return "TRACE not allowed for Script"; - else if (methnum == M_INVALID) - return "Unknown method type for Script"; - else - m->scripted[methnum] = script; + } + else if (methnum == M_INVALID) { + methnum = ap_method_register(cmd->pool, method); + } + m->scripted[methnum] = script; m->configured = 1; return NULL; --------------020904070905060705030907--