Details
Description
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: ws://rafd001-mst-01.cloud.in.guavus.com:11011//_sock/411/anq2kfzp/websocket and my UI backend which uses SockJS lib was not responding for 2 minutes and eventually closing connection.
Correct Url which should have been generated is: ws://rafd001-mst-01.cloud.in.guavus.com:11011/_sock/411/anq2kfzp/websocket
Attachments
Attachments
Issue Links
- links to