Skip to content

[JDBC] Follow-ups to the hostnameOverride connection property #1442

Open

Description

@jbonofre

Follow-up to #1363, which added the hostnameOverride connection property (#1319).

  • The ArrowFlightSqlClientHandler.Builder copy constructor copies hostnameOverride, although the override is only valid for the original host and port. getStreams, the only caller, resets it today, but a future caller that copies the builder and changes the host or port would verify that endpoint against the override.
  • ArrowFlightConnectionConfigImpl.getHostnameOverride() returns "" for hostnameOverride=, while its Javadoc says it returns null. Only the builder normalizes blank values.
  • testHostnameOverrideIsIgnoredWithoutEncryption passes whatever happens to the override: it makes no RPC, and a plaintext channel accepts any authority.
  • The docs don't say that the override replaces the whole :authority, so the port is no longer sent.

Activity

  1. added this to the 20.0.0 milestone on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions