CF11 u18 cfhtmltopdf issue
Howdy!
Just wanted to share in case this could be of use to anyone else.
After installing Update 18 onto a ColdFusion 11 server, any page that called cfhtmltopdf would error. This did not happen before update 18. Sandbox Security is enabled. No errors during install of update 18, at least according to the install log.
In order to get cfhtmltopdf working again I had to add the following two items to the ColdFusion sandbox (to the Files/Dirs area for the website's sandbox).
{cf.root}/cfusion/lib/jetty.xml => read
{cf.root}/cfusion/lib/configure_9_0.dtd => read
Before I did this the first calling of cfhtmltopdf would give the following error message:access denied ("java.io.FilePermission" "{cf.root}\cfusion\lib\jetty.xml" "read")
Any subsequent callings of cfhtmltopdf would give the following error message: Could not initialize class coldfusion.document.webkit.PDFgRequestUtil
After adding {cf.root}/cfusion/lib/jetty.xml to the sandbox (and restarting ColdFusion), I tried calling cfhtmltopdf again.
The first calling of cfhtmltopdf would give the following error message: access denied ("java.io.FilePermission" "{cf.root}\cfusion\lib\configure_9_0.dtd" "read")
Any subsequent callings of cfhtmltopdf would give the following error message: Could not initialize class coldfusion.document.webkit.PDFgRequestUtil
After adding {cf.root}/cfusion/lib/configure_9_0.dtd to the sandbox (and restarting ColdFuison), I tried calling cfhtmltopdf again. It worked. No errors.
Note: I would only get the first error messages (the java.io.FilePermission ones) immediately after a ColdFusion server restart. I was getting them in the browser. I had ColdFusion set to spit up all over itself when it was unhappy.
