tracker issue : CF-4060894

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

[ANeff] Bug for: cfpdfparam(overwritedata=false overwrites data

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

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

Created: 09/21/2015

Components: Document Management

Versions: 11.0

Failure Type: Data Corruption

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Critical / Some users will encounter

Locale/System: English / Win XP All

Vote Count: 0

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_not_fixed on May 17, 2018 using build 2016.0.01.298513
cfpdfparam's overwritedata=false overwrites data

Repro:

1) Download attached PDFWithAcrobatForm.pdf
2) Run this code:

<cfscript>
  cfpdfform(action="read", source=expandPath("./PDFWithAcrobatForm.pdf"), xmlData="acrobatXMLData", result="before");
  writeDump(before);//see Text1 is "my default text value" (good)
  acrobatXMLDataModified = replace(acrobatXMLData, "my default text value", "my default text value modified");
  cfpdfform(action="populate", source=expandPath("./PDFWithAcrobatForm.pdf"), destination=expandPath("./PDFWithAcrobatFormUpdated.pdf"), overwrite=true, overwritedata=false, xmldata=acrobatXMLDataModified);
  cfpdfform(action="read", source=expandPath("./PDFWithAcrobatFormUpdated.pdf"), result="after");
  writeDump(after);//see Text1 is "my default text value modified" (bug b/c cfpdfform() had overwritedata=false)
</cfscript>

Actual result: Text1 was overwritten with "my default text value modified"

Expected result: Text1 should remain "my default text value"

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

Watson Bug ID:	4060894

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email:  
External Test Config: Verified in CF11 Update 5 (build 11,0,05,293506)

Attachments:

  1. September 22, 2015 00:00:00: 1_PDFWithAcrobatForm.pdf

Comments:

CF-4060893 (duplicate of this) has a vote. That vote should be considered towards this ticket. But.. this issue shouldn't even need votes b/c it causes data corruption. Thanks!, -Aaron
Comment by External U.
5783 | September 29, 2015 02:53:08 PM GMT
Hi Adobe, I've verified this is NOT fixed in CF2016 Update 1 (build 2016.0.01.298513). overwriteData=false is ignored when XMLdata attribute is used. Data corruption!! Just save attached PDF as PDFWithAcrobatForm.pdf and re-run same steps in description. This ticket needs re-opened/fixed. I expect that I will not have to continually monitor this ticket, and that it will be resolved properly. Thanks!, -Aaron
Comment by Aaron N.
27844 | May 17, 2018 08:36:28 AM GMT