Status/Resolution/Reason: To Fix//BugVerified
Reporter/Name(from Bugbase): David R. / ()
Created: 02/11/2020
Components: Language, CF Component
Versions: 2016,2018
Failure Type: Non Functioning
Found In Build/Fixed In Build: CF2018 Update 7 /
Priority/Frequency: Normal / Unknown
Locale/System: / Windows 10 64 bit
Vote Count: 0
Problem Description:
Application.cfc will not recursively resolve cfincludes from outside its residence directory
Steps to Reproduce (psuedo-terminal code):
mkdir project_root
cd project_root
echo "<cfinclude template='./include2.cfm'>" > include1.cfm
touch include2.cfm
mkdir some_app
cd some_app
echo "<cfinclude template='../include1.cfm'>" > application.XCFM
echo "<cfcomponent><cfinclude template='../include1.cfm'></cfcomponent>" > Application.XCFC
echo "hello world" > index.cfm
Actual Result:
rename application.XCFM to application.CFM, navigate to project_root/some_app/index.cfm and see that it works
revert application.CFM to application.XCFM
rename Application.XCFC to Application.CFC, navigate to project_root/some_app/index.cfm and see that it fails to resolve include2.cfm
Expected Result:
With either an application.CFM or Application.CFC the cfincludes should resolve, but Application.cfc fails
Any Workarounds:
Unknown at this time
Note:
The includes in the CFC __WILL__ resolve if in any component other than Application.cfc
Attachments:
Comments: