tracker issue : CF-4158660

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: incorrect deserialization of WDDX'd bit column

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 05/28/2016

Components: 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

Listed in the version 2016.0.03.300466 Issues Fixed doc
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:

This issue is resolved now. The fix for this issue will be available as part of upcoming update of ColdFusion.
Comment by Nimit S.
2609 | August 08, 2016 01:56:55 AM GMT