Large text areas form submission and web server limits

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Large text areas form submission and web server limits

Mariano Martinez Peck
Hi guys,

In my app, I have a form that the user can submit and such a form has a text area where the user enters Notes. So far it was working correct but today I tried a more or less long note (not too much) and I get a Zinc ZnLineTooLong. Currently it has 4K:

ZnConstants maximumLineLength -> 4096

Now...first let me ask...I am doing this correct? do I have a workaround? 

If not, should I increase this? Zinc seems easy. But then I should also change Nginx I think I should do this: http://stackoverflow.com/questions/1067334/how-to-set-the-allowed-url-length-for-a-nginx-request-error-code-414-uri-too

Is this correct? is there some security trade off here?

Thanks in advance, 

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Large text areas form submission and web server limits

Sven Van Caekenberghe-2
Hi Mariano,

It is like it says in the comments: there are a couple of resource limits that the server uses to protect itself (line length, number of headers, entity size). You can safely raise them if you need to.

The risk ?

Someone sending a 1Gb text field and crashing the server ;-)

Now there is a big difference between 4Kb and say 1Mb. It is your call.

Sven

> On 03 Feb 2015, at 19:53, Mariano Martinez Peck <[hidden email]> wrote:
>
> Hi guys,
>
> In my app, I have a form that the user can submit and such a form has a text area where the user enters Notes. So far it was working correct but today I tried a more or less long note (not too much) and I get a Zinc ZnLineTooLong. Currently it has 4K:
>
> ZnConstants maximumLineLength -> 4096
>
> Now...first let me ask...I am doing this correct? do I have a workaround?
>
> If not, should I increase this? Zinc seems easy. But then I should also change Nginx I think I should do this: http://stackoverflow.com/questions/1067334/how-to-set-the-allowed-url-length-for-a-nginx-request-error-code-414-uri-too
>
> Is this correct? is there some security trade off here?
>
> Thanks in advance,
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside