tracker issue : CF-4126724

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

Adding an attachment to a pdf variable fails

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)

Created: 03/09/2016

Components: Document Management

Versions: 2016

Failure Type:

Found In Build/Fixed In Build: Alpha_v12 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Mac All

Vote Count: 1

As the title says, I can't add attachments when using a pdf var:

<cfscript>
	
cfpdf(action="read", source=expandpath("./downloadwithcomments.pdf"), name="mypdf");

cfpdf(action="addAttachments", source=mypdf) {
	
	cfpdfparam(source=expandPath("./pdf_sanitize.cfm"), filename="pdf_sanitize.cfm", encoding="utf-8");
}

</cfscript>

This gives me: 
The file or directory (/Applications/ColdFusionRaijin/cfusion/wwwroot/cf12tests/coldfusion.pdf.PDFDocWrapper@2f0140f5) specified in the source attribute in the CFPDF tag does not exist.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4126724

External Customer Info:
External Company: Broadchoice
External Customer Name: Raymond Camden
External Customer Email: raymondcamden@gmail.com
External Test Config:

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Date Fixed newValue: 2015-10-20 05:34:46.0 oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:34:46.0 action: updated fieldName: Reason newValue: Blank oldValue: HaveNewInfo oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:34:46.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:34:46.0 action: updated fieldName: Owner newValue: Blank oldValue: suchsing oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:34:46.0 action: updated fieldName: Closed By newValue: suchsing oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:34:46.0 action: updated fieldName: Date Closed newValue: 2015-10-20 05:34:46.0 oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:34:46.0 action: updated fieldName: Fixed By newValue: suchsing oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:34:46.0 action: updated fieldName: Status newValue: Fixed oldValue: ToTest oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 12:34:46.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: mjain recordName: RQ_DEFECT timpestamp: 2015-10-20 12:11:48.0 action: updated fieldName: Owner newValue: suchsing oldValue: mjain oprid: mjain recordName: RQ_DEFECT timpestamp: 2015-10-20 12:11:48.0 action: updated fieldName: Reason newValue: HaveNewInfo oldValue: Blank oprid: mjain recordName: RQ_DEFECT timpestamp: 2015-10-20 12:11:48.0 action: updated fieldName: Status newValue: ToFix oldValue: ToTest oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 11:16:09.0 action: updated fieldName: Fixed By newValue: Blank oldValue: mjain oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 11:16:09.0 action: updated fieldName: Date Fixed newValue: null oldValue: 09-OCT-15 04.39.28.000000000 AM oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 11:16:09.0 action: updated fieldName: Owner newValue: mjain oldValue: suchsing oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 11:16:09.0 action: updated fieldName: Reason newValue: Blank oldValue: Fixed oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-10-20 11:16:09.0 action: updated fieldName: Fixed By newValue: mjain oldValue: Blank oprid: mjain recordName: RQ_DEFECT timpestamp: 2015-10-09 11:39:28.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: mjain recordName: RQ_DEFECT timpestamp: 2015-10-09 11:39:28.0 action: updated fieldName: Changelist newValue: 295956 oldValue: Blank oprid: mjain recordName: RQ_DEFECT timpestamp: 2015-10-09 11:39:28.0 action: updated fieldName: Owner newValue: suchsing oldValue: mjain oprid: mjain recordName: RQ_DEFECT timpestamp: 2015-10-09 11:39:28.0 action: updated fieldName: Reason newValue: Fixed oldValue: Blank oprid: mjain recordName: RQ_DEFECT timpestamp: 2015-10-09 11:39:28.0 action: updated fieldName: Date Fixed newValue: 2015-10-09 04:39:28.0 oldValue: Blank oprid: mjain recordName: RQ_DEFECT timpestamp: 2015-10-09 11:39:28.0 action: added fieldName: Vote Type newValue: BETA oldValue: Blank oprid: prerelease recordName: AD_DEFECT_VOTE timpestamp: 2015-09-27 05:57:05.0 action: updated fieldName: Severity newValue: 0 oldValue: 3 oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-09-25 05:55:38.0 action: updated fieldName: Priority newValue: 2 oldValue: 3 oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-09-25 05:55:38.0 action: updated fieldName: Owner newValue: mjain oldValue: vadiraja oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-09-25 05:42:19.0 action: updated fieldName: Dev Assigned newValue: mjain oldValue: vadiraja oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-09-25 05:42:19.0 action: updated fieldName: QE Assigned newValue: suchsing oldValue: poojain oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-19 05:34:42.0 action: updated fieldName: Reason newValue: Blank oldValue: Blank oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:00:10.0 action: updated fieldName: Status newValue: ToFix oldValue: Unverified oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:00:10.0 action: updated fieldName: Dev Assigned newValue: vadiraja oldValue: uogra oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:00:10.0 action: updated fieldName: Priority newValue: 3 oldValue: 0 oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:00:10.0 action: updated fieldName: Fix By Product Milestone newValue: Beta oldValue: Blank oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:00:10.0 action: updated fieldName: Fix By Milestone newValue: Beta oldValue: Blank oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:00:10.0 action: updated fieldName: Owner newValue: vadiraja oldValue: poojain oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:00:10.0
Comment by CFwatson U.
3386 | March 09, 2016 04:47:45 AM GMT
+1 - variables and ram:// paths should be accepted for the source/destination/importfrom/exportto attributes. Internally, temp files can be created where needed.
Vote by External U.
3388 | March 09, 2016 04:47:46 AM GMT
Added By:vadiraja Note Added: Variables are not supported for DDX operations and hence for the following actions. 1)archiving 2)attach files 3)import and export metadata and comment. Marking it as enhancement Date Added :2015-09-25 05:55:38.0 Added By: PreRelease User User Name:Raymond Camden Note Added: Changing the source to a local file name fixes it. Date Added :2015-07-14 12:49:52.0 Added By: PreRelease User User Name:Raymond Camden Note Added: Entered Bug. Date Added :2015-07-14 12:48:45.0
Comment by CFwatson U.
3387 | March 09, 2016 04:47:48 AM GMT