Title:
When we define a variable using cfsavecontent it adds a newline to the variable along with the content.
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): / ext-user (Suchika Singh)
Created: 12/18/2014
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: 11.0.03.292643 /
Priority/Frequency: Normal / Some users will encounter
Locale/System: English / Win XP All
Vote Count: 1
Problem:When we define a variable using cfsavecontent it adds a newline to the variable along with the content.
Method:Use the following code:
<cfsavecontent variable="myDDX">
<?xml version="1.0" encoding="UTF-8"?>
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd">
<PDF result="pdfOut">
<PageSize width="2in" height="2in" scaleUp="true" />
<PDF source="pdfIn" />
</PDF>
</DDX>
</cfsavecontent>
<cfdump var="#myDDX#">
<cfset fileWrite(expandPath('./myDDX.ddx'), #myDDX#) />
Result:Check the file 'myDDX.ddx' it has a one line space as a result ISDDX for the variable is failing.
Expected:No space should be added
Workaround:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3912073
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: