Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): Dave Ferguson / Dave Ferguson (Dave Ferguson)
Created: 05/30/2016
Components: Language
Versions: 10.0
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Normal / Some users will encounter
Locale/System: ALL / Platforms All
Vote Count: 0
I discovered this when porting my blog (running blogcfc) from CF9 to CF2016.
In blog.cfc in blogcfc around line 1534 there is this line of code that worked fine in CF9
<cfset querySetCell(getEm,"categories", catData, currentRow)>
The var "catData" is a struct set earlier. In CF 9 this was perfectly acceptable and when eventually dumping the "getem" query you can actually see the struct in the cell.
In CF 2016 this same code throws this error:
invalid data {5E684C7C-028C-BEB4-E67E4E7DC72E8AAD={CF2016},5E978CDE-0CF1-148F-39EAA5AF37E00DED={API Manager}} for CFSQLTYPE CF_SQL_VARCHAR.
It would appear that CF is trying to convert the struct to json but it is failing along the way somewhere.
To fix the code I had to change that previously mentioned line to:
<cfset querySetCell(getEm,"categories",SerializeJSON(catData),currentRow)>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4159130
External Customer Info:
External Company:
External Customer Name: Dave Ferguson
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: