Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 09/15/2015
Components: Document Management
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Win XP All
Vote Count: 0
Two issues:
1) isDDX(myDDXVar) always returns NO for valid DDX. It should return YES
2) <cfpdf action="processddx"..> auto-trims DDX (but isDDX() doesn't). There should be consistency.
Repro:
<cfdocument format="pdf" filename="#expandPath('./pdfIn.pdf')#" overwrite="true"><cfoutput>#now()#</cfoutput></cfdocument>
<cfsavecontent variable="myDDX1">
<?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>
<cfpdf action="processddx" ddxfile="#myDDX1#" inputfiles="#{pdfIn=expandPath('./pdfIn.pdf')}#" outputfiles="#{pdfOut=expandPath('./myPDF1.pdf')}#" name="myDDXResult1">
<cfset fileWrite(expandPath('./myDDX1.ddx'), myDDX1)>
<cfoutput>#isDDX(myDDX1)# #isDDX("myDDX1.ddx")# #myDDXResult1.pdfOut#</cfoutput>
<cfsavecontent variable="myDDX2">
<?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>
<cfpdf action="processddx" ddxfile="#myDDX2#" inputfiles="#{pdfIn=expandPath('./pdfIn.pdf')}#" outputfiles="#{pdfOut=expandPath('./myPDF2.pdf')}#" name="myDDXResult2">
<cfset fileWrite(expandPath('./myDDX2.ddx'), myDDX2)>
<cfoutput>#isDDX(myDDX2)# #isDDX("myDDX2.ddx")# #myDDXResult2.pdfOut#</cfoutput>
<cfxml variable="myDDX3">
<?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>
</cfxml>
<cfpdf action="processddx" ddxfile="#myDDX3#" inputfiles="#{pdfIn=expandPath('./pdfIn.pdf')}#" outputfiles="#{pdfOut=expandPath('./myPDF3.pdf')}#" name="myDDXResult3">
<cfset fileWrite(expandPath('./myDDX3.ddx'), myDDX3)>
<cfoutput>#isDDX(myDDX3)# #isDDX("myDDX3.ddx")# #myDDXResult3.pdfOut#</cfoutput>
<cfxml variable="myDDX4">
<?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></cfxml>
<cfpdf action="processddx" ddxfile="#myDDX4#" inputfiles="#{pdfIn=expandPath('./pdfIn.pdf')}#" outputfiles="#{pdfOut=expandPath('./myPDF4.pdf')}#" name="myDDXResult4">
<cfset fileWrite(expandPath('./myDDX4.ddx'), myDDX4)>
<cfoutput>#isDDX(myDDX4)# #isDDX("myDDX4.ddx")# #myDDXResult4.pdfOut#</cfoutput>
Actual result: NO NO successful NO NO successful NO YES successful NO YES successful
Expected result: Consistency, so either:
1) Expected result: NO NO failed NO NO failed YES YES successful YES YES successful
-or-
2) Expected result: YES YES successful YES YES successful YES YES successful YES YES successful
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4056840
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email:
External Test Config: Verified in ColdFusion 11 Update 5 (build 11,0,05,293506).
Attachments:
Comments: