Title:
[Regression] File reference with cfm extension in cfclient device file APIs do not work for packaged application
| View in TrackerStatus/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
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: