-
Bug
-
Resolution: Done
-
Minor
-
6.4.0.Beta1
-
-
fixed and merged into master and 6.4.x
-
NEW
-
NEW
When Kie server is run on Tomcat container with org.kie.integration.tomcat.JACCValve configured then JBPM operations which needs authorisation invoked on Kie server fails with:
"User '[UserImpl:'Roles']' does not have permissions to execute operation...".
Error happens just with JACCValve which is used for Workbench, so this isn't critical issue.
Issue is caused by JACCValve which register PolicyContextHandler with Subject returning 2 principals in HashSet, one principal represents user, second represent its roles.
JACCIdentityProvider in Kie server in method getName() returns first principal from Subject which it finds, in case it is roles principal then is returned "Roles" as user name, which is wrong.