You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/02/17 18:39:00 UTC

[jira] [Commented] (AMBARI-22944) Wrong variable in KerberosKeytabDescriptor#toMap()

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

Ted Yu commented on AMBARI-22944:
---------------------------------

Thanks for taking this, Robert.

> Wrong variable in KerberosKeytabDescriptor#toMap()
> --------------------------------------------------
>
>                 Key: AMBARI-22944
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22944
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>            Reporter: Ted Yu
>            Assignee: Robert Levas
>            Priority: Major
>             Fix For: 2.7.0
>
>
> {code:title=org/apache/ambari/server/state/kerberos/KerberosKeytabDescriptor.java:466}
>     if (!owner.isEmpty()) {
>       map.put(KEY_GROUP, group);
>     }
> {code}
> The if statement checks wrong variable.
> Should read
> {code}
>     if (!group.isEmpty()) {
>       map.put(KEY_GROUP, group);
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)