Title:
[ANeff] Bug for: cfpdfparam(filename should default to filename from the source attribute
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 03/09/2016
Components: Document Management
Versions: 2016
Failure Type: Unspecified
Found In Build/Fixed In Build: Alpha_v12 /
Priority/Frequency: Minor / Unknown
Locale/System: English / Win All
Vote Count: 0
When cfpdfparam's source attribute is a file path, cfpdfparam's filename attribute should default to the filename portion of the source attribute.
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'), encoding="UTF-8", filename="MyPDFAttachment.pdf") {};//specifying filename here is redundant
cfpdfparam(source=expandPath('./MyPDFAttachment.pdf'), encoding="UTF-8") {};//throws: coldfusion.tagext.validation.IllegalAttrConfigException: Attribute validation error for CFPDFPARAM tag in cfscript.
};
</cfscript>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126623
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email: adobelabs@itisdesign.com
External Test Config:
Attachments:
Comments: