-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
jbossxacml_2.0.6.Final
-
None
-
Low
Affects jbossxacml 2.0.8.Final and below.
JBossresponseContext.getResult() copies obligations from the sunxacml result, but does not copy the attribute assignments:
The code block (lines 156-164):
ObligationsType obligationsType = new ObligationsType();
for(Obligation obl:obligationsSet)
Should read something like:
ObligationsType obligationsType = new ObligationsType();
for(Obligation obl:obligationsSet)
{
ObligationType obType = new ObligationType();
obType.setObligationId(obl.getId().toASCIIString());
obType.setFulfillOn(EffectType.fromValue(Result.DECISIONS[obl.getFulfillOn()]));
for(Object attrValue : obl.getAssignments())
obligationsType.getObligation().add(obType);
}