Hi Niro
I can reproduce the behaviour in my small test case. It seems that our RequestType unmarshalling doesnt behave really correct.
You probably found a bug. :-)
At least when I try the following lines:
testRequest = RequestMarshaller.unmarshal(this.getClass().getResourceAsStream("/test-request.xml"));
I get a wrong RequestType returned.
Reasoning Context:
- You have an AttributeDesignator that is searching for an Attribute current-date in the request
- Your request only contains subject-id and dateofbirth
- So the attribute Designator can't find the attrbute value current-date and returns an indeterminate
So far that's all correct.
But now to the most probably wrong part:
- The XACML specification specifies that if there's no current-date given in the reuquest manually, then the environment attributes should be created then when the request is beeing created
- For us that means during unmarshalling we should generate those environment attributes automically at unmarshalling time if they are not manually already in the request
- It looks like the autmaic generation of those attributes doesn't work at the moment.
So as a workaround: specify manually the current-date attribue in your request.xml. That should then work.
I'll figure out in the meantime wher exactly our bug is located.
Regards,
René