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

Deleted a role for an user, but this user staill has the permission about the deleted role. #3388

Closed
yanjunnf opened this issue Jul 20, 2020 · 1 comment
Assignees
Labels
area/Nacos console Related to Nacos consle kind/bug Category issues or prs related to bug.
Milestone

Comments

@yanjunnf
Copy link
Contributor

Issue Description

Type: bug report or feature request

Describe what happened (or what feature you want)

When deleted a role(role1) for an user, the user should loss the associated permission of role1, but in fact, the user still has the permission of role1.

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

  1. Create an user (user1)
  2. Check the persmission for user1
  3. Create a role(role1) which links the user user1
  4. Delete the role1
  5. Check the permission for user1 again

Tell us your environment

Nacos1.3.1
nacos.core.auth.enabled=true
nacos.core.auth.caching.enabled=true

Anything else we need to know?

@yanjunnf yanjunnf changed the title Deleted a role for an user, but this user staill has the permission about deleted role. Deleted a role for an user, but this user staill has the permission about the deleted role. Jul 20, 2020
@yanjunnf
Copy link
Contributor Author

@i will solve it@

@KomachiSion KomachiSion added the area/Nacos console Related to Nacos consle label Jul 20, 2020
@KomachiSion KomachiSion added this to the 1.3.2 milestone Jul 20, 2020
yanjunnf pushed a commit to yanjunnf/nacos that referenced this issue Jul 23, 2020
yanjunnf added a commit to yanjunnf/nacos that referenced this issue Jul 23, 2020
yanjunnf pushed a commit to yanjunnf/nacos that referenced this issue Jul 23, 2020
yanjunnf added a commit to yanjunnf/nacos that referenced this issue Jul 23, 2020
yanjunnf added a commit to yanjunnf/nacos that referenced this issue Jul 23, 2020
@KomachiSion KomachiSion added the kind/bug Category issues or prs related to bug. label Jul 24, 2020
KomachiSion pushed a commit that referenced this issue Jul 27, 2020
… database (#3442)

* Reset nacos roles, permissions during reloading role info from database

* Add volatile to guarantee visibility in threads
lancediarmuid pushed a commit to lancediarmuid/nacos that referenced this issue Jul 27, 2020
…fo from database (alibaba#3442)

* Reset nacos roles, permissions during reloading role info from database

* Add volatile to guarantee visibility in threads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/Nacos console Related to Nacos consle kind/bug Category issues or prs related to bug.
Projects
None yet
Development

No branches or pull requests

2 participants