Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 03/09/2016
Components: Document Management
Versions: 2016
Failure Type: Unspecified
Found In Build/Fixed In Build: Beta2_v12 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 0
cfpdfparam displays invalid attribute combinations in its exception message
Repro:
<cfscript>
cfhtmltopdf(destination=expandPath('./MyPDFToStamp.pdf'), overwrite=true) {writeOutput("my PDF");};
cfpdf(action="addstamp", source=expandPath('./MyPDFToStamp.pdf'), destination=expandPath('./MyPDFStamped.pdf'), overwrite=true) {
cfpdfparam(iconname="approved", coordinate="200,300,400,500");//this will throw an exception b/c "coordinate" should be "coordinates"
};
</cfscript>
Actual result:
--------------------------------------------
Attribute validation error for CFPDFPARAM tag in cfscript.
It has an invalid attribute combination: iconname. 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'.
--------------------------------------------
1st combination is for action="addstamp"
2nd combination is for action="redact"
3rd combination is for action="addattachments"
4th combination is for action="merge"
Expected result:
--------------------------------------------
Attribute validation error for CFPDFPARAM tag in cfscript.
It has an invalid attribute combination: iconname. Possible combinations are:
Required attributes: 'coordinates,'. Optional attributes: 'iconname,ignorecase,pages,wordstoredact'.
Required attributes: None. Optional attributes: 'coordinates,ignorecase,pages,wordstoredact'.
Required attributes: 'source'. Optional attributes: 'description,encoding,filename,mimetype'.
Required attributes: 'source'. Optional attributes: 'pages,password'.
--------------------------------------------
Issues:
1) The "content" attribute (in 1st combination) is not documented. It should be documented or removed from the above message.
2) The 4th combination (action="merge") should 1) list "source" as required and 2) not list "ignorecase,wordstoredact"
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126470
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email: adobelabs@itisdesign.com
External Test Config:
Attachments:
Comments: