-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite UI redirection loop after deactivating an active user #35486
Conversation
Would be great to get a unit test for that one - to avoid regression |
@potiuk I was just working on it :) |
Some static checks (looks like space). I do recommend to install pre-commit (as usual :)) - then it will automatically fix things for you at commit time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal of the unit tests is:
- testing if our code works as expected
- avoiding breaking the functionality of the code in the future
So, when you want to write a new test for a bug fix, the test should fail without the fix and pass after implementing it, which is not the case here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
BTW same issue happens if user try to login without permission on airflow homepage. We probably need to handle this case as well. |
No permissions? You mean a real users that has no roles assigned at all ? |
…e#35486) * Infinite UI redirection loop after deactivating an active user
This PR fixes an infinite redirection loop to /logout when deactivating logged in user.
closes: #35335