-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node WebSocket not working with sub-path option #13407
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## trunk #13407 +/- ##
=======================================
Coverage 58.07% 58.07%
=======================================
Files 88 88
Lines 5340 5340
Branches 224 224
=======================================
Hits 3101 3101
Misses 2015 2015
Partials 224 224 ☔ View full report in Codecov by Sentry. |
7d864d4
to
cb27bd1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Node should not need changes, the Router/Hub should be in charge of forwarding the WebSocket message to the Node and that is it. The client does not have direct access to Nodes, which is why we should not change the Nodes at all.
b42111a
to
1c9ca5c
Compare
Signed-off-by: Viet Nguyen Duc <[email protected]>
Signed-off-by: Viet Nguyen Duc <[email protected]>
@diemol Yes, the client does not have direct access to Nodes. The change is only for Router/Hub forwarding to |
Understood, thank you. It makes sense. |
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
[java] Update subPath for ProxyNodeWebsockets
Motivation and Context
Fix issue #13393 - WebSocket at
ws://ip:port/selenium-grid/sessions/{ID}/se/vnc
withselenium-grid
is thesub-path
Some info on the fix
NodeOptions
added methodgetSubPath()
to extract the subPath from configgrid-url
/hub
(in[node]
section)ProxyNodeWebsockets
, subPath is removed from the request URI before matching UrlTemplateTypes of changes
Checklist