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

    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

        1. KNOX-488.1.patch
          2 kB
          J.Andreina

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: