Skip to content

[v3-2-test] Remove false-positive RFC3986 underscore warning from Connection.get_uri() (#64345)#64607

Merged
vatsrahul1001 merged 1 commit intov3-2-testfrom
backport-b653b4d-v3-2-test
Apr 2, 2026
Merged

[v3-2-test] Remove false-positive RFC3986 underscore warning from Connection.get_uri() (#64345)#64607
vatsrahul1001 merged 1 commit intov3-2-testfrom
backport-b653b4d-v3-2-test

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions bot commented Apr 1, 2026

get_uri() warns about underscores in conn_type, but standard Airflow
connection types like google_cloud_platform inherently contain underscores.
The warning is not actionable for users since:

  1. Standard provider connection types (google_cloud_platform, etc.) are
    defined with underscores by the providers themselves
  2. get_uri() already handles this correctly on the very next line by
    converting underscores to dashes: self.conn_type.lower().replace('_', '-')
  3. Connections stored via Secrets Manager backends trigger this warning
    on every connection retrieval during task execution, producing noisy
    logs with no remediation path

The underscore-to-dash conversion in the URI output remains intact,
ensuring RFC3986 compliance of the generated URI.
(cherry picked from commit b653b4d)

Co-authored-by: Michael Black 4128408+MichaelRBlack@users.noreply.github.com
Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com

…nection.get_uri() (#64345)

`get_uri()` warns about underscores in `conn_type`, but standard Airflow
connection types like `google_cloud_platform` inherently contain underscores.
The warning is not actionable for users since:

1. Standard provider connection types (google_cloud_platform, etc.) are
   defined with underscores by the providers themselves
2. `get_uri()` already handles this correctly on the very next line by
   converting underscores to dashes: `self.conn_type.lower().replace('_', '-')`
3. Connections stored via Secrets Manager backends trigger this warning
   on every connection retrieval during task execution, producing noisy
   logs with no remediation path

The underscore-to-dash conversion in the URI output remains intact,
ensuring RFC3986 compliance of the generated URI.
(cherry picked from commit b653b4d)

Co-authored-by: Michael Black <4128408+MichaelRBlack@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vatsrahul1001 vatsrahul1001 merged commit beee8b6 into v3-2-test Apr 2, 2026
87 checks passed
@vatsrahul1001 vatsrahul1001 deleted the backport-b653b4d-v3-2-test branch April 2, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants