Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Casbin v2.77 — RemovePolicies partial delete when condition has commas

6-field p policies (last field = quoted condition). Batch delete 14 exact rules → only 9 removed. The 5 not removed all have commas in the condition (in ('( true','false )'), =~ '^a,b,c$', etc.). Rules without commas in the condition delete fine. LoadPolicyLine loads all of them.

Ask: How to reliably delete when the quoted condition contains commas? Public parse API like LoadPolicyLine?

Full examples + all failing policy lines: https://github.com/apache/casbin/issues/1733

~350k policies | casbin/v2 v2.77.x

8views
2users
1 minread
1 / 2
May 25