Status/Resolution/Reason: Closed/Withdrawn/Duplicate
Reporter/Name(from Bugbase): Peter Boughton / Peter Boughton (Peter Boughton)
Created: 10/08/2014
Components: Language
Versions: 11.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Critical / All users will encounter
Locale/System: ALL / Platforms All
Vote Count: 0
Duplicate ID: CF-3760802
Problem Description:
================
A cflocation in Application.cfc throws an error instead of relocating.
Steps to Reproduce:
================
Create an Application.cfc as follows:
<cfcomponent output=false >
<cfsetting enablecfoutputonly=true showdebugoutput=false />
<cfscript>
This.Name = "Enterprise_" & hash(getCurrentTemplatePath());
switchClientApplication("Enterprise");
</cfscript>
<cffunction name="switchClientApplication" returntype="void" output="false" access="private">
<cfargument name="SysName" type="String" required=true />
<!--- [client detection here] --->
<cfif true >
<!--- No Client var, redirect to Home to login. --->
<cflocation url="/home" />
</cfif>
</cffunction>
<!--- [rest of App.cfc] --->
</cfcomponent>
Actual Result:
===========
An error is thrown:
Could not process Application.cfc successfully for template <path>/index.cfm.
The error occurred in <path>/Application.cfc: line 18
Called from <path>/Application.cfc: line 7
Called from <path>/Application.cfc: line 18
Called from <path>/Application.cfc: line 7
16 : <cfif true >
17 : <!--- No Client var, redirect to Home to login. --->
18 : <cflocation url="/home" />
19 : </cfif>
Expected Result:
=============
It should do the redirect, like it does in CF10 and Railo 4.
Any Workarounds:
==============
None.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3836336
External Customer Info:
External Company:
External Customer Name: boughtonp
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: