Wednesday, October 31, 2012


org.owasp.validator.html.ScanException


Error Detail.
org.owasp.validator.html.ScanException: The input was too large. The specified input was 116,891 bytes and the maximum is 100,000 bytes.
        at org.owasp.validator.html.scan.AntiSamySAXScanner.scan(AntiSamySAXScanner.java:65)
        at org.owasp.validator.html.AntiSamy.scan(AntiSamy.java:115)
        at org.apache.jsp.body_jsp._jspService(body_jsp.java:154)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)


Resolution

Change the below mentioned value in antisamy configuration xml.

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

No comments:

Post a Comment