Trigger UI clamps Param min/max instead of rejecting out-of-range values
Los mantenedores suelen responder en 1 día
@muditagrawal2007 ya está trabajando en esto.
Desde el 27/10/2026.
- #75818 de @muditagrawal2007 — abierto
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- python, react, typescript
- Área
- backend-api-design, frontend
Línea de trabajo
Empieza en el formulario Trigger de Airflow 3, en FieldNumber.tsx, donde el issue identifica el esquema minimum y maximum que se pasan a NumberInput. Sigue cómo ese campo de entrada conserva los valores escritos y cómo el envío del formulario informa de los errores de Param JSON Schema; compáralo con el comportamiento de Trigger documentado. El trabajo estará terminado cuando los valores fuera de rango se rechacen con un error y no puedan crear un DagRun.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Under which category would you file this issue?
Airflow Core
Apache Airflow version
3.3.1
What happened and how to reproduce it?
When a DAG Param sets a minimum or maximum on an integer field, typing a value outside that range in the Airflow 3 Trigger form does not fail the trigger. The form quietly changes the number to fit the allowed range, then submits it. The run starts with the corrected value instead of being blocked.
Example DAG:
from airflow.sdk import Param, dag, task
@dag(
dag_id="repro_param_minmax_clamp",
schedule=None,
start_date=None,
catchup=False,
params={
"hold_seconds": Param(180, type="integer", minimum=1, maximum=600),
},
)
def repro():
@task
def show(params=None):
print((params or {}).get("hold_seconds"))
show()
repro()
How to reproduce
- Deploy the DAG above on Airflow 3.3.1 (also present on current
mainFieldNumber.tsx:max={param.schema.maximum},min={param.schema.minimum}). - Open Trigger DAG in the UI.
- Type
6666inhold_seconds(abovemaximum=600). - Trigger the DAG.
- Observe: the field/value becomes
600(or similar clamp), the run starts successfully, and the task prints600. - Repeat with
0or-5(belowminimum=1): the UI clamps up to1instead of blocking the trigger.
Contrast: CLI/API correctly reject the same values:
airflow dags trigger repro_param_minmax_clamp --conf '{"hold_seconds": 6666}'
# ParamValidationError: 6666 is greater than the maximum of 600
airflow dags trigger repro_param_minmax_clamp --conf '{"hold_seconds": 0}'
# ParamValidationError: 0 is less than the minimum of 1
Docs say invalid params should show a warning and not create a DagRun. The UI path never sends the invalid value, so that validation never runs.
What you think should happen instead?
- User can type a value outside
[minimum, maximum](or the field keeps the invalid typed value). - On Trigger, the UI/API fails validation (inline or form error), same as CLI/API
ParamValidationError. - No DagRun is created until the value is corrected.
Suggested direction: do not pass schema min/max into NumberInput as hard clamps (or disable clamp behavior), and rely on Param JSON Schema validation at submit time for both min and max, consistent with the documented trigger behavior and with the backend.
Operating System
Ubuntu 24.04.4 LTS
Deployment
Docker-Compose
Apache Airflow Provider(s)
No response
Versions of Apache Airflow Providers
No response
Official Helm Chart version
No response
Kubernetes Version
No response
Helm Chart configuration
No response
Docker Image customizations
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
- Lenguaje dominante
- Python
- Estrellas
- 47.3k
- Forks
- 18.2k
- Merge medio
- 17 h 25 min
- PR fusionados (30 d)
- 621
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/airflow
-
update virtualenv to 21.14.12 or later to resolve emSign security issuePosiblemente ocupada @arifrhm la tomó hace 5 días. Abiertokind:bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/airflow#75858 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
`@task.pyspark` does not template `config_kwargs` and `conn_id`Posiblemente ocupada @sdaberdaku la tomó hace 7 días. Abiertoneeds-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Deadline Alert: No support for SmtpNotifierPosiblemente ocupada @LiaoAB la tomó hace 9 días. Abiertokind:bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
apache/airflow#75452 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
RedactedIO leaks secret bytes to stdoutPosiblemente ocupada @ShivanshhhG la tomó hace 15 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/airflow#75069 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Task supervisor raises TypeError when a task log event has a key named target or msg, orphaning the task process and recording a successful task as failedPosiblemente ocupada @liwenjie200543 la tomó hace 15 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/airflow#75017 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/airflow
Issues similares
-
New InternshipAbiertonew_internship
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
get_graph warns that the oneway column is missing when no way has a oneway tagPosiblemente ocupada @HTenkanen la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
cython/cython#8110 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
fix: security 🔐 style: article/section 📝 system: data-mgmt 🗃️ system: security 🔐 system: software 💻
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
uabrc/uabrc.github.io#1267 ·
-
Link Checker ReportAbiertoBot Type: Bug Type: Documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día