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

knoxshell doesn't handle invalid TLS well

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • KnoxShell

    Description

      knoxshell doesn't handle invalid TLS well. TLS trust failure should have a nice message instead of just "Failure to acquire token. Please verify your credentials and Knox URL and try again."

      # ./bin/knoxshell.sh init https://knox_host/default/knox-token
      Enter username: guest
      Enter password:
      log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
      log4j:WARN Please initialize the log4j system properly.
      log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
      Failure to acquire token. Please verify your credentials and Knox URL and try again.
      

      Most likely we have a too aggressive catch block. The interesting part is that this message is logged but other messages aren't most likely due to KNOX-2100

      Attachments

        Issue Links

          Activity

            People

              ljmiv Ljmiv
              krisden Kevin Risden
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m