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
{{ message }}
Repository navigation
Airflow DAGs On/Off toggle button not working properly with RBAC=True mode #8599
I am using an AWS ec2 instance and installed apache-airflow there. Following steps, I am doing in that instance,
After initiating airflow with 'airflow initdb', I created a user with Admin role using 'airflow create_user' option and in airflow.cfg changed rbac = True.
Again ran 'airflow initdb' and 'airflow webserver'. It initiated the webserver.
In another tab, run 'airflow scheduler'
Then using port-forwarding to port forward the 8080 port from the ec2 instance to my local machine
In my local browser, I am just opening localhost:8080/
On Airflow login page, putting credentials of the Admin user, I logged in into Airflow
After toggling ON a dag from UI, when I am refreshing the page or clicking on some other option, the DAG toggling button is automatically turning OFF. and hence I am not able to run any DAG
The button I am talking about is on the left side of the DAG name.
Activity
boring-cyborg commentedon Apr 28, 2020
Thanks for opening your first issue here! Be sure to follow the issue template!
pradige commentedon Apr 28, 2020
I'm on the same with u
<title>400 Bad Request</title>maybe y can see response
Bad Request
The CSRF token is missing.
i'm trying to figure it out but nothing to do right now
ytiam commentedon Apr 28, 2020
No Clue I am getting, whats the issue exactly happening behind
ytiam commentedon Apr 28, 2020
The following issue looks similar to ours:
https://issues.apache.org/jira/browse/AIRFLOW-2866
Adam-Leyshon commentedon Apr 28, 2020
This is caused by the latest release of Flask-AppBuilder 2.3.3 which updated jQuery to 3.5
Downgrading to FAB 2.3.2 solved it for us.
If you look in the developer console, Many errors are raised when visiting the DAG list or a DAG itself.
ytiam commentedon Apr 28, 2020
Voila...!! Downgrading to FAB 2.3.2, worked. Thanks a lot @Adam-Leyshon
pradige commentedon Apr 28, 2020
@Adam-Leyshon
thank you . it also work for me ^^
ryw commentedon Apr 28, 2020
@ryanahamilton want to look at this? (fixing the jquery 3.5 issue).
We do want fab 2.3.3 + jquery 3.5 in Airflow to clear CVE.
Constraint version of Flask-Appbuilder to non-broken version
Constraint version of Flask-Appbuilder to non-broken version
Constraint version of Flask-Appbuilder to non-broken version (#73)