Search code examples
coldfusionwddxcoldfusion-2016

WDDX crashes on XML from DB (CF 2016)


When I query a DB table with an XML column

<cfquery name="qryData">
  DECLARE @data xml = '<ul class="xoxo"><li><span><b>Config</b> [<var>1</var>]:</span><code>compliance</code></li></ul>'

  SELECT @data AS Conf
</cfquery>

It crashed when converted to WDDX

<cfwddx action = "cfml2wddx" input = "#qryData#" output = "wddxText">

Adobe Bugbase: https://bugbase.adobe.com/index.cfm?event=bug&id=4152876

Is there a better workaround than Casting to varchar(max) ?


Solution

  • This issue was corrected with ColdFusion 2016 update 3

    https://helpx.adobe.com/coldfusion/kb/coldfusion-2016-update-3.html