Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F16B18A9D for ; Mon, 8 Feb 2016 22:21:40 +0000 (UTC) Received: (qmail 75321 invoked by uid 500); 8 Feb 2016 22:21:40 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 75237 invoked by uid 500); 8 Feb 2016 22:21:40 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 75120 invoked by uid 99); 8 Feb 2016 22:21:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2016 22:21:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D67A12C1F58 for ; Mon, 8 Feb 2016 22:21:39 +0000 (UTC) Date: Mon, 8 Feb 2016 22:21:39 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-14938) Some user-specified auth-to-local rules fail to render when auto generating auth-to-local rules MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)