Robert Levas created AMBARI-14938:
-------------------------------------

             Summary: Some user-specified auth-to-local rules fail to render 
when auto generating auth-to-local rules
                 Key: AMBARI-14938
                 URL: https://issues.apache.org/jira/browse/AMBARI-14938
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.1.0
            Reporter: Robert Levas
            Assignee: Robert Levas
             Fix For: 2.2.2


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:

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

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




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to