Hi!

In trunk I committed a new feature: request attribute that is set if
there were problems during parameter parsing and FailedRequestFilter -
filter that rejects requests if that request attribute is set.

I would like this to be ported to TC7 and earlier versions up to 5.5,
but will wait a while for review and feedback.

To test it I recommend to add the following to the default conf/web.xml:

[[[
    <filter>
        <filter-name>failedRequestFilter</filter-name>
        <filter-class>
          org.apache.catalina.filters.FailedRequestFilter
        </filter-class>
        <async-supported>true</async-supported>
    </filter>
    <filter-mapping>
        <filter-name>failedRequestFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
]]]

Revisions in trunk implementing this feature:
http://svn.apache.org/viewvc?rev=1198696&view=rev
http://svn.apache.org/viewvc?rev=1198707&view=rev

Best regards,
Konstantin Kolinko

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

Reply via email to