[SECURITY]
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 3 Mar 2011 11:16:51 +0000 (11:16 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 3 Mar 2011 11:16:51 +0000 (11:16 +0000)
commit5bd435974079583d6b28b6875d88004cf4375076
treeb6684b1908f238e777718c5211e8d85e058f2ec6
parent9b7fc2aad22def354cd8eab43d1e78ab48662163
[SECURITY]
Start of fix for issue reported on users list that @ServletSecurity annotations were ignored.
This fix is not yet complete. This first part:
- Triggers the loading of the Wrapper before the constraints are processed to ensure that any @ServletSecurity annotations are taken account of
- Makes sure the constraints collection is thread-safe given new usage
- Adds scanning for @ServletSecurity when a Servlet is loaded
- Ensure there is always an authenticator when using the embedded Tomcat class so that @ServletSecurity will have an effect
- Adds a simple unit test to check @ServletSecurity annotations are processed
Further commits will add additional test cases and any changes required for those test cases to pass

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1076586 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/catalina/authenticator/AuthenticatorBase.java
java/org/apache/catalina/core/StandardContext.java
java/org/apache/catalina/core/StandardWrapper.java
java/org/apache/catalina/startup/Tomcat.java
test/org/apache/catalina/core/TestStandardWrapper.java [new file with mode: 0644]