Skip to content

rest api: run_id_pattern does not handle pipe(OR) operator #65129

@valerii15298

Description

@valerii15298

Under which category would you file this issue?

Providers

Apache Airflow version

3.2

What happened and how to reproduce it?

Use latest(3.2) airflow docker image, docker compose can look like this:

  airflow.localhost:
    image: apache/airflow:latest
    command: airflow standalone
    ports: "8080:8080"

Create any dummy dag and run it two times specifying run_id manually, for example 10 and 11

Using rest api v2 run:

curl 'http://localhost:8080/api/v2/dags/dag_name/dagRuns?run_id_pattern=10|11'

Empty list is returned while it should return two dag runs according to rest api docs.

Image

Interestingly when not using or but just this:

curl 'http://localhost:8080/api/v2/dags/dag_name/dagRuns?run_id_pattern=10'

It works as expected returning dag run with run_id 10

using encoded pipe with run_id_pattern=11%7C10 does not help either

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 yetpriority:mediumBug that should be fixed before next release but would not block a release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions