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

If any failure during deletion of alias from a cluster , exception thrown is misleading

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

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.5.0, 0.6.0
    • None
    • KnoxCLI
    • None

    Description

      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).

       public void removeCredential(String alias, KeyStore ks) {
          if (ks != null) {
            try {
              if (ks.containsAlias(alias)) {
                ks.deleteEntry(alias);
              }
            } catch (KeyStoreException e) {
              LOG.failedToAddCredential(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:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment