www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Lloyd <br...@digicool.com>
Subject mod_cgi/4490: mod_cgi prevents handling of OPTIONS requests
Date Fri, 28 May 1999 15:20:14 GMT

>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
>Originator:     brian@digicool.com
>Release:        1.3.6
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 

*** ./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)
--- 361,366 ----
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@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!     ]

View raw message