You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Brahma Reddy Battula (Jira)" <ji...@apache.org> on 2020/04/10 18:16:03 UTC

[jira] [Updated] (HADOOP-14231) Using parentheses is not allowed in auth_to_local regex

     [ https://issues.apache.org/jira/browse/HADOOP-14231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brahma Reddy Battula updated HADOOP-14231:
------------------------------------------
    Target Version/s: 3.4.0  (was: 3.3.0)

Bulk update: moved all 3.3.0 non-blocker issues, please move back if it is a blocker.

> Using parentheses is not allowed in auth_to_local regex
> -------------------------------------------------------
>
>                 Key: HADOOP-14231
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14231
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Andras Bokor
>            Assignee: Andras Bokor
>            Priority: Minor
>         Attachments: HADOOP-14231.01.patch
>
>
> I tried to set the following  property for auth_to_local property:
> {code}"RULE:[2:$1]((n|d)n)s/.*/hdfs//{code}
> but I got the following exception:
> {code}Exception in thread "main" java.util.regex.PatternSyntaxException: Unclosed group near index 9
> (nn|dn|jn{code}
> I found that this occurs because {{ruleParser}} in {{org.apache.hadoop.security.authentication.util.KerberosName}} excludes closing parentheses.
> I do not really see the value of excluding parentheses (do I miss something?) so I would remove this restriction to be able to use more regex functionalities.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org