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

ASF subversion and git services commented on KNOX-488:
------------------------------------------------------

Commit 7b986df3211f8538f0bcf74d9a8118d76f262eae in knox's branch 
refs/heads/master from [~kevin.minder]
[ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=7b986df ]

KNOX-488:  If any failure during deletion of alias from a cluster, exception 
thrown is misleading


> If any failure during deletion of alias from a cluster , exception thrown is 
> misleading
> ---------------------------------------------------------------------------------------
>
>                 Key: KNOX-488
>                 URL: https://issues.apache.org/jira/browse/KNOX-488
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: KnoxCLI
>    Affects Versions: 0.5.0, 0.6.0
>            Reporter: J.Andreina
>            Priority: Minor
>         Attachments: KNOX-488.1.patch
>
>
> I was doing testing on basic error scenarios and found that :
> If any exception occurs during  deletion of aliasname from a cluster , error 
> message displays "Failed to add credential" ( which is misleading).
> {noformat}
>  public void removeCredential(String alias, KeyStore ks) {
>     if (ks != null) {
>       try {
>         if (ks.containsAlias(alias)) {
>           ks.deleteEntry(alias);
>         }
>       } catch (KeyStoreException e) {
>         LOG.failedToAddCredential(e);
>       }
>     }
>   }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to