-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fixed the default port for https and http in admin client #4623
Conversation
@merlimat can you describe the exact issue? |
@rdhabalia For admin client it results that |
@merlimat Is this a breaking change? For example, if a user has set up a pulsar cluster and use https://example.pulsar.com. Right now it will be connecting to port 8443, because the default http and https ports for Pulsar are 8080 and 8443. With your change, the client will be connect to 80 and 443, but fail. If Pulsar's default http and https ports are 8080 and 8443, we should try to stick to Pulsar's default value, not the general http and https default values. Otherwise it might be break Pulsar 2.3.x clients, right? |
I think the breaking change was in #3249. Before that,
The fact that on server side we use 8080 and 8443 by default, shouldn't mean that a client should hide the port for that. This is seriously confusing. Now, imagine debugging why the same url works in pulsar-admin but it doesn't if you try with http directly. |
I don't think #3249 is a breaking change. If I remembered correctly, prior to #3249, you had to specify port in service url in order to make it work. it doesn't resolve directly to 443 for https or 80 for http. #3249 introduced the capability for resolving server url to default ports without specifying the port. I used 8080 for http and 8443 for https because those were the default ports when you setup a pulsar cluster.
agreed. If so, I would rather suggesting adding constraints that port is required. This will makes the behavior same as prior to #3249. |
OK. Then I am fine with this change. |
retest this please |
* Fixed the default port for https and http in admin client * Fixed test expectation * Removed space added by mistake
* Fixed the default port for https and http in admin client * Fixed test expectation * Removed space added by mistake (cherry picked from commit c15c867)
Motivation
After #3249, the client is not able to use the correct default port for https, switching instead to the non-default of 8443.
This makes it very difficult and confusing to use standard ports for the service.