You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/02/10 20:22:17 UTC

[GitHub] [airflow] gaurav1008 opened a new issue #14181: Infinite redirects when logged in with user which doesn't have any roles

gaurav1008 opened a new issue #14181:
URL: https://github.com/apache/airflow/issues/14181


   
   Airflow version: 1.10.10, 1.10.14 and 2.0.0
   
   From command line we create a user with Admin role. (lets called it "admin")
   Logged in with same user ("admin" )from Airflow UI and created a new user without any role. (lets call it "test").
   Airflow screens allows it. 
   
   Now we logged out from current "admin" user and logged in with new user "test".
   
   The screen gets into infinite redirections.
   
   Please refer to following link for issue identified in AppBuilder corresponding to sending wrong Role from Airflow screen which also leads to infinite redirects. 
   
   https://github.com/dpgaspar/Flask-AppBuilder/issues/1554
   
   Please find the document with screen shots.
   [Airflow-InfiniteRedirects.docx](https://github.com/apache/airflow/files/5961326/Airflow-InfiniteRedirects.docx)
   
   
   
   Note:-The steps to recover from this problem is to give /logout from the browser.
   


----------------------------------------------------------------
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.

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



[GitHub] [airflow] blag commented on issue #14181: Infinite redirects when logged in with user which doesn't have any roles

Posted by GitBox <gi...@apache.org>.
blag commented on issue #14181:
URL: https://github.com/apache/airflow/issues/14181#issuecomment-982921782


   How are you creating a user without a role?
   
   Attempting to reproduce this on Airflow 2.2.2. The CLI requires you to specify a `--role`, but the web UI doesn't require a role to be specified when creating a user.
   
   However, when attempting to login as that (`test`) user in the web UI, I get:
   
   > Your user has no roles and/or permissions!
   > 
   > Unfortunately your user has no roles, and therefore you cannot use Airflow.
   > 
   > Please contact your Airflow administrator (authentication may be misconfigured) or log out to try again.
   > 
   > test
   
   @gaurav1008 Can you help me reproduce this issue? Or can we close it?


-- 
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-unsubscribe@airflow.apache.org

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



[GitHub] [airflow] blag edited a comment on issue #14181: Infinite redirects when logged in with user which doesn't have any roles

Posted by GitBox <gi...@apache.org>.
blag edited a comment on issue #14181:
URL: https://github.com/apache/airflow/issues/14181#issuecomment-982921782


   How are you creating a user without a role?
   
   Attempting to reproduce this on Airflow 2.2.2. The CLI requires you to specify a `--role`, but the web UI doesn't require a role to be specified when creating a user.
   
   However, when attempting to login as that (`test`) user in the web UI, I get:
   
   > Your user has no roles and/or permissions!
   > 
   > Unfortunately your user has no roles, and therefore you cannot use Airflow.
   > 
   > Please contact your Airflow administrator (authentication may be misconfigured) or log out to try again.
   > 
   > test
   
   Edited to add: There does not seem to be infinite redirects.
   
   @gaurav1008 Can you help me reproduce this issue? Or can we close it?


-- 
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-unsubscribe@airflow.apache.org

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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #14181: Infinite redirects when logged in with user which doesn't have any roles

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #14181:
URL: https://github.com/apache/airflow/issues/14181#issuecomment-777004368


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


----------------------------------------------------------------
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.

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



[GitHub] [airflow] gaurav1008 commented on issue #14181: Infinite redirects when logged in with user which doesn't have any roles

Posted by GitBox <gi...@apache.org>.
gaurav1008 commented on issue #14181:
URL: https://github.com/apache/airflow/issues/14181#issuecomment-782283398


   Tested on below. Its showing same problem.
   
   Version: v2.0.1
   Git Version:.release:2.0.1+beb8af5ac6c438c29e2c186145115fb1334a3735


----------------------------------------------------------------
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.

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



[GitHub] [airflow] potiuk commented on issue #14181: Infinite redirects when logged in with user which doesn't have any roles

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #14181:
URL: https://github.com/apache/airflow/issues/14181#issuecomment-982938515


   It has been fixed in 2.1.4. https://github.com/apache/airflow/issues/16587 . Closing as duplicate.


-- 
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-unsubscribe@airflow.apache.org

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



[GitHub] [airflow] potiuk closed issue #14181: Infinite redirects when logged in with user which doesn't have any roles

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #14181:
URL: https://github.com/apache/airflow/issues/14181


   


-- 
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-unsubscribe@airflow.apache.org

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



[GitHub] [airflow] jhtimmins commented on issue #14181: Infinite redirects when logged in with user which doesn't have any roles

Posted by GitBox <gi...@apache.org>.
jhtimmins commented on issue #14181:
URL: https://github.com/apache/airflow/issues/14181#issuecomment-778741408


   @gaurav1008 I believe this was fixed in 2.0.1. Can you verify whether you're still seeing this issue?


----------------------------------------------------------------
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.

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