Title:
Incorrect behaviour of SerializeJSON() on strings that contain U+xxxx in CF10 Update 15
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Jonas Meller / Jonas Meller (Jonas Meller)
Created: 02/17/2015
Components: Language, Serialization
Versions: 10.0
Failure Type: Data Corruption
Found In Build/Fixed In Build: Final / CF11 Update7,CF10 Update18
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Windows 7 SP1 64-bit
Vote Count: 9
Problem Description:
Incorrect behaviour of SerializeJSON() on strings that contain U+xxxx in CF10 Update 15. It worked correctly in CF10 Update 13.
Steps to Reproduce:
<cfset input = "xU+a600x" />
<cfoutput>
SerializeJSON("#input#") = #SerializeJSON(input)#
DESerializeJSON(#SerializeJSON(input)#) = #DESerializeJSON(SerializeJSON(input))#
</cfoutput>
Actual Result:
SerializeJSON("xU+a600x") = "x\ua600x"
DESerializeJSON("x\ua600x") = x?x
Expected Result:
SerializeJSON("xU+a600x") = "xU+a600x"
DESerializeJSON("xU+a600x") = xU+a600x
Any Workarounds:
Write your own serialization code. Adobe will clearly never get it right.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3941059
External Customer Info:
External Company:
External Customer Name: Jonas
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: