balana
balana copied to clipboard
balana-samples findAttribute never called
Description: When running the org.wso2.balana.samples.kmarket.trading or org.wso2.balana.samples.image.filter projects, it appears that the findAttribute method is never called, as an NA response is always returned:
<Response xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17"><Result><Decision>NotApplicable</Decision><Status><StatusCode Value="urn:oasis:names:tc:xacml:1.0:status:ok"/></Status></Result></Response>
Suggested Labels: balana-samples, attribute finders
Suggested Assignees: N/A
Affected Product Version: 1.1.6-SNAPSHOT
OS, DB, other environment details and versions:
Windows 10 x64
Steps to reproduce: Run KMarket trading sample app with the following inputs: Enter User name : alice Enter Product Id : 2 Enter No of Products : 5
-OR-
Simply run the image filtering sample
Related Issues: N/A
After debugging this a bit more I discovered that the PolicyFinder was looking for policies in the wrong location, though this was not clear until I actually stepped through the code. It would be helpful if there was some sort of better method of determining when no policies were found, other than simply an NA result. I'm new to XACML, but would it be possible to attach some advice on to this result to indicate no policies were found?
Thanks!
-CJ