Title:
[ANeff] Bug for: cfpdf read=>setinfo=>getinfo throws PDFInvalidSourceException
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 09/08/2015
Components: Document Management
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / Some users will encounter
Locale/System: English / Win All
Vote Count: 0
cfpdf action="read" followed by action="setinfo" followed by action="getinfo" throws PDFInvalidSourceException
Repro:
This works b/c no action="read" (outputs "MyTitle"):
<cfdocument format="pdf" name="myPDF">my page</cfdocument>
<cfpdf action="setinfo" source="myPDF" info="#{title='MyTitle'}#">
<cfpdf action="getinfo" source="myPDF" name="myPDFInfo">
<cfdump var="#myPDFInfo.title#">
This works b/c no action="setinfo" (outputs "[empty string]"):
<cfdocument format="pdf" filename="#expandPath('./MyPDF.pdf')#" overwrite="true">my page</cfdocument>
<cfpdf action="read" source="#expandPath('./MyPDF.pdf')#" name="myPDF">
<cfpdf action="getinfo" source="myPDF" name="myPDFInfo">
<cfdump var="#myPDFInfo.title#">
This fails b/c action="read" followed by action="setinfo"
<cfdocument format="pdf" filename="#expandPath('./MyPDF.pdf')#" overwrite="true">my page</cfdocument>
<cfpdf action="read" source="#expandPath('./MyPDF.pdf')#" name="myPDF">
<cfpdf action="setinfo" source="myPDF" info="#{title='my title'}#">
<cfpdf action="getinfo" source="myPDF" name="myPDFInfo">
<cfdump var="#myPDFInfo.title#">
Actual result: "PDFInvalidSourceException: Opetation could not be completed." "Cause: An error occurred while reading source for the cfpdf tag."
Expected result: "my title" output
Two bugs:
1) In the error message, "Opetation" should be "Operation"
2) PDFInvalidSourceException should not be thrown
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4051090
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: