Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 03/09/2016
Components: Document Management
Versions: 2018
Failure Type: Unspecified
Found In Build/Fixed In Build: Beta2_v12 / 310147
Priority/Frequency: Minor / Unknown
Locale/System: English / Win All
Vote Count: 0
action="redact" 'pages' attribute should be optional
For action="merge", the pages attribute is optional and defaults to * (all pages)
For action="addstamp", the pages attribute is optional and defaults to * (all pages)
For action="redact", the pages attribute is required (it should default to * - all pages)
Repro:
<cfscript>
cfhtmltopdf(destination=expandPath('./MyPDF1.pdf'), overwrite=true) {
writeOutput(repeatString("PDF 1 Page 1", 425));
cfhtmltopdfitem(type="pagebreak");
writeOutput(repeatString("PDF 1 Page 2", 425));
};
cfhtmltopdf(destination=expandPath('./MyPDF2.pdf'), overwrite=true) {
writeOutput(repeatString("PDF 2 Page 1", 425));
cfhtmltopdfitem(type="pagebreak");
writeOutput(repeatString("PDF 2 Page 2", 425));
};
cfpdf(action="merge", destination=expandPath('./MyPDFMerged.pdf'), overwrite=true) {
cfpdfparam(source=expandPath('./MyPDF1.pdf'));
cfpdfparam(source=expandPath('./MyPDF2.pdf'));
};
cfpdf(action="redact", source=expandPath('./MyPDFMerged.pdf'), destination=expandPath('./MyPDFRedacted.pdf'), overwrite=true) {
cfpdfparam(wordstoredact=["page"], ignorecase=true);//pages attribute should be optional and 1) default to all and 2) * means all (to be consistent w/ action="merge" and action="addstamp")
};
cfpdf(action="addstamp", source=expandPath('./MyPDFRedacted.pdf'), destination=expandPath('./MyPDFStamped.pdf'), overwrite=true) {
cfpdfparam(iconname="approved", coordinates="200,300,400,500");
};
</cfscript>
Actual result:
-----------
Attribute validation error for CFPDFPARAM tag in cfscript.
It has an invalid attribute combination: ignorecase,wordstoredact. Possible combinations are:
Required attributes: 'coordinates,'. Optional attributes: 'content,iconname,ignorecase,pages,wordstoredact'.
Required attributes: None. Optional attributes: 'coordinates,ignorecase,pages,wordstoredact'.
Required attributes: 'source'. Optional attributes: 'description,encoding,filename,mimetype'.
Required attributes: None. Optional attributes: 'pages,password,ignorecase,source,wordstoredact'.
-----------
Expected result: All 4 pages should be redacted
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126473
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email: adobelabs@itisdesign.com
External Test Config:
Attachments:
Comments: