[sunxacml-devl] multi values for resource-id in sunxacml implementation
Brought to you by:
farrukh_najmi,
sethp
From: hao c. <d9...@ya...> - 2011-04-21 12:10:33
|
Hi, I am using sun xacml implementaton v1.2 released at 2004-07-16. I tried to put multiple values into the resource attribute resource-id in a request. Because this implementation does not support bag, I use multiple <Attribute> elements. Based on XACML spec v2, section 6.3, it is allowed [The 2948 I tried the following request: <? <xmlversion="1.0"encoding="UTF-8"?>Requestxmlns="urn:oasis:names:tc:xacml:2.0:context:schema:os"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="urn:oasis:names:tc:xacml:2.0:context:schema:os access_control-xacml-2.0-context-schema-os.xsd "><SubjectSubjectCategory="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject"><AttributeDataType="http://www.w3.org/2001/XMLSchema#anyURI"AttributeId="urn:oasis:names:tc:xacml:2.0:subject:role"><AttributeValue>Role1</AttributeValue></Attribute></Subject><Resource><AttributeDataType="http://www.w3.org/2001/XMLSchema#anyURI"AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id"><AttributeValue>Value1</AttributeValue></Attribute><AttributeDataType="http://www.w3.org/2001/XMLSchema#anyURI"AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id"><AttributeValue>Value2</AttributeValue></Attribute></Resource><Action><AttributeDataType="http://www.w3.org/2001/XMLSchema#anyURI"AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id"><AttributeValue>access</AttributeValue></Attribute></Action></<Environment/>Request> I got an error:<Resource> element MAY contain one or more <Attribute> elements with anAttributeId of “urn:oasis:names:tc:xacml:2.0:resource:resource-id”.] com.sun.xacml.ParsingException It looks like this implementation still follows XACML spec v1. Is there any easy way to quick fix the issue? Best Regard : too many resource-id attrs |