Skip to content

GH-1232: Document and test refusing unencrypted endpoint locations - #1476

Open
jbonofre wants to merge 1 commit into
apache:mainfrom
jbonofre:gh-1232-endpoint-tls-followup
Open

jbonofre wants to merge 1 commit into
apache:mainfrom
jbonofre:gh-1232-endpoint-tls-followup

Conversation

@jbonofre

Copy link
Copy Markdown
Member

What's Changed

Follow-up to #1233, which made an encrypted connection refuse endpoint locations that don't use TLS.

  • Document the new behaviour under useEncryption in the Flight SQL JDBC driver docs, since connections that used to fall back to plaintext now fail.
  • Add a test showing that after an endpoint location without TLS is refused, the endpoint's remaining locations are still tried.
  • In the existing test, close the handler and correct the comment on verifyNoInteractions(sqlClient): it checks that the original connection isn't used instead, while the error message is what shows that no connection was attempted.

Closes #1232.

Follow-up to apache#1233. Document under useEncryption that endpoint
locations without TLS are refused on an encrypted connection, test
that the endpoint's remaining locations are still tried, and close the
handler in the test.
@jbonofre jbonofre added the documentation PRs that improve documentation. label Nov 15, 2026
@github-actions github-actions Bot added this to the 20.0.0 milestone Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation PRs that improve documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Java][FlightSQL][JDBC] Driver drops TLS for endpoint locations advertised by the server

2 participants