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 461 forks source link

[Bug] Java SDK Bug of keyMatch4 #351

Closed tsaiqili closed 1 year ago

tsaiqili commented 1 year ago

Want to prioritize this issue? Try:

During the process of using Casbin, we found that the testing of the keyMatch4 Java SDK did not meet our expectations In the editor, use keyMatch4 for testing and the returned test result is true, as shown in the following figure:

image

The test result returned by using keyMatch4 in the source code of Go is also true, as shown in the following figure: image

The Java source code was tested, and the test result returned by keyMatch4 was false, as shown in the following figure image

There is a problem with the method validation of Java KeyMatch4. I am not sure if it is due to my incorrect posture or if there is a bug in the Java SDK itself

Java SDK `

org.casbin
<artifactId>jcasbin</artifactId>
<version>1.35.0</version>

`

casbin-bot commented 1 year ago

@tangyang9464 @JalinWang

casbin-bot commented 1 year ago

@tangyang9464 @imp2002