casbin / jcasbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Java
https://casbin.org
Apache License 2.0
2.38k stars 462 forks source link

java.lang.ArrayIndexOutOfBoundsException: 10117 at org.casbin.jcasbin.main.CoreEnforcer.enforce( #420

Closed chinazhaoht closed 1 day ago

chinazhaoht commented 4 days ago

When addPolicy is used, the following exception occurs when the enforce method is called:

java.lang.ArrayIndexOutOfBoundsException: 10117 at org.casbin.jcasbin.main.CoreEnforcer.enforce(CoreEnforcer.java:638) ~[jcasbin-1.55.0.jar:?]

image

These two are not atomic.

casbin-bot commented 4 days ago

@tangyang9464 @imp2002

hsluoyz commented 4 days ago

@chinazhaoht for most cases, this is your own usage issue. Use the online editor to test it first: https://editor.casbin.org/

Or prove it's a Casbin bug (which code line causes which bug because of which reason)