tracker issue : CF-3859257

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

[Regression] File reference with cfm extension in cfclient device file APIs do not work for packaged application

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Akhila K Srinivas)

Created: 11/28/2014

Components: Mobile Support, Language Syntax

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: 292397 / CF11 Update5

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Win All

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Problem: If device file APIs are having file names with "cfm" extension as input parameters, the code works as shell application. But this breaks in packaged code, since "cfm" gets converted to "html" in packaging flow and resulting code is not what would have been expected.  Results in rendering a blank page .


This was working before.

Test code to repro :

<br><cfoutput>Test case </cfoutput><br>
<!--- Positive case - To create a file with different extension - .cfm  --->
<cfif cfclient.file.exists('second.cfm')>
	<cfset cfclient.file.remove('second.cfm')>
</cfif>
<cfset cfclient.file.write('second.cfm','Hello there!!!')>
<cfif cfclient.file.read('second.cfm') eq "Hello there!!!">
	<br><cfoutput>Passed!!</cfoutput>
</cfif> 

	<cfset cfclient.file.remove('second.cfm')>
<br><cfoutput>End of test case - 2</cfoutput><br>

Method:

Result:

Expected:

Workaround:

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

Watson Bug ID:	3859257

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

When replacing the cfm to html, we were not getting all substrings between quotets. (If there are escaped quotes.). Fixed the issue by adding a new function which also considers escaped quotes when getting substrings.
Comment by Paul N.
9914 | December 03, 2014 11:18:22 PM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
9915 | February 20, 2015 09:28:16 AM GMT