Correct synchronization issue with FilterToBeanProxy initialization (thanks to George Franciscus and Volker Malzahn as per acegisecurity-developer discussion 4 June 2005).

This commit is contained in:
Ben Alex 2005-06-22 05:22:05 +00:00
parent 1cfdc86ff4
commit a7b5299e77
2 changed files with 7 additions and 1 deletions

View File

@ -150,7 +150,12 @@ public class FilterToBeanProxy implements Filter {
.getServletContext());
}
private void doInit() throws ServletException {
private synchronized void doInit() throws ServletException {
if (initialized) {
// already initialized, so don't re-initialize
return;
}
initialized = true;
String targetBean = filterConfig.getInitParameter("targetBean");

View File

@ -36,6 +36,7 @@
<action dev="benalex" type="fix">AbstractAuthenticationToken.getName() now returns username alone if UserDetails present</action>
<action dev="raykrueger" type="update">AuthorityGranter.grant now returns a java.util.Set of role names, instead of a single role name</action>
<action dev="benalex" type="update">JavaDoc improvements</action>
<action dev="benalex" type="fix">Correct synchronization issue with FilterToBeanProxy initialization</action>
</release>
<release version="0.8.2" date="2005-04-20">
<action dev="benalex" type="fix">Correct location of AuthenticationSimpleHttpInvokerRequestExecutor in clientContext.xml</action>