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

knoxshell buildTrustStore doesn't work on a url without a port

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.4.0
    • Component/s: KnoxShell
    • Labels:

      Description

      knoxshell buildTrustStore doesn't work on a url without a port

      ./bin/knoxshell.sh buildTrustStore https://knox_host
      Opening connection to knoxhost:-1...
      org.apache.knox.gateway.shell.KnoxShellException: Error while building trust store
      	at org.apache.knox.gateway.shell.KnoxSh$KnoxBuildTrustStore.execute(KnoxSh.java:194)
      	at org.apache.knox.gateway.shell.KnoxSh.run(KnoxSh.java:85)
      	at org.apache.knox.gateway.shell.KnoxSh.main(KnoxSh.java:392)
      Caused by: java.lang.IllegalArgumentException: port out of range:-1
      	at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
      	at java.net.InetSocketAddress.<init>(InetSocketAddress.java:224)
      	at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:423)
      	at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
      	at org.apache.knox.gateway.shell.KnoxSh$KnoxBuildTrustStore.fetchPublicCertsFromGatewayServer(KnoxSh.java:209)
      	at org.apache.knox.gateway.shell.KnoxSh$KnoxBuildTrustStore.execute(KnoxSh.java:186)
      	... 2 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                smolnar Sandor Molnar
                Reporter:
                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 - 1h
                  1h