Title:
cfoutput with attributecollection causes "cannot find encodefor key in structure" error
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): e-domizil License Team / e-domizil License Team (Alexander Hass)
Created: 05/04/2016
Components: Language, Functions
Versions: 2016
Failure Type: Crash
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: ALL / Win 2012 Server x64
Vote Count: 0
Problem Description:
May 4, 2016 15:36:30 PM Error [http-nio-8500-exec-4] - Cannot find encodefor key in structure.The specified key, encodefor, does not exist in the structure. The specific sequence of files included or processed is: C:\ColdFusion2016\cfusion\wwwroot\cfoutput\index.cfm, line: 10
Steps to Reproduce:
<cfset result = queryNew("id,name","Integer,Varchar",[{id=1,name="One"},{id=2,name="Two"},{id=3,name="Three"}]) />
<cfset params={query:'result'} />
<!--- this works --->
<cfoutput query="#params.query#">
#id# - #name#
</cfoutput>
<!--- this don't work --->
<cfoutput attributecollection="#params#">
#id# - #name#
</cfoutput>
Actual Result: Fail
Expected Result: No fail
Any Workarounds: Do not use attributecollection.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4148583
External Customer Info:
External Company:
External Customer Name: Firstname Lastname
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: