Skip to content
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

logout state clean up #3219

Merged
merged 4 commits into from
Feb 9, 2024
Merged

logout state clean up #3219

merged 4 commits into from
Feb 9, 2024

Conversation

prakashsvmx
Copy link
Member

Fixes #3210

Issue Replication steps
create a the policy as in #3210

As an admin,

  • create a bucket clients and some prefixes like test-user and test-user-1 and upload files to each prefixes.

  • create 2 users test-user and test-user1 and assign the policy.

  • in a different browser, login as test-user and navigate to the prefix and logout.
    now in the same browser login as test-user-1 and navigate . observe "Access Denied" this is due to previous state (bucket, prefix is retained) is not reset and request is made to the old state prefix. ( hard reload i.e Refresh of browser window would work as expected)

Verify the fix.
build and run the PR.
With this fix, the above steps would not result in "Access denied" error.

Copy link
Collaborator

@bexsoft bexsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bexsoft bexsoft merged commit 52137ba into minio:master Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants