You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Flight] Reject port 0 in NettyClientBuilder #1271
Port 0 is reserved and invalid for client TCP connections, but NettyClientBuilder.build() currently allows it through (it rejects only negative ports and values above 65535). The lower bound should be tightened to 1.
Four builder-based tests in the JDBC module also have a latent bug where .withPort() is never called, so the port field defaults to 0. These fail once the lower bound is tightened:
changed the title [-]Reject port 0 in NettyClientBuilder and fix tests that omit port[/-][+][Flight] Reject port 0 in NettyClientBuilder[/+]on Aug 31, 2026
Activity
[-]Reject port 0 in NettyClientBuilder and fix tests that omit port[/-][+][Flight] Reject port 0 in NettyClientBuilder[/+]ennuite commentedon Aug 31, 2026
take
ennuite commentedon Aug 31, 2026
I have a PR prepared for this one, I'll open it once #1027 is merged because the work here has a dependency on the work there.
ennuite commentedon Aug 31, 2026
This is an enhancement, I can't add the label.
apacheGH-1271: [Flight] Reject port 0 in NettyClientBuilder (apache#1282