Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3259

Configuration.substituteVars() needs to handle security exceptions

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.16.2
    • 0.18.0
    • conf
    • None
    • Reviewed

    Description

      Inside Configuration.substituteVars(), there is a call to System.getProperty(var); this contains the implicit assumption that the JVM will never block access to a system property, because if that is the case -such as when the Configuration is running under a restrictive security manager, a SecurityException gets thrown. This will get thrown all the way up the tree.

      Better to have some plan to handle it in situ, such as a log@warn level then leave the property unexpanded.

      Attachments

        1. 3259.patch
          0.7 kB
          Edward J. Yoon

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            udanax Edward J. Yoon
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment