tracker issue : CF-3305486

select a category, or use search below
(searches all categories and all time range)
Title:

CGI.path_info is coming as empty string when url rewrite condition uses {PATH_INFO} in IIS

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Evelin Varghese)

Created: 08/08/2012

Components: Installation/Config, Connector

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: 10-final / 282710

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Mac 10 All,Win XP All

Vote Count: 0

Problem:CGI.path_info is coming as empty string when url rewrite condition uses {PATH_INFO} in IIS

Method:

Configure connector with IIS site.
Install url-rewrite module for IIS.
Add inbound rule with following settings-
      REuqested URL:  Mathces Pattern-
      Using: Regular Expressions
     Pattern: [a-z]

   Action Type: Rewrite
   Rewrite URL: /bug/index.cfm{PATH_INFO}

In the webroot of the iis site create a directory named bug and add an index.cfm with code 
<cfdump var="#CGI.PATH_INFO#">

now access the following url
http://<serverip>:<port>/var12/var34



Result:
CGI.PATH_INFO is empty string 

Expected:
CGI.PATH_INFO should be var12/var34

Workaround:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3305486

Keywords:
FixTested


External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

Here is a workaround. Use URL variables instead. Requested URL: Matches the Pattern Using: Regular Expressions Pattern: ^([^/]+)/([^/]+) Action type: Rewrite Rewrite URL: /bug/index.cfm?v1={R:1}&v2={R:2}
Comment by External U.
18591 | August 09, 2012 11:16:52 PM GMT
I've verified ColdFusion 10 Update 1's isapi_redirect.dll fix works properly and CGI.PATH_INFO correctly returns the {PATH_INFO} from the IIS Rewrite Rule. Very cool!
Comment by External U.
18592 | September 22, 2012 12:03:37 AM GMT