tracker issue : CF-4126623

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: cfpdfparam(filename should default to filename from the source attribute

| View in Tracker

Status/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:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Priority newValue: 1 oldValue: 0 oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-02-16 15:12:16.0 action: updated fieldName: Date Closed newValue: 2015-10-20 05:08:13.0 oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:08:13.0 action: updated fieldName: Reason newValue: Blank oldValue: Fixed oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:08:13.0 action: updated fieldName: Status newValue: Fixed oldValue: ToTest oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:08:13.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:08:13.0 action: updated fieldName: Owner newValue: Blank oldValue: suchsing oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:08:13.0 action: updated fieldName: Closed By newValue: suchsing oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:08:13.0 action: updated fieldName: Changelist newValue: 295859 oldValue: Blank oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-10-01 08:53:05.0 action: updated fieldName: Date Fixed newValue: 2015-10-01 01:53:05.0 oldValue: Blank oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-10-01 08:53:05.0 action: updated fieldName: Fixed By newValue: vadiraja oldValue: Blank oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-10-01 08:53:05.0 action: updated fieldName: Owner newValue: suchsing oldValue: vadiraja oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-10-01 08:53:05.0 action: updated fieldName: Reason newValue: Fixed oldValue: BugVerified oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-10-01 08:53:05.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-10-01 08:53:05.0 action: updated fieldName: Fix By Product Milestone newValue: Beta oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-29 13:47:12.0 action: updated fieldName: Reason newValue: BugVerified oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-29 13:47:12.0 action: updated fieldName: Dev Assigned newValue: vadiraja oldValue: uogra oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-29 13:47:12.0 action: updated fieldName: Fix By Milestone newValue: Beta oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-29 13:47:12.0 action: updated fieldName: Owner newValue: vadiraja oldValue: suchsing oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-29 13:47:12.0 action: updated fieldName: Status newValue: ToFix oldValue: Unverified oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-29 13:47:12.0 action: bulk updated fieldName: Owner newValue: suchsing oldValue: poojain oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-28 06:37:38.0 action: bulk updated fieldName: QE Assigned newValue: suchsing oldValue: poojain oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-28 06:37:38.0
Comment by CFwatson U.
3699 | March 09, 2016 04:18:17 AM GMT
Added By: PreRelease User User Name:Aaron Neff Note Added: YVW! Date Added :2015-12-09 05:47:56.0 Added By:vmannebo Note Added: Thanks Aaron for verifying the fix works and also posting an update on this bug. Date Added :2015-12-09 04:26:25.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Verified this is fixed, thanks! Tested in Beta 1. Date Added :2015-12-09 04:23:53.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Entered Bug. Date Added :2015-09-22 02:44:31.0
Comment by CFwatson U.
3700 | March 09, 2016 04:18:18 AM GMT