Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Mary Jo Sminkey / Mary Jo Sminkey (Mary Jo Sminkey)
Created: 02/19/2014
Components: AJAX
Versions: 10.0
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: Final /
Priority/Frequency: Minor / Few users will encounter
Locale/System: English / Platforms All
Vote Count: 0
Problem Description: ColdFusion returned a value from a query as a number that should be been treated as a string. Causing a JSON parsing error.
Steps to Reproduce: We had a column set as a char that includes string values. When we had a value of '1409315D' in this column being returned in a recordset with trailing spaces due to being a char, CF returned it without quotes, treating it as a numeric value instead and causing a parse issue. A similar test value of 10009290R did not have the same issue. Also if we add code to trim trailing spaces it did not behave this way.
Actual Result: \"DATA\":[[1409315D ,\"Test Product\"]]"
Expected Result: \"DATA\":[[\"1409315D \",\"Test Product\"]]"
Any Workarounds: It seems to behave okay if the spaces are trimmed. However considerable amount of time was spent in debugging this issue so should be corrected.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3710273
Deployment Phase: Release Candidate
External Customer Info:
External Company:
External Customer Name: MaryJo
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: