You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Attila Magyar (Jira)" <ji...@apache.org> on 2022/05/20 14:25:00 UTC

[jira] [Created] (KNOX-2747) RemoteAliasService generates password without checking if it already exists

Attila Magyar created KNOX-2747:
-----------------------------------

             Summary: RemoteAliasService generates password without checking if it already exists
                 Key: KNOX-2747
                 URL: https://issues.apache.org/jira/browse/KNOX-2747
             Project: Apache Knox
          Issue Type: Bug
            Reporter: Attila Magyar
            Assignee: Attila Magyar


{code}
    /* Generate a new password  */
    if (generate) {
      generateAliasForCluster(clusterName, alias);
    }
{code}

the default implementation checks first

{code}
      credential = keystoreService.getCredentialForCluster(clusterName, alias);
      if (credential == null && generate) {
        generateAliasForCluster(clusterName, alias);
        credential = keystoreService.getCredentialForCluster(clusterName, alias);
      }
{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)