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
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:
- September 22, 2015 00:00:00: 1_PDFWithAcrobatForm.pdf
Comments: