You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Rick Strahl <rs...@west-wind.com> on 2001/12/30 06:23:26 UTC

mod_isapi/9314: ServerSupport function with HSE_REQ_MAP_URL_TO_PATH works incorrectly

>Number:         9314
>Category:       mod_isapi
>Synopsis:       ServerSupport function with HSE_REQ_MAP_URL_TO_PATH works incorrectly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Dec 29 21:30:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     rstrahl@west-wind.com
>Release:        1.3.22
>Organization:
apache
>Environment:
Windows 2000, SP2
>Description:
Using ISAPI ServerSupportFunction with the above constant works incorrectly if used in a virtual directory that is not located in the Apache root directory. It also returns the path with a stray slash at the end.

Example:

Assume I have a virtual mapped to d:\westwind\wconnect.

If I have a script that references /wconnect ServerSupoportFunction returns:

d:/program files/apache group/apache/htdocs/wconnect\

It should return:

d:/westwind/wconnect

Notice the stray backslash at the end. THe slash may be Ok but it should at least be the right slash. FWIW, IIS returns without a trailing backslash and IIS compatibility is probably what's important here so it can work on both platforms.
>How-To-Repeat:
ecb->ServerSupportFunction(ecb->ConnID,
   	               HSE_REQ_MAP_URL_TO_PATH,
			szBuffer,&dwBufferSize,&dwIgnored)
>Fix:
Man, this form is awful. It failed to submit and all the shit got lost. PLease, people - it's only HTML!!!
>Release-Note:
>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!     ]