Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-505

Failure during removing credential from Cluster should exit with proper error message

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.6.0
    • None
    • None

    Description

      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.

      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 );
          }
        }
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            andreina J.Andreina
            andreina J.Andreina
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment