Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-515

GeronimoPolicyConfigurationFactory does not always return same instance

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-M3
    • Fix Version/s: None
    • Component/s: security
    • Labels:
      None

      Description

      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);

        Attachments

          Activity

            People

            • Assignee:
              maguro Alan Cabrera
              Reporter:
              djencks David Jencks
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: