Title:
400 error thrown when attempting to call a module named 'bootstrap.cfm' (certain directories only)
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): Tim Parker / Tim Parker (Tim Parker)
Created: 07/12/2016
Components: Core Runtime
Versions: 2016
Failure Type: Crash
Found In Build/Fixed In Build: CF2016_Update1 /
Priority/Frequency: Major / Some users will encounter
Locale/System: ALL / Linux
Vote Count: 0
Problem Description: It seems that CF has an over-eager security test for certain modules named 'bootstrap.cfm' - see steps
Steps to Reproduce:
create the following directories:
resources
resources/code
create 'call-bootstrap.cfm' in the root directory
<cfinclude template="resources/code/bootstrap.cfm">
create 'bootstrap.cfm' in the resources/code directory
<cfoutput>got here at #Now()#<br /></cfoutput>
browse to call-bootstrap.cfm - 400 error
rename bootstrap.cfm to bootstrap2.cfm, update the CFInclude - code runs as expected
NOTE: this will be reproducible in some locations and not in others. In our case, the failure happens when 'call-bootstrap.cfm' is located in the /home/content/public/issues/customcf/rtk (a CF mapping exists to map "/" to "/home/content/public/", which is also the web server's document root) - but if we move this to another location, the problem goes away
We also put in a simple 'Application.cfm' (in the same directory as call-bootstrap.cfm, containing nothing more than a simple CFOutput) to ensure that the problem is not with our environment.
Actual Result:
Expected Result:
Any Workarounds:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4171993
External Customer Info:
External Company:
External Customer Name: Tim Parker
External Customer Email:
External Test Config: My Hardware and Environment details:
CFML Engine Version: ColdFusion Server 2016.0.02.299200 (Apache Tomcat/8.0.32)
JVM version: 1.8.0_92-b14 - [64 bits, Linux] - CentOS 7 with latest patches
JVM memory (MB): max:1974.5 total:1974.5 free:1467.3
CFML Engine Started: 2016-07-11 13:00:13.392 (running for 21 hours and 11 minutes)
Attachments:
Comments: