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

i was wondering if my grouping 'g, , ' contains a cycle.
What can it cause ?
can the enforcement return a false when it should be true ?

is there any date for next version including this optimization ?

Instead of using a lock per enforcer, this can optimize time response

Hello,
I checked the code of Synced Enforcer, is there a reason to use a static Lock ?
private final static ReentrantReadWriteLock READ_WRITE_LOCK = new ReentrantReadWriteLock();

Hello
I’m using jCasbin in RBAC mode and I’m facing an intermittent issue where an enforcement that should return true sometimes returns false.

Model (matcher)
m = g(r.sub, p.sub)
&& customFct(r.obj, p.obj)
&& g2(r.act, p.act)
&& g(r.sub, 'myGroup')

Policy
p, myGroup, resource, myResp
g, user, myGroup

Request
r, user, resource, myResp

Most of the time, enforcement works correctly, but sometimes the enforcer starts returning incorrect evaluation. on perm that myResp inherits.
This usually happens after some time under load, not immediately at startup.

I’d really appreciate guidance for debugging