Skip to content

fix(execution-api): support connection IDs with slashes in get_connection route#69439

Open
Alwaysgaurav1 wants to merge 1 commit into
apache:mainfrom
Alwaysgaurav1:fix/57864-connections-path-slash
Open

fix(execution-api): support connection IDs with slashes in get_connection route#69439
Alwaysgaurav1 wants to merge 1 commit into
apache:mainfrom
Alwaysgaurav1:fix/57864-connections-path-slash

Conversation

@Alwaysgaurav1

Copy link
Copy Markdown

Description

The Execution API endpoint GET /execution/connections/{connection_id} uses a standard path parameter {connection_id}, which causes FastAPI to treat slashes in connection IDs as path separators. This means connection IDs containing slashes (e.g. my/slashed/conn) return a 404 Not Found instead of resolving correctly.

This is inconsistent with the Variables endpoint which already uses {variable_key:path} to support keys with slashes.

This PR fixes the issue by changing the route definition from /{connection_id} to /{connection_id:path}, allowing connection IDs with slashes to be properly resolved.

A new unit test test_connection_get_with_slash is added to verify that connections with slashed IDs can be fetched successfully.

Closes: #57864

@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:task-sdk labels Jul 6, 2026
@Alwaysgaurav1 Alwaysgaurav1 force-pushed the fix/57864-connections-path-slash branch from 1e878e8 to 20a4b15 Compare July 9, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:task-sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Secrets with slashed IDs return AirflowNotFoundException

1 participant