Ticket #349 (closed defect: fixed)

Opened 17 years ago

Last modified 16 years ago

Bug with SesUrlManager.cfc due to Apache and IIS reporting cgi params differently

Reported by: gcole Owned by:
Priority: normal Milestone:
Version: 3.0.178 Severity: normal
Keywords: Cc:

Description

Apache and IIS report the cgi.PATH_INFO parameter differently.

Using SES urls, in IIS a call to www.mydomain.com/myapp/ will result in the SesUrlManager?.cfc generating an event called 'myapp'. This will cause an error unless a 'myapp' event has been defined.

To fix, replace

            <cfif structKeyExists(arguments, "mockCgiScope")>

                      <cfset pathArray = listToArray(arguments.mockCgiScope.PATH_INFO, "/") />

            <cfelse>

                      <cfset pathArray = listToArray(cgi.PATH_INFO, "/") />

            </cfif>

with

            <cfif structKeyExists(arguments, "mockCgiScope")>

                        <cfset pathArray = listToArray(arguments.mockCgiScope.PATH_INFO, "/") />

            <cfelse>

                        <cfif cgi.PATH_INFO NEQ cgi.SCRIPT_NAME>

                                    <cfset pathArray = listToArray(cgi.PATH_INFO, "/") />

                        <cfelse>

                                    <cfset pathArray = arrayNew(1) />

                        </cfif>

            </cfif>

Change History

Changed 17 years ago by DanWilson

  • status changed from new to closed
  • resolution set to fixed

Implemented in Release Candidate Build. Thanks GCole for patch.

Changed 16 years ago by cfgrok

  • milestone User Reported Issues (with full information) deleted

Milestone User Reported Issues (with full information) deleted

Note: See TracTickets for help on using tickets.