You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Brian Lloyd <br...@digicool.com> on 1999/05/28 17:20:14 UTC
mod_cgi/4490: mod_cgi prevents handling of OPTIONS requests
>Number: 4490
>Category: mod_cgi
>Synopsis: mod_cgi prevents handling of OPTIONS requests
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache
>State: open
>Class: change-request
>Submitter-Id: apache
>Arrival-Date: Fri May 28 08:30:00 PDT 1999
>Last-Modified:
>Originator: brian@digicool.com
>Organization:
apache
>Release: 1.3.6
>Environment:
All
>Description:
The current mod_cgi prevents back-end systems (such as
application servers) from handling OPTIONS requests. This
effectively prevents any back-end system (accessed via
cgi) from supporting WebDAV, because DAV clients use an
OPTIONS request to determine DAV support by a given resource.
I've sent along a patch that allows cgis to handle OPTIONS.
The patch is tested and running on our internal servers.
If I can answer any questions or elaborate on the problem,
please get in touch w/me:
Brian Lloyd brian@digicool.com
Software Engineer 540.371.6909
Digital Creations http://www.digicool.com
>How-To-Repeat:
>Fix:
*** ./mod_cgi.c Wed Apr 7 10:40:47 1999
--- ../mod_cgi.c Mon Mar 22 09:54:21 1999
***************
*** 361,373 ****
struct cgi_child_stuff cld;
- if (r->method_number == M_OPTIONS) {
- /* 99 out of 100 CGI scripts, this is all they support */
- r->allowed |= (1 << M_GET);
- r->allowed |= (1 << M_POST);
- return DECLINED;
- }
-
if ((argv0 = strrchr(r->filename, '/')) != NULL)
argv0++;
else
--- 361,366 ----
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]