Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 05/28/2016
Components: Language, Serialization
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 1
incorrect deserialization of WDDX'd bit column
Steps to reproduce:
1) Run this code in CF10, CF11 and CF2016:
<!--- integer works in CF10, CF11 and CF2016 --->
<cfset q1 = queryNew("myColumn", "integer", [[1]])>
<cfset queryAddRow(q1)>
<cfwddx action="cfml2wddx" input="#q1#" output="qWDDX">
<cfwddx action="wddx2cfml" input="#qWDDX#" output="q2">
<cfdump var="#q2#">
<!--- double works in CF10, CF11 and CF2016 --->
<cfset q1 = queryNew("myColumn", "double", [[1.1]])>
<cfset queryAddRow(q1)>
<cfwddx action="cfml2wddx" input="#q1#" output="qWDDX">
<cfwddx action="wddx2cfml" input="#qWDDX#" output="q2">
<cfdump var="#q2#">
<!--- timestamp works in CF10, CF11 and CF2016 --->
<cfset q1 = queryNew("myColumn", "timestamp", [[now()]])>
<cfset queryAddRow(q1)>
<cfwddx action="cfml2wddx" input="#q1#" output="qWDDX">
<cfwddx action="wddx2cfml" input="#qWDDX#" output="q2">
<cfdump var="#q2#">
<!--- bit fails in CF10, CF11 and CF2016 --->
<cfset q1 = queryNew("myColumn", "bit", [[true]])>
<cfset queryAddRow(q1)>
<cfwddx action="cfml2wddx" input="#q1#" output="qWDDX">
<cfwddx action="wddx2cfml" input="#qWDDX#" output="q2">
<cfdump var="#q2#">
Actual result: Deserialization of integer, double and timestamp columns works in CF10/CF11/CF2016 (good). But deserialization of bit column fails in CF10/CF11/CF2016 w/ error "cannot convert the value "''" to a boolean" (bad).
Expected result: Deserialization of columns should always work.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4158660
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email:
Attachments:
Comments: