Re: [I] Airflow 404 Flask cannot find /security/login API [airflow]

2025-06-10 Thread via GitHub


vincbeck commented on issue #51551:
URL: https://github.com/apache/airflow/issues/51551#issuecomment-295439

   Please let me know :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] Airflow 404 Flask cannot find /security/login API [airflow]

2025-06-10 Thread via GitHub


HuanjieGuo commented on issue #51551:
URL: https://github.com/apache/airflow/issues/51551#issuecomment-2959919753

   @vincbeck thanks, let me try to back-port the change into our own FAB 
provider branch


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] Airflow 404 Flask cannot find /security/login API [airflow]

2025-06-10 Thread via GitHub


vincbeck closed issue #51551: Airflow 404 Flask cannot find /security/login API
URL: https://github.com/apache/airflow/issues/51551


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] Airflow 404 Flask cannot find /security/login API [airflow]

2025-06-10 Thread via GitHub


vincbeck commented on issue #51551:
URL: https://github.com/apache/airflow/issues/51551#issuecomment-2959497052

   I could not find out where and when this API has been removed. I actually 
could not find how this API was used in 2.8.4. Nevertheless, this API has been 
removed at some point. I created #51578 to add it back. The bad news is, this 
will be only available in last version of FAB provider which is only compatible 
with Airflow 3. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] Airflow 404 Flask cannot find /security/login API [airflow]

2025-06-10 Thread via GitHub


potiuk commented on issue #51551:
URL: https://github.com/apache/airflow/issues/51551#issuecomment-2959266165

   cc: @vincbeck -> maybe that rings a bell ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] Airflow 404 Flask cannot find /security/login API [airflow]

2025-06-09 Thread via GitHub


HuanjieGuo commented on issue #51551:
URL: https://github.com/apache/airflow/issues/51551#issuecomment-2957214431

   Thanks @potiuk , This looks like a Flask original API, and it doesn't work 
after we upgrade airflow to 2.10.5.
   
   It is tricky because I check the API in Flask AppBuilder, it is still there. 
However, we cannot call it.
   
   
https://github.com/dpgaspar/Flask-AppBuilder/blob/v4.5.2/flask_appbuilder/security/api.py#L32


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[I] Airflow 404 Flask cannot find /security/login API [airflow]

2025-06-09 Thread via GitHub


potiuk opened a new issue, #51551:
URL: https://github.com/apache/airflow/issues/51551

   
   ### Discussed in https://github.com/apache/airflow/discussions/51550
   
   
   
   Originally posted by **HuanjieGuo** June  9, 2025
   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### If "Other Airflow 2 version" selected, which one?
   
   2.10.5
   
   ### What happened?
   
   We are using airflow 2.8.4, and recently we upgrade it to 2.10.5
   
   ### Environment for Airflow 2.8.4
   
   - Python version: 3.10
   - Flask version: 
   
   ```
   Flask-AppBuilder==4.3.11
   Flask-Babel==2.0.0
   Flask-Bcrypt==1.0.1
   Flask-Caching==2.1.0
   Flask-JWT-Extended==4.6.0
   Flask-Limiter==3.5.1
   Flask-Login==0.6.3
   Flask-SQLAlchemy==2.5.1
   Flask-Session==0.5.0
   Flask-WTF==1.2.1
   Flask==2.2.5
   ```
   
   Call /security/login API:
   
   https://github.com/user-attachments/assets/ef976819-1ac1-4bd6-b84b-3ceab844a998";
 />
   
   
   ### Environment for Airflow 2.10.5
   
   - Python version: 3.10
   - Flask version: 
   
   ```
   Flask-AppBuilder==4.5.2
   Flask-Babel==2.0.0
   Flask-Bcrypt==1.0.1
   Flask-Caching==2.3.0
   Flask-JWT-Extended==4.7.1
   Flask-Limiter==3.10.1
   Flask-Login==0.6.3
   Flask-SQLAlchemy==2.5.1
   Flask-Session==0.5.0
   Flask-WTF==1.2.2
   Flask==2.2.5
   ```
   
   Call /security/login API:
   
   https://github.com/user-attachments/assets/e6ca32db-cb56-49e6-a266-8edb82e8d0b2";
 />
   
   
   Error Log:
   ```
   {
 "detail": "The requested URL was not found on the server. If you entered 
the URL manually please check your spelling and try again.",
 "status": 404,
 "title": "Not Found",
 "type": "about:blank"
   }
   ```
   
   /security/login API in  Flask-AppBuilder==4.5.2
   
   
https://github.com/dpgaspar/Flask-AppBuilder/blob/v4.5.2/flask_appbuilder/security/api.py#L32
   
   /security/login API in  Flask-AppBuilder==4.3.11
   
   
https://github.com/dpgaspar/Flask-AppBuilder/blob/v4.3.11/flask_appbuilder/security/api.py#L32
   
   ### What you think should happen instead?
   
   We should be able to call the /security/login API in 2.10.5
   
   ### How to reproduce
   
   call this  /security/login in airflow 2.10.5 env 
   
   ### Operating System
   
   ubuntu 22.04
   
   ### 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
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] Airflow 404 Flask cannot find /security/login API [airflow]

2025-06-09 Thread via GitHub


potiuk commented on issue #51551:
URL: https://github.com/apache/airflow/issues/51551#issuecomment-2956772800

   @HuanjieGuo - by mistake I converted the original issue into discussion -> 
recreated it here. https://github.com/apache/airflow/issues/51544. -> I am not 
sure what is the issue though. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] Airflow 404 Flask cannot find /security/login API [airflow]

2025-06-09 Thread via GitHub


potiuk closed issue #51544: Airflow 404 Flask cannot find /security/login API
URL: https://github.com/apache/airflow/issues/51544


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] Airflow 404 Flask cannot find /security/login API [airflow]

2025-06-09 Thread via GitHub


potiuk commented on issue #51544:
URL: https://github.com/apache/airflow/issues/51544#issuecomment-2956736515

   Please use: 
https://airflow.apache.org/docs/apache-airflow-providers-fab/stable/auth-manager/token.html
 from FAB provider. FAB hase been moved to FAB provider and you should use FAB 
provider exposed API for that.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[I] Airflow 404 Flask cannot find /security/login API [airflow]

2025-06-09 Thread via GitHub


HuanjieGuo opened a new issue, #51544:
URL: https://github.com/apache/airflow/issues/51544

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### If "Other Airflow 2 version" selected, which one?
   
   2.10.5
   
   ### What happened?
   
   We are using airflow 2.8.4, and recently we upgrade it to 2.10.5
   
   ### Environment for Airflow 2.8.4
   
   - Python version: 3.10
   - Flask version: 
   
   ```
   Flask-AppBuilder==4.3.11
   Flask-Babel==2.0.0
   Flask-Bcrypt==1.0.1
   Flask-Caching==2.1.0
   Flask-JWT-Extended==4.6.0
   Flask-Limiter==3.5.1
   Flask-Login==0.6.3
   Flask-SQLAlchemy==2.5.1
   Flask-Session==0.5.0
   Flask-WTF==1.2.1
   Flask==2.2.5
   ```
   
   Call /security/login API:
   
   https://github.com/user-attachments/assets/ef976819-1ac1-4bd6-b84b-3ceab844a998";
 />
   
   
   ### Environment for Airflow 2.10.5
   
   - Python version: 3.10
   - Flask version: 
   
   ```
   Flask-AppBuilder==4.5.2
   Flask-Babel==2.0.0
   Flask-Bcrypt==1.0.1
   Flask-Caching==2.3.0
   Flask-JWT-Extended==4.7.1
   Flask-Limiter==3.10.1
   Flask-Login==0.6.3
   Flask-SQLAlchemy==2.5.1
   Flask-Session==0.5.0
   Flask-WTF==1.2.2
   Flask==2.2.5
   ```
   
   Call /security/login API:
   
   https://github.com/user-attachments/assets/e6ca32db-cb56-49e6-a266-8edb82e8d0b2";
 />
   
   
   Error Log:
   ```
   {
 "detail": "The requested URL was not found on the server. If you entered 
the URL manually please check your spelling and try again.",
 "status": 404,
 "title": "Not Found",
 "type": "about:blank"
   }
   ```
   
   /security/login API in  Flask-AppBuilder==4.5.2
   
   
https://github.com/dpgaspar/Flask-AppBuilder/blob/v4.5.2/flask_appbuilder/security/api.py#L32
   
   /security/login API in  Flask-AppBuilder==4.3.11
   
   
https://github.com/dpgaspar/Flask-AppBuilder/blob/v4.3.11/flask_appbuilder/security/api.py#L32
   
   ### What you think should happen instead?
   
   We should be able to call the /security/login API in 2.10.5
   
   ### How to reproduce
   
   call this  /security/login in airflow 2.10.5 env 
   
   ### Operating System
   
   ubuntu 22.04
   
   ### 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
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org