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 2017/05/25 18:32:04 UTC
[jira] [Commented] (KNOX-950) wss:// in service causes "Bad or
malformed url" exception - Websockets
[ https://issues.apache.org/jira/browse/KNOX-950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16025171#comment-16025171 ]
ASF subversion and git services commented on KNOX-950:
------------------------------------------------------
Commit 5022bb43aff894fe5f596a8f5ad551693a48deab in knox's branch refs/heads/master from [~moresandeep]
[ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=5022bb4 ]
KNOX-950 - Fix a bug that prevents wss:// protocol from connection to websocket backend.
> wss:// in service causes "Bad or malformed url" exception - Websockets
> ----------------------------------------------------------------------
>
> Key: KNOX-950
> URL: https://issues.apache.org/jira/browse/KNOX-950
> Project: Apache Knox
> Issue Type: Bug
> Reporter: Sandeep More
> Assignee: Sandeep More
> Fix For: 0.13.0
>
> Attachments: KNOX-950.001.patch
>
>
> When wss:// protocol is used for websocket then the following error is thrown
> {code}
> (GatewayWebsocketHandler.java:getMatchedBackendURL(202)) - Bad or malformed url: java.net.MalformedURLException: unknown protocol: wss
> java.net.MalformedURLException: unknown protocol: wss
> at java.net.URL.<init>(URL.java:600)
> at java.net.URL.<init>(URL.java:490)
> at java.net.URL.<init>(URL.java:439)
> at org.apache.hadoop.gateway.websockets.GatewayWebsocketHandler.getMatchedBackendURL(GatewayWebsocketHandler.java:185)
> at org.apache.hadoop.gateway.websockets.GatewayWebsocketHandler.createWebSocket(GatewayWebsocketHandler.java:135)
> at org.eclipse.jetty.websocket.server.WebSocketServerFactory.acceptWebSocket(WebSocketServerFactory.java:166)
> at org.eclipse.jetty.websocket.server.WebSocketServerFactory.acceptWebSocket(WebSocketServerFactory.java:153)
> at org.eclipse.jetty.websocket.server.WebSocketHandler.handle(WebSocketHandler.java:97)
> at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
> at org.eclipse.jetty.server.Server.handle(Server.java:499)
> at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
> at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
> at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
> at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
> at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
> at java.lang.Thread.run(Thread.java:748)
> {code}
> ws:// works as expected.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)