Status/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 03/09/2016
Components: Document Management
Versions: 2016
Failure Type: Enhancement Request
Found In Build/Fixed In Build: Alpha_v12 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 0
Currently, cfpdfparam(description="" and cfpdfparam(description=" " throw "The attribute description specified in the CFPDFPARAM tag is either empty or invalid."
Issue: If the description attribute is omitted, then Adobe Acrobat/Reader displays "null" for the description.
Suggestion: It would be nicer (IMO) if we could prevent the "null" from appearing in Acrobat/Reader, by being able to set the cfpdfparam description to an empty string.
Repro:
<cfscript>
cfdocument(format="pdf", filename=expandPath('./MyPDF.pdf'), overwrite=true) {writeOutput("my PDF");};
cfdocument(format="pdf", filename=expandPath('./MyPDFAttachment.pdf'), overwrite=true) {writeOutput("my PDF attachment");};
cfpdf(action="addattachments", source=expandPath('./MyPDF.pdf'), destination=expandPath("./MyPDFWithAttachments.pdf"), overwrite=true) {
cfpdfparam(source=expandPath('./MyPDFAttachment.pdf'), filename="MyPDFAttachment.pdf", encoding="UTF-8", description="") {};//throws: coldfusion.tagext.lang.PDFParamTag$EmptyAttributeException: The attribute description specified in the CFPDFPARAM tag is either empty or invalid.
};
cfdocument(format="pdf", filename=expandPath('./MyPDF.pdf'), overwrite=true) {writeOutput("my PDF");};
cfdocument(format="pdf", filename=expandPath('./MyPDFAttachment.pdf'), overwrite=true) {writeOutput("my PDF attachment");};
cfpdf(action="addattachments", source=expandPath('./MyPDF.pdf'), destination=expandPath("./MyPDFWithAttachments.pdf"), overwrite=true) {
cfpdfparam(source=expandPath('./MyPDFAttachment.pdf'), filename="MyPDFAttachment.pdf", encoding="UTF-8", description=" ") {};//throws: coldfusion.tagext.lang.PDFParamTag$EmptyAttributeException: The attribute description specified in the CFPDFPARAM tag is either empty or invalid.
};
</cfscript>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126625
Reason: NewBug
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email: adobelabs@itisdesign.com
External Test Config:
Attachments:
Comments: