I'm testing the use of JBossPolicyLocator with policies from a directoy. The loading process works well, but when I ask for request evaluation I always get the "too many applicable top-level policies" status message.
After some code investigation I think the problem is in the WrapperPolicyFinderModule.findPolicy(EvaluationCtx evaluationCtx) method. This method does not properly match the Policy Target against the current request.
This problem does not affects the JBossPolicySetLocator, as it uses the PolicySetFinderModule class, that properly enforces the PolicySet target.
If this is correct, can you update the WrapperPolicyFinderModule.findPolicy(EvaluationCtx evaluationCtx) implementation to enforce the Policy Target content (in the same way the PolicySetFinderModule already does)?
I'm using JBossXACML version 2.0.6.
Thanks and Regards,
Why don't you properly isolate your policies into PolicySets? If you throw a bunch of xacml policies at the engine, they most probably will not be properly isolated.