tracker issue : CF-4126725

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

pdf archiving doesn't work

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/NeedMoreInfo

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

Created: 03/09/2016

Components: Document Management

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: Alpha_v12 / HF2

Priority/Frequency: Major / Unknown

Locale/System: English / Mac All

Vote Count: 1

Related Bugs:
3998415 - Blocking	CT Gibson


Tried a simple test of archiving:

cfpdf(action="archive", source=expandpath("./downloadwithcomments.pdf"),
destination=expandPath("./archived.pdf"), overwrite=true);

And I get: 


Archiving has failed.

Please check the archive log file for details.

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

Watson Bug ID:	4126725

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


Bug File Paths:
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Alpha_v12\4020738\archive.png

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Date Deferred newValue: 2015-09-24 23:48:12.0 oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-25 06:48:12.0 action: updated fieldName: Date Closed newValue: 2015-09-24 23:48:12.0 oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-25 06:48:12.0 action: updated fieldName: Closed By newValue: suchsing oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-25 06:48:12.0 action: updated fieldName: Owner newValue: Blank oldValue: suchsing oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-25 06:48:12.0 action: updated fieldName: Status newValue: Deferred oldValue: ToTest oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-25 06:48:12.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-25 06:48:12.0 action: updated fieldName: Reason newValue: ThirdParty oldValue: ThirdParty oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-25 06:48:12.0 action: updated fieldName: Owner newValue: suchsing oldValue: vadiraja oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-09-25 05:45:58.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-09-25 05:45:58.0 action: updated fieldName: Reason newValue: ThirdParty oldValue: Investigate oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-09-25 05:45:58.0 action: updated fieldName: Status newValue: ToFix oldValue: ToTrack oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-09-23 18:26:25.0 action: updated fieldName: Owner newValue: vadiraja oldValue: suchsing oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-09-23 18:26:25.0 action: updated fieldName: Reason newValue: Investigate oldValue: ThirdParty oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2015-09-23 18:26:25.0 action: updated fieldName: Reason newValue: ThirdParty oldValue: ThirdParty oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-23 13:12:54.0 action: updated fieldName: Status newValue: ToTrack oldValue: ToTest oprid: suchsing recordName: RQ_DEFECT timpestamp: 2015-09-23 13:12:54.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-09-23 13:09:20.0 action: updated fieldName: Owner newValue: suchsing oldValue: vadiraja oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-09-23 13:09:20.0 action: updated fieldName: Reason newValue: ThirdParty oldValue: Blank oprid: vadiraja recordName: RQ_DEFECT timpestamp: 2015-09-23 13:09:20.0 action: bulk updated fieldName: QE Assigned newValue: suchsing oldValue: poojain oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-09-19 05:31:47.0 action: added fieldName: Vote Type newValue: BETA oldValue: Blank oprid: prerelease recordName: AD_DEFECT_VOTE timpestamp: 2015-09-10 20:21:17.0 action: updated fieldName: Reason newValue: Blank oldValue: Blank oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:26:22.0 action: updated fieldName: Status newValue: ToFix oldValue: Unverified oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:26:22.0 action: updated fieldName: Fix By Milestone newValue: Beta oldValue: Blank oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:26:22.0 action: updated fieldName: Dev Assigned newValue: vadiraja oldValue: uogra oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:26:22.0 action: updated fieldName: Owner newValue: vadiraja oldValue: poojain oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:26:22.0 action: updated fieldName: Priority newValue: 3 oldValue: 0 oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:26:22.0 action: updated fieldName: Fix By Product Milestone newValue: Beta oldValue: Blank oprid: poojain recordName: RQ_DEFECT timpestamp: 2015-07-15 04:26:22.0
Comment by CFwatson U.
3382 | March 09, 2016 04:48:01 AM GMT
+1 - Hopefully this can be fixed before the next PR Alpha.
Vote by External U.
3384 | March 09, 2016 04:48:05 AM GMT
Added By:vadiraja Note Added: In response to Aaron, we cannot use the byte array. We need to create an object and pass the file to it. Date Added :2015-09-25 06:27:27.0 Added By:suchsing Note Added: This issue is logged with gibson team. Bug no is: 3998415 Date Added :2015-09-23 13:14:09.0 Added By: PreRelease User User Name:Aaron Neff Note Added: All of the examples in my "9/10/2015 12:53:54 PM" comment, except for the last example, throw the same error even when specifying standard="1b" and standard="2b". Date Added :2015-09-10 21:33:10.0 Added By: PreRelease User User Name:Aaron Neff Note Added: //when standard="" attribute is omitted, result is PDF/A-1b cfdocument(format="pdf", filename=expandPath("./myPDF.pdf"), overwrite=true) {writeOutput("my PDF");} cfpdf(action="archive", source=expandPath("./myPDF.pdf"), overwrite=true); //when standard="2b" is added, result is PDF/A-2b cfdocument(format="pdf", filename=expandPath("./myPDF.pdf"), overwrite=true) {writeOutput("my PDF");} cfpdf(action="archive", source=expandPath("./myPDF.pdf"), overwrite=true, standard="2b"); Thus, the standard="" attribute defaults to 1b, but ColdFusion_Raijin_WhatIsNew.pdf page 9 says it defaults to 2b. It should default to 2b. Actually, it should default to 3b. But, 3b currently throws an error. Date Added :2015-09-10 20:20:52.0 Added By: PreRelease User User Name:Aaron Neff Note Added: All of the following should generate a PDF/A-2b PDF (per ColdFusion_Raijin_WhatIsNew.pdf page 9): //"archive" throws: java.lang.ClassCastException: [B cannot be cast to java.lang.String cfdocument(format="pdf", name="myPDF") {writeOutput("my PDF");} cfpdf(action="archive", source="myPDF"); //"archive" throws: java.lang.ClassCastException: [B cannot be cast to java.lang.String cfhtmltopdf(name="myPDF") {writeOutput("my PDF");} cfpdf(action="archive", source="myPDF"); //regardless of version specified, "archive" throws: java.lang.ClassCastException: coldfusion.pdf.PDFDocWrapper cannot be cast to java.lang.String cfdocument(format="pdf", name="myPDF") {writeOutput("my PDF");} cfpdf(action="write", source="myPDF", version="1.7"); cfpdf(action="archive", source="myPDF"); //regardless of version specified, "archive" throws: java.lang.ClassCastException: coldfusion.pdf.PDFDocWrapper cannot be cast to java.lang.String cfhtmltopdf(name="myPDF") {writeOutput("my PDF");} cfpdf(action="write", source="myPDF", version="1.7"); cfpdf(action="archive", source="myPDF"); //"archive" throws: PDFArchiveUnsuccessfulException: Archiving has failed. //- "Error","ajp-nio-8016-exec-2","09/10/15","14:55:32",,"PAGE ERROR" //- "Error","ajp-nio-8016-exec-2","09/10/15","14:55:32",,"FONT ERROR" cfhtmltopdf(destination=expandPath("./myPDF.pdf"), overwrite=true) {writeOutput("my PDF");} cfpdf(action="archive", source=expandPath("./myPDF.pdf"), overwrite=true); //resultant PDF is PDF/A-1b (instead of PDF/A-2b) cfdocument(format="pdf", filename=expandPath("./myPDF.pdf"), overwrite=true) {writeOutput("my PDF");} cfpdf(action="archive", source=expandPath("./myPDF.pdf"), overwrite=true); Date Added :2015-09-10 19:53:54.0 Added By:poojain Note Added: For some pdf Archiving fails and gives the mentioned error. This is a known issue and we are tracking it internally to fix this soon. Date Added :2015-07-15 04:26:23.0 Added By: PreRelease User User Name:Steve Walker Note Added: FWIW - tested on Win 10 and Yosemite without errors. Ray, can you attach the pdf you used? Date Added :2015-07-14 21:22:23.0 Added By: PreRelease User User Name:Raymond Camden Note Added: From the log: "Information","http-nio-8600-exec-6","07/14/15","07:40:03",,"********PDFA Archive Conversion details for /Applications/ColdFusionRaijin/cfusion/wwwroot/cf12tests/downloadwithcomments.pdf. *********" "Error","http-nio-8600-exec-6","07/14/15","07:40:03",,"BOOKMARK ERROR" "Error","http-nio-8600-exec-6","07/14/15","07:40:03",,"EXTJS STATE ERROR" "Error","http-nio-8600-exec-6","07/14/15","07:40:03",,"ANNOTATION ERROR" "Error","http-nio-8600-exec-6","07/14/15","07:40:03",,"XOBJECT ERROR" "Error","http-nio-8600-exec-6","07/14/15","07:40:03",,"FONT ERROR" Date Added :2015-07-14 12:41:52.0 Added By: PreRelease User User Name:Raymond Camden Note Added: Entered Bug. Date Added :2015-07-14 12:41:03.0
Comment by CFwatson U.
3383 | March 09, 2016 04:48:06 AM GMT
Hi Adobe, This ticket is marked "Fixed In Build: HF2", however, it isn't listed in the Bugs Fixed List for CF2016 Update 2 or CF2018 Update 2. Could you please note which build this was fixed in? Thanks!, -Aaron
Comment by Aaron N.
32082 | January 21, 2020 05:52:25 AM GMT