tracker issue : CF-4060893

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/Withdrawn/Duplicate

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: 1

Duplicate ID:	CF-4060894

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:	4060893

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email:

Attachments:

Comments:

Please close this as a duplicate of CF-4060894, b/c CF-4060894 contains the PDFWithAcrobatForm.pdf attachment. Somehow the bug tracker caused duplication. Thanks!, -Aaron
Comment by External U.
5785 | September 21, 2015 11:47:05 PM GMT
+1 ...........................
Vote by External U.
5786 | September 22, 2015 04:50:11 AM GMT