tracker issue : CF-3129772

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

Application that runs on CF9 won't run on CF 10, can not find included file

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Andrew Scott / Andrew Scott (Andrew Scott)

Created: 03/04/2012

Components: Installation/Config, Connector

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Public Beta / 281867

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Win 2008 Server x64

Vote Count: 0

Problem Description:

When copying an Application that runs fine on CF9.01 on ColdFusion 10, the following error is displayed.

Not sure what has changed for this error to occur, but it works on CF9 and should work on CF10.

Could not find the included template ///system/includes/helpers/ApplicationHelper.cfm.

Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. Or, you can use per-application settings to specify mappings specific to this application by specifying a mappings struct to THIS.mappings in Application.cfc. 
Using relative paths (for example, template="index.cfm" or template="../index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible.
The error occurred in D:/Projects/ColdFusion/ColdBox31/system/FrameworkSupertype.cfc: line 437
Called from D:/Projects/ColdFusion/ColdBox31/system/FrameworkSupertype.cfc: line 368
Called from D:/Projects/ColdFusion/ColdBox31/system/EventHandler.cfc: line 65
Called from D:/Projects/ColdFusion/ColdBox31/system/web/services/HandlerService.cfc: line 71
Called from D:/Projects/ColdFusion/ColdBox31/system/web/services/HandlerService.cfc: line 133
Called from D:/Projects/ColdFusion/ColdBox31/system/web/Controller.cfc: line 494
Called from D:/Projects/ColdFusion/ColdBox31/system/Coldbox.cfc: line 74
Called from D:/Projects/ColdFusion/ line 52
435 : 	<!--- Include Facade --->
436 : 	<cffunction name="$include" access="public" hint="Facade for cfinclude" returntype="void" output="true">
437 : 		<cfargument name="template" type="string"><cfinclude template="#arguments.template#">
438 : 	</cffunction>
439 : 

Steps to Reproduce:

Actual Result:

Expected Result:

Any Workarounds:

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

Watson Bug ID:	3129772

External Customer Info:
External Company:  
External Customer Name: ascott67
External Customer Email:  
External Test Config: My Hardware and Environment details:



Btw this is a ColdBox application and the code that works in CF8, CF9 and Railo is var UDFFullPath = ExpandPath(arguments.udflibrary); var UDFRelativePath = ExpandPath("/" & arguments.udflibrary); /* Relative Checks First */ if( fileExists(UDFRelativePath) ){ $include("/#getController().getSetting("AppMapping")#/#arguments.udflibrary#"); } else if( fileExists(UDFRelativePath & ".cfc") ){ $include("/#getController().getSetting("AppMapping")#/#arguments.udflibrary#.cfc"); } else if( fileExists(UDFRelativePath & ".cfm") ){ $include("/#getController().getSetting("AppMapping")#/#arguments.udflibrary#.cfm"); } /* Absolute Checks */ else if( fileExists(UDFFullPath) ){ $include("#udflibrary#"); } else if( fileExists(UDFFullPath & ".cfc") ){ $include("#udflibrary#.cfc"); } else if( fileExists(UDFFullPath & ".cfm") ){ $include("#udflibrary#.cfm"); } else{ $throw(message="Error loading UDFLibraryFile: #arguments.udflibrary#", detail="The UDF library was not found. Please make sure you verify the file location.", type="FrameworkSupertype.UDFLibraryNotFoundException"); } <!--- Include Facade ---> <cffunction name="$include" access="public" hint="Facade for cfinclude" returntype="void" output="true"> <cfargument name="template" type="string"> <cfinclude template="#arguments.template#"> </cffunction>
Comment by External U.
20411 | March 04, 2012 01:29:44 PM GMT
Looks like it was not able to find the path ///system/includes/helpers/ApplicationHelper.cfm. Can you check whether this path exists. Also, let me know whether the /system is a mapping or a directory in webroot. I need this info to reproduce this bug. (Comment added from ex-user id:sagarg)
Comment by Adobe D.
20412 | March 05, 2012 11:33:46 PM GMT
The path exists, like I said it works in 9.01 its an application that is in production. /system is not a mapping it is a directory located in the web root. you can test this by creating a folder to mimic this and try to include as the code below does, that file it will fail when trying to load a path with /// in front of it. If that fails I will be happy to create a very basic ColdBox app with this setup, and send it in if need be.
Comment by External U.
20413 | March 06, 2012 01:01:38 AM GMT
I tried reproducing this by having /// instead of / in cfinclude. It was able to execute it correctly and no errors were reported. Can you please send me the application itself (to (Comment added from ex-user id:sagarg)
Comment by Adobe D.
20414 | March 06, 2012 01:54:03 AM GMT
btw when this is fixed, any chance of an update. As you can see I can not fully test any of my applications on CF10, until this is fixed. It is a blocker for me.
Comment by External U.
20415 | March 06, 2012 03:06:00 AM GMT
I haven't received the ColdBox application from you. Can you send it asap. (Comment added from ex-user id:sagarg)
Comment by Adobe D.
20416 | March 06, 2012 03:33:23 AM GMT
Have already mailed it, about 2 hours ago.
Comment by External U.
20417 | March 06, 2012 03:56:58 AM GMT