Title:
Setting a cookie to a non-simple value doesn't throw an error in scope-syntax
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Mingo Hagen / Mingo Hagen (Mingo Hagen)
Created: 07/27/2016
Components: Language
Versions: 2016,11.0
Failure Type: Usability Issue
Found In Build/Fixed In Build: Final / 314612
Priority/Frequency: Minor / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 0
Problem Description:
When setting a cookie to (for example) a struct-type variable using the cfcookie() / <cfcookie> syntax throws (as expected) an error, doing the same using scope-syntax doesn't. It sets it to "" (an empty string)
Steps to Reproduce:
component {
this.name = "acf-cookie";
cookie.test = { hello = "world" };
writeOutput( cookie.test );
}
Actual Result:
"" <-- an empty string
Expected Result:
The same error as for the cfcookie syntax: "Complex object types cannot be converted to simple values."
Any Workarounds:
n/a
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4176011
External Customer Info:
External Company:
External Customer Name: Mingo Hagen
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: