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

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

Commit 431dcd24918fd8c6b4b60c30fd287061670f805b in knox's branch 
refs/heads/master from Rajat Goel
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=431dcd2 ]

KNOX-1996: Adding changes to remove extra / while generating backedn … (#142)

* KNOX-1996: Adding changes to remove extra / while generating backedn url. 
Additionally, proxy messages to websocket even if service uri has http/https 
protocol

* KNOX-1996: Code review fixes

* KNOX-1996: More code review fixes. Creating base class for WebsocketEcho and 
WebsocketEcho1 tests

* KNOX-1996: Code review fixes - Renaming test case and adding new test case 
for backedn url validation

* KNOX-1996: Code review fixes in test case


> For websocket connections, backend url generated is incorrect - has an extra 
> '/' in path
> ----------------------------------------------------------------------------------------
>
>                 Key: KNOX-1996
>                 URL: https://issues.apache.org/jira/browse/KNOX-1996
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 1.0.0, 1.1.0, 1.2.0, 1.3.0
>         Environment: HDP 3.1.0
>            Reporter: Rajat Goel
>            Assignee: Rajat Goel
>            Priority: Major
>             Fix For: 1.4.0
>
>         Attachments: KNOX-1996.patch
>
>          Time Spent: 5h
>  Remaining Estimate: 0h
>
> {quote}{color:#000000}For websocket connections, while generating backend url 
> in _org.apache.knox.gateway.websockets.GatewayWebsocketHandler_ 
> (_getMatchedBackendURL()_ API), Knox appends '_pathservice[1]_' to 
> '_backend_' StringBuffer if Service url doesn't end with '/ws'. As a result, 
> URI generated had an extra '/' eg: 
> {color}{color:#000000}ws://{color}[rafd001-mst-01.cloud.in.guavus.com:11011//_sock/411/anq2kfzp/websocket|http://rafd001-mst-01.cloud.in.guavus.com:11011//_sock/411/anq2kfzp/websocket]{color:#000000}
>  and my UI backend which uses SockJS lib was not responding for 2 minutes and 
> eventually closing connection.{color}
> {color:#000000}Correct Url which should have been generated is: 
> ws://[rafd001-mst-01.cloud.in.guavus.com:11011/_sock/411/anq2kfzp/websocket|http://rafd001-mst-01.cloud.in.guavus.com:11011//_sock/411/anq2kfzp/websocket]{color}
> {quote}



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

Reply via email to