Delete the group API interface bug
See original GitHub issueWhen using this interface enforcer. RemoveNameGroupingPolicy (" g ", “role1”) to delete group, database data deleted successfully, but cached data is still there.
POM
<dependency>
<groupId>org.casbin</groupId>
<artifactId>jcasbin</artifactId>
<version>1.21.0</version>
</dependency>
<dependency>
<groupId>org.casbin</groupId>
<artifactId>jdbc-adapter</artifactId>
<version>2.2.1</version>
</dependency>
Execute Code
Adapter
![image](https://user-images.githubusercontent.com/35125750/171542218-8c852356-acd1-4181-acf5-2ac1bcd48e4c.png)
Datebase & Cache
![image](https://user-images.githubusercontent.com/35125750/171542292-469dd1bf-92c9-4fdf-93ee-f900226f643d.png)
Issue Analytics
- State:
- Created a year ago
- Comments:14 (10 by maintainers)
Top Results From Across the Web
44 - Support for deletion of groups by REST API - gerrit
Users (or at least Administrators) should be able to delete groups through the web UI, especially if the group is never used in...
Read more >Cannot remove groups from users using the REST API /rest ...
Trying to remove groups from users in JIRA through the rest API /rest/api/2/group/user endpoint results in the following error "Cannot edit group ......
Read more >ROLE AND GROUP DELETION USING REST API NOT ... - IBM
When using a REST GRC API DELETE call to remove a role from the user or user from the group, the call resolves...
Read more >Cannot delete Group - Progress Community
Trying to move sub groups from dynamic group and delete root dynamic group then. Error message appears which says "Failed to delete group"....
Read more >DeleteGroup - AWS Resource Groups
Deletes the specified resource group. Deleting a resource group does not delete any resources that are members of the group; it only deletes...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Memory63 As I said above, the implementation of
jdbc-adapter
is wrong. We will fix it later. Could you @imp2002 fix it?OK, i will fix it.