Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): j harb / j harb (muausul)
Created: 08/30/2012
Components: Language
Versions: 9.0
Failure Type: Data Corruption
Found In Build/Fixed In Build: 9.0 / CF10_Update14
Priority/Frequency: Critical / All users will encounter
Locale/System: English / Windows 7 64-bit
Vote Count: 0
Problem Description: I have a simple function that is set for remote access and returnformat of JSON. It will format certain strings incorrectly. To me it looks like it's trying to convert my string to a number. I have only noticed this so far if there is a string of numbers with a D and a space on the end of the string. I have itemcodes that look like this which is where I found the problem. If I use another character such as a C or remove the spaces at the end it works. I am running Coldfusion 9,0,0,251028 and 9,0,2,282541
Steps to Reproduce:
<cffunction name="getItemTest" access="remote" returnformat="JSON">
<cfset testItem = {
itemCode = "85210015205D "
}>
<cfreturn testItem>
</cffunction>
Actual Result:
on version 9,0,0,251028 I get as a result: {"ITEMCODE":8.5210015205E10}
on version 9,0,2,282541 I get as a result: {"ITEMCODE":85210015205D }
Expected Result:
{"ITEMCODE":"85210015205D "}
Any Workarounds:
Removing the trailing spaces or having the last character not be D seems to work.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3321476
Deployment Phase: Release Candidate
Keywords:
FixTested
External Customer Info:
External Company:
External Customer Name: muausul
External Customer Email:
External Test Config: My Hardware and Environment details:
Developer:
Windows 7 64 bit
ColdFusion 9,0,2,282541
Java Version 1.6.0_29
Server:
Windows 2003
ColdFusion Standard 9,0,0,251028
Java Version 1.6.0_14
Attachments:
Comments: