sduncanute wrote:
forms that used to work without a hitch suddenly generated error 500 with no clue as to the real issue. These forms are simple fill it in, create a pdf file, display the file. Nothing too creative. With no error message, and nothing to tell me what is going on with this, I was forced to unload hf901-00005.jar and go back to hf901-00003.jar It is all working again, but I'd really like to have the security patch AND have my forms work. |
Hi sduncanute,
Yes (I experienced the same exact issue when populating PDF forms after upgrading to CF10), and there are actually 2 issues here (but the issues are not PDF-related). In short, there is a solution. I'll explain:
First issue: Tomcat errors are not written to start.log or exception.log. This is why you aren't seeing any logged error. This is Bug #3126106 and is marked Fixed in CF10 (I haven't verified this, but need to. This here is a note-to-self. =P). However, I'm unsure if this is fixed in CF 9.0.2.
Second issue: As apsb12-15 states:
-----------
- This hot fix has a new setting in ColdFusion, Post Parameter Limit. This setting limits the number of parameters in a post request. The default value is 100. If a post request contains more parameters as specified, the server doesn't process the request and throws an exception. This process protects against DoS attack using Hash Collision. This setting is different from Post Size Limit (ColdFusion Administrator > Settings > Maximum size of post data). This setting isn't exposed in the ColdFusion Administrator console. But you can easily change this limit in the neo-runtime.xml file. See point 5 below.
- Customers who want to change postParameterLimit, go to {ColdFusion-Home}/lib for Server Installation or {ColdFusion-Home}/WEB-INF/cfusion/lib for Multiserver or J2EE installation. Open file neo-runtime.xml, after line
"<var name='postSizeLimit'><number>100.0</number></var>"
Add the line below and you can change 100 with the desired number.
"<var name='postParametersLimit'><number>100.0</number></var>"
-----------
Basically, the Tomcat error (which you're not seeing) is being thrown b/c the form is attempting to post more than 100 fields. So, just do as it says above: Add that bolded line and replace 100.0 w/ a number high enough to cover the number of fields in your form.
I'll note that CF10 permits this setting to be adjusted via the CF Admin's Settings page via the "Maximum number of POST request parameters" setting.
Thanks,
-Aaron