Skip to main content
Participating Frequently
March 24, 2013
Question

Internal Server Error 500 on form post

  • March 24, 2013
  • 2 replies
  • 14447 views

I created a form in cold fusion that has a variable number of form fields (i.e. like line items on an invoice).  There are about 5 input fields per line item.  When I have only about 10 lines and do the form post, the page executes just fine, but when the number of line items increases to, say, 30, I get an internal server error on when I post the data with the submit button.  Doesn't seem like its an error in my code because it works with a smaller number of items, is there a setting that makes the server die when it has too may data fields posted?

    This topic has been closed for replies.

    2 replies

    Tim Cunningham
    Participating Frequently
    March 25, 2013

    I run into all the time!

    see: http://www.cutterscrossing.com/index.cfm/2012/3/27/ColdFusion-Security-Hotfix-and-Big-Forms

    Bottom line Increase: postSizeLimit and postParametersLimit 

    One gotcha: Make sure they are not in their twice.  CF will set it to the LAST entry in the neo-runtime.xml file (comment #8)

    Tim

    Anit_Kumar
    Inspiring
    March 26, 2013

    Hi,

    The Post Parameter 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. 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. Please try the following:-

    1. Open file neo-runtime.xml
    2. Locate "<var name='postSizeLimit'><number>100.0</number></var>"
    3. Add "<var name='postParametersLimit'><number>100.0</number></var>" below the above code. You can change 100 with the desired number.

    Regards,

    Anit Kumar

    April 25, 2013

    What are the security issues of setting this value higher than 100?  Any increased exposure to an attack? Can you limit the increased value to a specific application via a setting in the application.cfc/cfm?

    glamorous_Wonder6C1C
    Inspiring
    March 24, 2013

    Hi fschneider,

    It will be helpful if u post the error message you are getting.

    Stiil according to your problem description it seems that it is a problem with large amount of data.

    In order to change limit of post data you can perform the folllowing steps(coldfusion 9):

    1.Open coldfusion administrator.

    2.Click on the setting(left upper corner)

    3.scroll down or search "" change it as per your requirment.

    Hope it will solve your issue.

    Thanks

    Saurav