6 Replies Latest reply on Jan 22, 2013 9:38 AM by intj2

    Request URI too Large (414 Error)

    intj2 Level 1

      I have a site which has been in operation for several years.  I am now getting 414 Errors - Request URI too Large -  from dyanamically generated pages.  No code changes have been made to the server.  I am looping over an array to build out a page. 

       

      Here is some typical code:

       

      <form action="#request.self#" method="">

              <table width="98%" border="0" cellspacing="0" cellpadding="2">

                      <cfloop from="#evaluate(currentStartRow+1)#" to="#evaluate(currentStartRow+15)#" index="x">

                          <tr>

                              <td valign="top">

                                  <select class="small" name="checkType#x#">

                                      <cfloop list="#checkTypes#" index="y">

                                          <option value="#y#" <cfif allSteps[x].t is y>selected</cfif>>#y#</option>

                                      </cfloop>

                                  </select>

                                  <select class="small" name="stepIsActive#x#">

                                      <cfloop list="#stepStatus#" index="j">

                                          <option value="#j#" <cfif allSteps[x].i is j>selected</cfif>>#j#</option>

                                      </cfloop>

                                  </select>

                                  <select class="small" name="method#x#">

                                      <cfloop list="#methods#" index="jjj">

                                          <option value="#jjj#" <cfif allSteps[x].m is jjj>selected</cfif>>#jjj#</option>

                                      </cfloop>

                                  </select>

                               <textarea class="small" cols="62" rows="4" name="characteristic#x#">

                                  #trim(allSteps[x].c)#

                                </textarea>

                                  <input class="small" maxlength="30" name="zone#x#" size="22" value="#allSteps[x].z#">

                                  <input class="small" maxlength="10" name="valueA#x#" size="8" value="#allSteps[x].a#">

                                  <input class="small" maxlength="10" name="valueB#x#" size="8" value="#allSteps[x].b#">

                              </td>

                          </tr>

                      </cfloop>

                  <tr>

                      <td align="center">

                          <input class="smallButtonGreen" type="submit" value="`save" name="save">

                      </td>

                  </tr>

              </table>

      </form>  

       

      If I set the loop counter lower the page processes.  If I comment out some of the content in the cfm file (meaning that the final page after processing is smaller) the page processes.  If I add  method= "post" the get a 500 Error.  Leaving out the method = "post" I get a 414 error.

       

      The pages in question have not been updated for months and are used everyday.  This problem started two days ago.  Any ideas on how I can figure out this issue?

       

      Thanks

        • 1. Re: Request URI too Large (414 Error)
          BKBK Adobe Community Professional & MVP

          I suspect the value of the string request.self  is too long. A tip for you: use method="get" and view the page source. Does it tell you anything? Could you show us the source?

          • 2. Re: Request URI too Large (414 Error)
            intj2 Level 1

            I thought size might have been an issue so I stripped out the cfform tags, javascript and the css and got the form down to html.  I am looping over some code 20 times to create the file below. 

             

            I wanted to note that this problem is across two servers and my local dev PC.  I pulled code from November from our repository and it also failed.  I cannot come up with a reason on why it just stopped working.  It was used everyday by several clients without issue until this past week.

             

             

            <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">




            <head>

            <title>XXXXXXXXXXX</title>

            <meta http-equiv="keywords" content="XXXXX">

            <meta http-equiv="description" content="XXXXXXXXXXXXXXXXX">

            <meta charset="UTF-8">

            </head>


            <body topmargin="5">





            <form action="index.cfm" method="get">

            <table width="98%" border="0" cellspacing="0" cellpadding="2">


            <tr>

            <td valign="top">

            <select class="small" name="checkType1">


            <option value="accept/reject" selected>accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive1">


            <option value="yes" selected>yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method1">


            <option value="A" selected>A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic1">


            </textarea>

            <input class="small" maxlength="30" name="zone1" size="22" value="">

            <input class="small" maxlength="10" name="valueA1" size="8" value="">

            <input class="small" maxlength="10" name="valueB1" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType2">


            <option value="accept/reject" selected>accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive2">


            <option value="yes" selected>yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method2">


            <option value="A" selected>A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic2">


            </textarea>

            <input class="small" maxlength="30" name="zone2" size="22" value="">

            <input class="small" maxlength="10" name="valueA2" size="8" value="">

            <input class="small" maxlength="10" name="valueB2" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType3">


            <option value="accept/reject" selected>accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive3">


            <option value="yes" selected>yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method3">


            <option value="A" selected>A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic3">


            </textarea>

            <input class="small" maxlength="30" name="zone3" size="22" value="">

            <input class="small" maxlength="10" name="valueA3" size="8" value="">

            <input class="small" maxlength="10" name="valueB3" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType4">


            <option value="accept/reject" selected>accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive4">


            <option value="yes" selected>yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method4">


            <option value="A" selected>A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic4">


            </textarea>

            <input class="small" maxlength="30" name="zone4" size="22" value="">

            <input class="small" maxlength="10" name="valueA4" size="8" value="">

            <input class="small" maxlength="10" name="valueB4" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType5">


            <option value="accept/reject" selected>accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive5">


            <option value="yes" selected>yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method5">


            <option value="A" selected>A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic5">


            </textarea>

            <input class="small" maxlength="30" name="zone5" size="22" value="">

            <input class="small" maxlength="10" name="valueA5" size="8" value="">

            <input class="small" maxlength="10" name="valueB5" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType6">


            <option value="accept/reject" selected>accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive6">


            <option value="yes" selected>yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method6">


            <option value="A" selected>A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic6">


            </textarea>

            <input class="small" maxlength="30" name="zone6" size="22" value="">

            <input class="small" maxlength="10" name="valueA6" size="8" value="">

            <input class="small" maxlength="10" name="valueB6" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType7">


            <option value="accept/reject" selected>accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive7">


            <option value="yes" selected>yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method7">


            <option value="A" selected>A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic7">


            </textarea>

            <input class="small" maxlength="30" name="zone7" size="22" value="">

            <input class="small" maxlength="10" name="valueA7" size="8" value="">

            <input class="small" maxlength="10" name="valueB7" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType8">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive8">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method8">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic8">


            </textarea>

            <input class="small" maxlength="30" name="zone8" size="22" value="">

            <input class="small" maxlength="10" name="valueA8" size="8" value="">

            <input class="small" maxlength="10" name="valueB8" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType9">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive9">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method9">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic9">


            </textarea>

            <input class="small" maxlength="30" name="zone9" size="22" value="">

            <input class="small" maxlength="10" name="valueA9" size="8" value="">

            <input class="small" maxlength="10" name="valueB9" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType10">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive10">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method10">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic10">


            </textarea>

            <input class="small" maxlength="30" name="zone10" size="22" value="">

            <input class="small" maxlength="10" name="valueA10" size="8" value="">

            <input class="small" maxlength="10" name="valueB10" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType11">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive11">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method11">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic11">


            </textarea>

            <input class="small" maxlength="30" name="zone11" size="22" value="">

            <input class="small" maxlength="10" name="valueA11" size="8" value="">

            <input class="small" maxlength="10" name="valueB11" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType12">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive12">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method12">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic12">


            </textarea>

            <input class="small" maxlength="30" name="zone12" size="22" value="">

            <input class="small" maxlength="10" name="valueA12" size="8" value="">

            <input class="small" maxlength="10" name="valueB12" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType13">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive13">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method13">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic13">


            </textarea>

            <input class="small" maxlength="30" name="zone13" size="22" value="">

            <input class="small" maxlength="10" name="valueA13" size="8" value="">

            <input class="small" maxlength="10" name="valueB13" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType14">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive14">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method14">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic14">


            </textarea>

            <input class="small" maxlength="30" name="zone14" size="22" value="">

            <input class="small" maxlength="10" name="valueA14" size="8" value="">

            <input class="small" maxlength="10" name="valueB14" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType15">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive15">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method15">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic15">


            </textarea>

            <input class="small" maxlength="30" name="zone15" size="22" value="">

            <input class="small" maxlength="10" name="valueA15" size="8" value="">

            <input class="small" maxlength="10" name="valueB15" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType16">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive16">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method16">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic16">


            </textarea>

            <input class="small" maxlength="30" name="zone16" size="22" value="">

            <input class="small" maxlength="10" name="valueA16" size="8" value="">

            <input class="small" maxlength="10" name="valueB16" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType17">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive17">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method17">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic17">


            </textarea>

            <input class="small" maxlength="30" name="zone17" size="22" value="">

            <input class="small" maxlength="10" name="valueA17" size="8" value="">

            <input class="small" maxlength="10" name="valueB17" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType18">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive18">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method18">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic18">


            </textarea>

            <input class="small" maxlength="30" name="zone18" size="22" value="">

            <input class="small" maxlength="10" name="valueA18" size="8" value="">

            <input class="small" maxlength="10" name="valueB18" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType19">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive19">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method19">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic19">


            </textarea>

            <input class="small" maxlength="30" name="zone19" size="22" value="">

            <input class="small" maxlength="10" name="valueA19" size="8" value="">

            <input class="small" maxlength="10" name="valueB19" size="8" value="">

            </td>

            </tr>


            <tr>

            <td valign="top">

            <select class="small" name="checkType20">


            <option value="accept/reject" >accept/reject</option>


            <option value="greater than" >greater than</option>


            <option value="less than" >less than</option>


            <option value="equal to" >equal to</option>


            <option value="between" >between</option>


            <option value="max" >max</option>


            <option value="min" >min</option>


            </select>

            <select class="small" name="stepIsActive20">


            <option value="yes" >yes</option>


            <option value="no" >no</option>


            </select>

            <select class="small" name="method20">


            <option value="A" >A</option>


            <option value="B" >B</option>


            <option value="C" >C</option>


            <option value="D" >D</option>


            </select>

            <textarea class="small" cols="62" rows="4" name="characteristic20">


            </textarea>

            <input class="small" maxlength="30" name="zone20" size="22" value="">

            <input class="small" maxlength="10" name="valueA20" size="8" value="">

            <input class="small" maxlength="10" name="valueB20" size="8" value="">

            </td>

            </tr>

             
            <tr>

            <td align="center">

            <input class="smallButtonGreen" type="submit" value="`save" name="save">

            </td>

            </tr>

            </table>

            </form>



            </body>

            </html>

             

            • 3. Re: Request URI too Large (414 Error)
              BKBK Adobe Community Professional & MVP

              I copy-pasted this source code as a CFM file, and ran it. No problems at all.

              • 4. Re: Request URI too Large (414 Error)
                intj2 Level 1

                In the code I posted the method was "get".

                 

                <form action="index.cfm" method="get">

                 

                The get should have been a POST.

                 

                <form action="index.cfm" method="POST">

                 

                I have a more time to look at this.  In the real production page we are using CFForm.  It uses fusebox 4.1 framework.  So the actual code look like:

                 

                <cfform action="#request.self#" method="POST">  ---  This fails

                 

                If I remove the POST and leave the method blank the page works.

                 

                <cfform action="#request.self#" method=""> --- This works

                 

                Can anyone make any sense of this?  I believe the default method for CFFORM is POST.  So the the two lines sould be identical.  Why would one work but not the other?

                 

                pjh

                • 5. Re: Request URI too Large (414 Error)
                  Miguel-F Level 3

                  What version of ColdFusion are you using and have you applied ColdFusion Security Hotfix APSB12-06?  That hotfix adds a postParametersLimit restriction of 100 form fields.  Are you hitting that maybe???

                   

                  I believe this security is also included with ColdFusion 10 and can be modified via the administrator.

                  • 6. Re: Request URI too Large (414 Error)
                    intj2 Level 1

                    Yes - I discovered the APSB13-03 Hot Fix includes APSB12-06.  We just adjusted the limit in our validation environment.  It seems to correct the issue.  See this link for details:  http://www.cutterscrossing.com/index.cfm/2012/3/27/ColdFusion-Security-Hotfix-and-Big-Form s