[ http://nagoya.apache.org/jira/browse/GERONIMO-515?page=history ]
David Jencks resolved GERONIMO-515:
-----------------------------------
Assign To: Alan Cabrera
Resolution: Fixed
Fixed in jetty-deployer branch. needs review.
> GeronimoPolicyConfigurationFactory does not always return same instance
> -----------------------------------------------------------------------
>
> Key: GERONIMO-515
> URL: http://nagoya.apache.org/jira/browse/GERONIMO-515
> Project: Apache Geronimo
> Type: Bug
> Components: security
> Versions: 1.0-M3
> Reporter: David Jencks
> Assignee: Alan Cabrera
>
> From javadoc for getPolicyConfiguration(String contextID, boolean remove)
> * For a given value of policy context identifier, this method must always
> * return the same instance of PolicyConfiguration and there must be at
> * most one actual instance of a PolicyConfiguration with a given policy
> * context identifier (during a process context). <p>
> *
> * To preserve the invariant that there be at most one PolicyConfiguration
> * object for a given policy context, it may be necessary for this method
> * to be thread safe.
> From our implementation:
> if (configuration == null || remove) {
> configuration = new PolicyConfigurationGeneric(contextID);
> configurations.put(contextID, configuration);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira