You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FWIW this applies to all views accepting excution_date. Practically though, users are not supposed to manually write this parameter in, and Airflow never generates an invalid execution_date string, so all we need to do is to wrap the timezone.parse() call and return 400 if the input is invalid.
uranusjr
changed the title
Invalid execution_date in query parameter will crash dag's durations page
Invalid execution_date crashes pages accepting the query parameter
Apr 13, 2022
No need to return a JSON, just a text/plain with a simple message saying execution_date is invalid. This is not going to be seen except by the more experienced users anyway, and those who are adventurous enough should be able to understand what’s going on from the short response.
Apache Airflow version
2.2.5 (latest released)
What happened
Invalid execution_date in query parameter will crash durations page since pendulum parsing exception is not handled in several views
What you think should happen instead
On
ParseError
the page should resort to some default value like in grid page or show an error flash message instead of crash.How to reproduce
Operating System
Ubuntu 20.04
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: