You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/11/12 01:03:00 UTC

[jira] [Commented] (KNOX-2099) knoxshell buildTrustStore doesn't work on a url without a port

    [ https://issues.apache.org/jira/browse/KNOX-2099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16971944#comment-16971944 ] 

ASF subversion and git services commented on KNOX-2099:
-------------------------------------------------------

Commit 53a106c27c1188895bdd66be61d5322a9fbf6751 in knox's branch refs/heads/master from Sandor Molnar
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=53a106c ]

KNOX-2099 - Using the default port of the protocol when no port is declared in the URL when building truststore. (#189)



> knoxshell buildTrustStore doesn't work on a url without a port
> --------------------------------------------------------------
>
>                 Key: KNOX-2099
>                 URL: https://issues.apache.org/jira/browse/KNOX-2099
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: KnoxShell
>    Affects Versions: 1.3.0
>            Reporter: Kevin Risden
>            Assignee: Sandor Molnar
>            Priority: Major
>              Labels: beginner
>             Fix For: 1.4.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> knoxshell buildTrustStore doesn't work on a url without a port
> {code:java}
> ./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
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)