question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Delete the group API interface bug

See original GitHub issue

When 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

image

Adapter

image

Datebase & Cache

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
tangyang9464commented, Jun 7, 2022

@Memory63 As I said above, the implementation of jdbc-adapter is wrong. We will fix it later. Could you @imp2002 fix it?

0reactions
imp2002commented, Jun 7, 2022

OK, i will fix it.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found