y1z2g3 / owasp-esapi-java

Automatically exported from code.google.com/p/owasp-esapi-java
Other
0 stars 0 forks source link

Large Input Errors Out #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Passing AntiSamy.scan an input large then 20,000 bytes

What is the expected output? What do you see instead?
Processed HTML.

What version of the product are you using? On what operating system?
1.2 on Solaris

Please provide any additional information below.
Stack Trace:
     [exec] Caused by: org.owasp.validator.html.ScanException: The input
was too large. The specified input was 24,771 bytes and the maximum is
20,000 bytes.
     [exec]     at
org.owasp.validator.html.scan.AntiSamyDOMScanner.scan(Unknown Source)
     [exec]     at org.owasp.validator.html.AntiSamy.scan(Unknown Source)

Original issue reported on code.google.com by brian.an...@gmail.com on 12 Mar 2009 at 3:15

GoogleCodeExporter commented 8 years ago
Please disregard, I didn't realize that this was configured in the policy. :)

Original comment by brian.an...@gmail.com on 12 Mar 2009 at 3:21

GoogleCodeExporter commented 8 years ago

Original comment by kfe...@gmail.com on 17 Apr 2009 at 3:20

GoogleCodeExporter commented 8 years ago
The input size limit is defaulted to 100,000 bytes. You can set this with the 
following directive (value is number of bytes):

<directives>
    <directive name="maxInputSize" value="256000"/>
</directives>

Exceeding the limit causes Antisamy to throw an exception.

Just posting this here if others end up here from Google as I did.

Original comment by binaryta...@gmail.com on 9 Mar 2011 at 3:12

GoogleCodeExporter commented 8 years ago
Thanks binaryta..

Original comment by anitoc...@gmail.com on 9 Oct 2012 at 10:51