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 Permission throw an exception

See original GitHub issue

when I invocke enforcer.deletePermission(perm) while I have no permission assigned to anyone(no this perm record), it throws the following exception: CasbinAdapterException: Remove filtered policy error, remove 0 rows, expect least 1 rows

I’m using the default model(no conf file).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
8rV1ncommented, Sep 12, 2019

@hsluoyz you guys developed this and don’t have a basic test code? just perform a delete operation on a none exist record, it will show you the error.

0reactions
8rV1ncommented, Sep 14, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix “Cannot Delete Folder. You Need Permission To Perform ...
Just click Add and type in the user name for your Windows account and then click Check Names.
Read more >
Able to delete a file without permissions - java - Stack Overflow
So, File#delete does not actually throw an Exception when the file can't be deleted, but instead returns a boolean based on the success...
Read more >
You'll need to provide administrator ... - The Windows Club
If a user does not have the requisite permissions, Windows OS will throw up that error. This method will also work if you...
Read more >
"Access Denied" exception while trying to delete file. - MSDN
When i try to delete file, I get an exception stating "Access denied. ... Some permissions allow you to write and create new...
Read more >
master detail - Deleting Permissions from Permission Set
In order to maintain the clones I am deleting all existing children (ObjectPermissions, FieldPermissions, SetupEntityAccess records) from the ...
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