Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): / ext-user (Suchika Singh)
Created: 12/18/2014
Components: Document Management, PDF manipulation
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: 0
Problem:ISDDX does not trim the variable before validating.
Method:Run 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>
<cfset fileWrite(expandPath('./myDDX.ddx'), #myDDX#) />
<cfoutput>#isDDX("myDDX.ddx")#</cfoutput> // outputs as invalid because of the space.
<cfoutput>#isDDX("#trim(myDDX)#")#</cfoutput> //outputs as valid because we have trim the space
<cfoutput>#isDDX("#myDDX#")#</cfoutput> // outputs as invalid because of the space.
Result: Outputs a valid DDX as invalid
Expected:Should trim the variable and then validate.
Workaround: Use trim()
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3912078
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: