Skip to content

FastAPI DAGResponse does not strip whitespace in comma-separated owners #52215

@choo121600

Description

@choo121600

Apache Airflow version

3.0.2

If "Other Airflow 2 version" selected, which one?

No response

What happened?

When defining multiple DAG owners as a comma-separated string with spaces (e.g., "owner1, owner2, owner3"), the FastAPI response returns owner names with leading spaces, such as ["owner1", " owner2", " owner3"]. This causes inconsistent display in the UI and potentially breaks consumers expecting clean owner names.

What you think should happen instead?

The owners should be returned as a clean list of strings, with whitespace stripped:
["owner1", "owner2", "owner3"]

How to reproduce

default_args={
"owner": "owner1, owner2, owner3"
},

Operating System

os x

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:APIAirflow's REST/HTTP APIarea:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions