Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-14938

Some user-specified auth-to-local rules fail to render when auto generating auth-to-local rules

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.2
    • ambari-server

    Description

      When processing the user-specified auth-to-local rules while automatically generating auth-to-local rule sets using org.apache.ambari.server.controller.AuthToLocalBuilder, some rules fail to render.

      This occurs when escape characters are used in the replacement pattern or replacement string of the rule, where a role looks like:

      RULE: [n:string](regexp)s/pattern/replacement/[g]
      

      To fix this issue, the regular expression used to parse the rules need to be augmented to allow for those characters.

      Attachments

        1. AMBARI-14938_trunk_02.patch
          47 kB
          Robert Levas
        2. AMBARI-14938_trunk_01.patch
          41 kB
          Robert Levas
        3. AMBARI-14938_branch-2.2_02.patch
          47 kB
          Robert Levas
        4. AMBARI-14938_branch-2.2_01.patch
          41 kB
          Robert Levas

        Issue Links

          Activity

            People

              rlevas Robert Levas
              rlevas Robert Levas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: