[
https://issues.apache.org/jira/browse/KNOX-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14323045#comment-14323045
]
ASF subversion and git services commented on KNOX-505:
------------------------------------------------------
Commit 4a2f59404abf631ed07c61c2495fdf481ef27b87 in knox's branch
refs/heads/master from [~kevin.minder]
[ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=4a2f594 ]
KNOX-505: Failure during removing credential from Cluster should exit with
proper error message.
Contributed by J.Andreina.
> Failure during removing credential from Cluster should exit with proper error
> message
> -------------------------------------------------------------------------------------
>
> Key: KNOX-505
> URL: https://issues.apache.org/jira/browse/KNOX-505
> Project: Apache Knox
> Issue Type: Bug
> Reporter: J.Andreina
> Assignee: J.Andreina
> Priority: Minor
> Fix For: 0.6.0
>
> Attachments: KNOX-505.1.patch
>
>
> Failure during removing credential from Cluster should exit with proper error
> message
> Currently for the above case, it displays that addition of credential has
> failed.
> {noformat}
> DefaultKeystoreService.java
> public void removeCredentialForCluster(String clusterName, String alias) {
> KeyStore ks = getCredentialStoreForCluster(clusterName);
> removeCredential(alias, ks);
> final File keyStoreFile = new File( keyStoreDir + clusterName +
> CREDENTIALS_SUFFIX );
> try {
> writeKeystoreToFile(ks, keyStoreFile);
> } catch (KeyStoreException e) {
> LOG.failedToAddCredentialForCluster( clusterName, e );
> } catch (NoSuchAlgorithmException e) {
> LOG.failedToAddCredentialForCluster( clusterName, e );
> } catch (CertificateException e) {
> LOG.failedToAddCredentialForCluster( clusterName, e );
> } catch (IOException e) {
> LOG.failedToAddCredentialForCluster( clusterName, e );
> }
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)