New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to use loadFilteredPolicy with JdbcAdatper in Jcasbin #128
Comments
@shy1st plz take a look. |
@shreyasGit fixed and released: https://github.com/casbin/jcasbin/releases/tag/v1.6.4 |
this is not fixednow i get following error
the cast is not needed |
@shreyasGit Would you mind show me your code of how you create the JdbcAdapter? |
ping @shreyasGit |
@shreyasGit @shy1st I think I found the cause. The latest version of casbin-spring-boot-starter was released 15 days ago: https://github.com/jcasbin/casbin-spring-boot-starter/releases/tag/0.0.11 However, latest jCasbin was released 10 days ago: https://github.com/casbin/jcasbin/releases/tag/v1.6.4 So we need to update casbin-spring-boot-starter's POM dependency to use jCasbin v1.6.4. @shy1st can you make a PR for it? |
@hsluoyz yes,I can. |
@hsluoyz Please see: jcasbin/casbin-spring-boot-starter#26 |
@shy1st merged, plz make a new release of https://github.com/jcasbin/casbin-spring-boot-starter |
@shreyasGit can you see if v0.0.12 fixed this issue? https://github.com/jcasbin/casbin-spring-boot-starter/releases/tag/0.0.12 |
The v0.0.12 of the casbin-spring-boot-starter had released in the maven repository. |
@shreyasGit fixed in: #153 |
i think theres an issue in Jcasbin java version 1.6.3 and older , it does not support filtering on jdbc adapter, when i try to use https://github.com/jcasbin/casbin-spring-boot-starter with jcasbin, i see that in CoreEnforcer , it expects FilterAdapter only from file_adapter package, else throws this eroor.in short cannot use any jdbc adapter with Jcasbin
in above code FilteredAdapter should be referenced from org.casbin.jcasbin.persist package which is a parent interface.
Due to this when i try to use any jdbcadapter to filter policies i get an error "Filtered policies are not supported by this adapter."
The text was updated successfully, but these errors were encountered: