Skip to content

fix ui connection test with null host and port - #72348

Merged
potiuk merged 10 commits into
apache:mainfrom
Pedrinhonitz:main
Sep 8, 2026
Merged

potiuk merged 10 commits into
apache:mainfrom
Pedrinhonitz:main

Conversation

@Pedrinhonitz

Copy link
Copy Markdown
Contributor

Resume

Fixes #72318. In the UI's "Test Connection" feature, unused host/port fields were stored as NULL (None) in the database, while the UI sent an empty string (""). This discrepancy caused the system to treat it as a new destination, skip the password/extra merge, and pass private_key_file="***" to the hook. Now, blank host/port fields are treated as the same destination, and *** is not considered a new credential.


Issues


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: Cursor IA IDLE following the guidelines , to assist with understanding and documentation.

@Pedrinhonitz Pedrinhonitz changed the title fix(core): ui connection test with null host and port fix ui connection test with null host and port Sep 2, 2026
@potiuk potiuk added this to the Airflow 3.3.2 milestone Sep 8, 2026
@potiuk
potiuk merged commit cb3f587 into apache:main Sep 8, 2026
79 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-3-test PR Link

vatsrahul1001 added a commit that referenced this pull request Sep 9, 2026
…72747)

* fix(core): test connection api ui solved #72318

* fix(ruff): format docstring

* fix connection test with null host and port
(cherry picked from commit cb3f587)

Co-authored-by: /-\ - Pedro Henrique Klein <[email protected]>
Co-authored-by: Rahul Vats <[email protected]>
regarmukesh3g pushed a commit to regarmukesh3g/airflow that referenced this pull request Sep 27, 2026
* fix(core): test connection api ui solved apache#72318

* fix(ruff): format docstring

* fix connection test with null host and port
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.

Test Connection API discards saved credentials (unmasks fails) for connection types without host/port (e.g. Snowflake)

2 participants