Copy link to clipboard
Copied
When I updated Log4j to 2.17 as recommended (https://helpx.adobe.com/coldfusion/kb/log4j-2-16-vulnerability-coldfusion.html), cfhtmltopdf immediately started throwing a generic "server error". Anyone else encounter this? Workarounds? Thanks.
Copy link to clipboard
Copied
David, I can say I've not seen or heard of that issue yet, but a few questions may point you in the right direction, or help us help you:
And it may technically have NOT been related to the update. Something could have been changed previously that did not take effect UNTIL the restart of both cf and the add-on service, which the update does.
As you can see, there are many things you could have done (some without realizing their impact) that could explain your error. I hope these observations and questions may help get to the bottom of the problem. Please do answer them all if you don't find the solution (and if you do, please let us know what it was).
And if somehow you need this solved ASAP, I can help via direct remote consulting. I suspect this might be solved in less than 15 mins, whereas back and forth here could take a lot longer. More at carehart.org/consulting. But hope the above may well help get you going.
Copy link to clipboard
Copied
When I updated Log4j to 2.17 as recommended (https://helpx.adobe.com/coldfusion/kb/log4j-2-16-vulnerability-coldfusion.html), cfhtmltopdf immediately started throwing a generic "server error". Anyone else encounter this?
By @davidihill
I updated ColdFusion 2018 from Update 12 to Update 13 following the steps in the link you mention. Then I ran the following code from the cfhtmltopdf documentation:
<cftry>
<cfhtmltopdf destination="usage_example.pdf"
source="http://www.google.com" overwrite="true"
orientation="portrait" pagetype="A4" margintop="1" marginbottom="1"
marginleft="1" marginright="1" />
<cfheader name="Content-Disposition" value="inline; filename=usage_example.pdf">
<cfcontent file="#getdirectoryfrompath(getbasetemplatepath())#usage_example.pdf" type="application/pdf" >
<cfcatch type="any" >
<cfdump var="#cfcatch#" >
</cfcatch>
</cftry>
The result was a PDF, as expected. There was no error,.
Copy link to clipboard
Copied
What version are you on?
CF2018 Update 12?
CF2018 Update 13?
CF2021 Update 2?
CF2021 Update 3?