Skip to content

[grid] Fix host option is not working issue#9981

Merged
diemol merged 2 commits intoSeleniumHQ:trunkfrom
chozo99:grid_host_option
Oct 25, 2021
Merged

[grid] Fix host option is not working issue#9981
diemol merged 2 commits intoSeleniumHQ:trunkfrom
chozo99:grid_host_option

Conversation

@chozo99
Copy link
Copy Markdown
Contributor

@chozo99 chozo99 commented Oct 25, 2021

this is regression bugs.
refer to #5820

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

Motivation and Context

It is not binding host info

$ java -jar selenium-server-4.0.0.jar standalone --host 127.0.0.1

$ netstat -nat | grep 4444
tcp6       0      0 :::4444                 :::*                    LISTEN

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Oct 25, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you @chozo99!

Congrats on your first contribution 🎉🎉

@diemol diemol merged commit 4a77244 into SeleniumHQ:trunk Oct 25, 2021
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

diemol added a commit that referenced this pull request Dec 15, 2021
#9981 fixed a regression where the Grid
server was binding to all interfaces, even
if a host was being configured.

However, this was not ideal for environments
like Docker, where the host value can be the
reachable IP of the machine where the containers
are running, but we cannot bind to that IP inside
the container.

This adds a flag where the user can decide if the
server should bind to the host or not, true by
default to keep the current behaviour, but it will
be configured to false by default in the docker-selenium
project.

This is a partial fix for SeleniumHQ/docker-selenium#1453
elgatov pushed a commit to elgatov/selenium that referenced this pull request Jun 27, 2022
this is regression bugs.
refer to SeleniumHQ#5820

Co-authored-by: Diego Molina <[email protected]>
elgatov pushed a commit to elgatov/selenium that referenced this pull request Jun 27, 2022
SeleniumHQ#9981 fixed a regression where the Grid
server was binding to all interfaces, even
if a host was being configured.

However, this was not ideal for environments
like Docker, where the host value can be the
reachable IP of the machine where the containers
are running, but we cannot bind to that IP inside
the container.

This adds a flag where the user can decide if the
server should bind to the host or not, true by
default to keep the current behaviour, but it will
be configured to false by default in the docker-selenium
project.

This is a partial fix for SeleniumHQ/docker-selenium#1453
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants