Copy link to clipboard
Copied
Hi
What was working fine in CF8:
<cflocation url="index.cfm?action=receivable.actRetrieveJobReceivablesEdit&jobId=#viewstate.getValue('jobid')#&estimateId=#viewstate.getValue('estimateId')#" statuscode="302">
Now breaks in CF11, I get an error "Bad Request" and then the CSS styles get dumped onto the user's screen.
I read up on the security enhancements to CF11 and noticed the addToken attribute's default had been changed, so I added "addToken=true" but the error persists.
Also, the web server is IIS7.5.
Has anyone else run into this?
Thanks,
Rich
... actually after a closer inspection of the log files the problem was solved by increasing the value in the Maximum number of POST request parameters which is in the Server Settings panel.
Thanks for all of your good ideas.
Rich
Copy link to clipboard
Copied
I don't use CF11, but some troubleshooting tips:
Copy link to clipboard
Copied
The automatic URL encoding is perhaps messing things up. Try composing the link outside the cflocation tag, as follows:
<cfset action="receivable.actRetrieveJobReceivablesEdit">
<cfset jobid=viewstate.getValue('jobid')>
<cfset estimateid=viewstate.getValue('estimateid')>
<cfset link = "test.cfm?action=#action#&jobId=#jobid#&estimateId=#estimateId#">
<cflocation url="#link#" statuscode="302">
Copy link to clipboard
Copied
... actually after a closer inspection of the log files the problem was solved by increasing the value in the Maximum number of POST request parameters which is in the Server Settings panel.
Thanks for all of your good ideas.
Rich
Copy link to clipboard
Copied
Quite curious. Could you share what the logs say with us?
Copy link to clipboard
Copied
Due to security concerns I'm unable to post any log files but it was in the application.log and it actually used the string "Increase the maximum number of POST request parameters in Settings...." Sorry for the brevity!
HTH,
Rich
Copy link to clipboard
Copied
BKBK wrote:
Quite curious. Could you share what the logs say with us?
This is what mine said:
POST parameters exceeds the maximum limit 100 specified in the server. You can modify the setting in Administrator Server Settings.
Copy link to clipboard
Copied
I know this is old, but this really helped me. Thanks! I had an old form that must have had more than 100 input and I simply got Bad Request. A Google search brought up this post. I increased it to 200 and it worked.