https://issues.apache.org/bugzilla/show_bug.cgi?id=57105

--- Comment #1 from Konstantin Kolinko <knst.koli...@gmail.com> ---
The allowed values are "none" and <number>"kb".
It is verified in org.apache.jasper.compiler.PageInfo.setBufferValue()

1. The buffer size can also be specified via buffer attribute on @page
directive. The same code is used to verify both use cases. Thus no wonder that
the check happens in JSP compiler.


2. I would say that the better place to do verification is XSD schema,
jsp_2_3.xsd.

Unfortunately it is currently declared there just as type="javaee:string" with
no further constraints.

I think that to make changes there, it has to be raised with the specification
folks.

Note that validation of web.xml is only enabled if you are running in "strict
compliance" mode by setting a system property or setting xmlValidation="true"
on Context.
https://tomcat.apache.org/tomcat-8.0-doc/config/systemprops.html#Specifications


3. I does not really feels as a job for JSP engine to verify web.xml, and
Servlet engine has little interest in those effectively foreign settings.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to