[ 
https://issues.apache.org/jira/browse/AMBARI-14938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15137843#comment-15137843
 ] 

Hudson commented on AMBARI-14938:
---------------------------------

SUCCESS: Integrated in Ambari-branch-2.2 #304 (See 
[https://builds.apache.org/job/Ambari-branch-2.2/304/])
AMBARI-14938. Some user-specified auth-to-local rules fail to render (rlevas: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c42a570ea188af40cb8f3a9110ef508567cc16e4])
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/AuthToLocalBuilder.java
* 
ambari-server/src/test/java/org/apache/ambari/server/controller/AuthToLocalBuilderTest.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/KerberosHelperImpl.java


> 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
>              Labels: kerberos
>             Fix For: 2.2.2
>
>         Attachments: AMBARI-14938_branch-2.2_01.patch, 
> AMBARI-14938_branch-2.2_02.patch, AMBARI-14938_trunk_01.patch, 
> AMBARI-14938_trunk_02.patch
>
>
> 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