Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-528

ConfigurationInterpolator class does not load if security manager enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9
    • 2.0
    • Interpolation
    • None

    Description

      ConfigurationInterpolator class does not load if security manager is enabled because its static initializer instantiate EnvironmentLookup which instantiate EnvironmentConfiguration which use System.getenv()in its constructor. But System.getenv() can fail if RuntimePermission("getenv.*") is not granted.
      Notice this "bug" is annoying to catch because a NoClassDefFoundError is thrown when classloading ConfigurationInterpolator without the good AccessControlException showing the real source of the problem.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sauvage Laurent Sauvage
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: