tracker issue : CF-4126620

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

[ANeff] Bug for: cfpdf creates temp files in CF's logs directory

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 03/09/2016

Components: File Management

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: Alpha_v12 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win All

Vote Count: 3

cfpdf creates temp files in CF's logs directory

Repro:

1) Download attached CFDocumentWithComment.pdf, MyCommentCFDocument.xfdf and MyMetadataCFDocument.xmp
2) Create "temp" subfolder
3) Uncomment each of the following examples, run each example, and see temp files are created in Raijin's logs folder according to the comment in each example.

<!--- action="export" type="comment" --->
<!---<cfscript>
  cfpdf(action="export", type="comment", source=expandPath('./CFDocumentWithComment.pdf'), exportto=expandPath('./temp/MyComment01.xfdf'), overwrite=true);//creates C:\ColdFusionRaijin\cfusion\logs\comment_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.tmp files
</cfscript>--->

<!--- action="import" type="comment" --->
<!---<cfscript>
  cfdocument(format="pdf", filename=expandPath('./temp/MyPDF.pdf'), overwrite="true") {writeOutput("my PDF");};
  cfpdf(action="import", type="comment", source=expandPath('./temp/MyPDF.pdf'), importfrom=expandPath('./MyCommentCFDocument.xfdf'));//creates C:\ColdFusionRaijin\cfusion\logs\Out1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.tmp files
</cfscript>--->

<!--- action="import" type="metadata" --->
<!---<cfscript>
  cfdocument(format="pdf", filename=expandPath('./temp/MyPDF.pdf'), overwrite="true") {writeOutput("my PDF");};
  cfpdf(action="import", type="metadata", source=expandPath('./temp/MyPDF.pdf'), importfrom=expandPath('./MyMetadataCFDocument.xmp'));//creates C:\ColdFusionRaijin\cfusion\logs\Out1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.tmp files
</cfscript>--->

<!--- action="addattachments" --->
<!---<cfscript>
  cfdocument(format="pdf", filename=expandPath('./temp/MyPDF01.pdf'), overwrite="true") {writeOutput("my PDF");};
  cfdocument(format="pdf", filename=expandPath('./temp/MyPDFAttachment.pdf'), overwrite=true) {writeOutput("my PDF attachment");};
  cfpdf(action="addattachments", source=expandPath('./temp/MyPDF01.pdf')) {//creates C:\ColdFusionRaijin\cfusion\logs\Out1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.tmp
    cfpdfparam(source=expandPath('./temp/MyPDFAttachment.pdf'), filename="MyPDFAttachment.pdf", encoding="UTF-8") {};
  };
</cfscript>--->

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

Watson Bug ID:	4126620

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email: adobelabs@itisdesign.com
External Test Config:  


Bug File Paths:
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha_v12\4060910\CFDocumentWithComment.pdf
	 
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha_v12\4060910\MyCommentCFDocument.xfdf
	 
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha_v12\4060910\MyMetadataCFDocument.xmp

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Fix By Milestone newValue: Gold Master oldValue: Blank oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-02-14 15:36:27.0 action: updated fieldName: Fix By Product Milestone newValue: Gold Master oldValue: Blank oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-02-14 15:36:27.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: sjaidka recordName: RQ_DEFECT timpestamp: 2015-09-29 11:11:50.0 action: updated fieldName: Date Fixed newValue: 2015-09-29 04:11:50.0 oldValue: Blank oprid: sjaidka recordName: RQ_DEFECT timpestamp: 2015-09-29 11:11:50.0 action: updated fieldName: Fixed By newValue: sjaidka oldValue: Blank oprid: sjaidka recordName: RQ_DEFECT timpestamp: 2015-09-29 11:11:50.0 action: updated fieldName: Date Closed newValue: 2015-09-29 04:11:50.0 oldValue: Blank oprid: sjaidka recordName: RQ_DEFECT timpestamp: 2015-09-29 11:11:50.0 action: updated fieldName: Closed By newValue: sjaidka oldValue: Blank oprid: sjaidka recordName: RQ_DEFECT timpestamp: 2015-09-29 11:11:50.0 action: updated fieldName: Owner newValue: Blank oldValue: sjaidka oprid: sjaidka recordName: RQ_DEFECT timpestamp: 2015-09-29 11:11:50.0 action: updated fieldName: Status newValue: Fixed oldValue: ToTrack oprid: sjaidka recordName: RQ_DEFECT timpestamp: 2015-09-29 11:11:50.0 action: updated fieldName: Reason newValue: Blank oldValue: PRHaveInfo oprid: sjaidka recordName: RQ_DEFECT timpestamp: 2015-09-29 11:11:50.0 action: updated fieldName: Owner newValue: sjaidka oldValue: aksriniv oprid: aksriniv recordName: RQ_DEFECT timpestamp: 2015-09-29 08:48:27.0 action: updated fieldName: QE Assigned newValue: sjaidka oldValue: aksriniv oprid: aksriniv recordName: RQ_DEFECT timpestamp: 2015-09-29 08:48:27.0 action: updated fieldName: State newValue: Open oldValue: Open oprid: prerelease recordName: RQ_DEFECT timpestamp: 2015-09-27 07:33:42.0 action: updated fieldName: Status newValue: ToTrack oldValue: ToTrack oprid: prerelease recordName: RQ_DEFECT timpestamp: 2015-09-27 07:33:42.0 action: updated fieldName: Reason newValue: PRHaveInfo oldValue: PRNeedInfo oprid: prerelease recordName: RQ_DEFECT timpestamp: 2015-09-27 07:33:42.0 action: updated fieldName: Reason newValue: PRNeedInfo oldValue: Blank oprid: aksriniv recordName: RQ_DEFECT timpestamp: 2015-09-27 06:55:41.0 action: updated fieldName: Status newValue: ToTrack oldValue: Unverified oprid: aksriniv recordName: RQ_DEFECT timpestamp: 2015-09-27 06:55:41.0
Comment by CFwatson U.
3708 | March 09, 2016 04:17:31 AM GMT
Added By: PreRelease User User Name:Aaron Neff Note Added: Verified this is fixed, thanks! Tested in Beta 1. Date Added :2015-12-09 06:10:30.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Hi Akhila, These 2 examples (which I mentioned in a comment on #CF-4056840) also create temp files in CF's logs dir: 1) <cfdocument format="pdf" filename="#expandPath('./pdfIn.pdf')#" overwrite="true"><cfoutput>#now()#</cfoutput></cfdocument> <cfsavecontent variable="myDDX1"> <?xml version="1.0" encoding="UTF-8"?> <DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <PDF result="pdfOut"> <PageSize width="2in" height="2in" scaleUp="true" /> <PDF source="pdfIn" /> </PDF> </DDX> </cfsavecontent> <cfpdf action="processddx" ddxfile="#myDDX1#" inputfiles="#{pdfIn=expandPath('./pdfIn.pdf')}#" outputfiles="#{pdfOut=expandPath('./myPDF1.pdf')}#" name="myDDXResult1"> 2) <cfdocument format="pdf" filename="#expandPath('./pdfIn.pdf')#" overwrite="true"><cfoutput>#now()#</cfoutput></cfdocument> <cfxml variable="myDDX3"> <?xml version="1.0" encoding="UTF-8"?> <DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd"> <PDF result="pdfOut"> <PageSize width="2in" height="2in" scaleUp="true" /> <PDF source="pdfIn" /> </PDF> </DDX> </cfxml> <cfpdf action="processddx" ddxfile="#myDDX3#" inputfiles="#{pdfIn=expandPath('./pdfIn.pdf')}#" outputfiles="#{pdfOut=expandPath('./myPDF3.pdf')}#" name="myDDXResult3"> Thanks!, -Aaron Date Added :2015-09-27 07:36:04.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Hi Akhila, I've attached the 3 files: CFDocumentWithComment.pdf, MyCommentCFDocument.xfdf and MyMetadataCFDocument.xmp. Thanks!, -Aaron Date Added :2015-09-27 07:33:41.0 Added By:aksriniv Note Added: Hi Aaron, Attachment files are missing, please send them. Thanks, Akhila. Date Added :2015-09-27 06:55:45.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Entered Bug. Date Added :2015-09-22 03:59:37.0
Comment by CFwatson U.
3709 | March 09, 2016 04:17:32 AM GMT
This is an issue in CF 11 patch 7 as well. Do you have plans to fix it? thx
Vote by External U.
3710 | March 10, 2016 05:24:09 PM GMT
Confirmed, happens in Coldfusion 11, patch 6 or patch 7.
Vote by External U.
3711 | May 16, 2016 01:16:10 PM GMT
Are you going to fix this in ColdFusion 11? It is also happening in CF11 Update 13 and 14
Vote by Trevor W.
29404 | July 26, 2018 03:48:59 PM GMT