InputParser.parseInput fails for NS qualified root
Brought to you by:
farrukh_najmi,
sethp
Similar to Bug [944592],
if the rootNode is name space qualified, like "xacml-context:Request" or "r0:Request", then the InputParser.parseInput which is being invoked as part of the following call.
RequestCtx.getInstance(InputStream is)
will fail at the following:
nodes = doc.getElementsByTagName(rootTag);
ifnodes.getLength() != 1)
throw new ParseException(.....
The right usage for this would be:
nodes = doc.getElementsbyTagNameNS(ns, rootTag);
where namespace can be standardized to be:
"urn:oasis:names:tc:xacml:2.0:context:schema:os"
Logged In: YES
user_id=608379
Originator: NO
Fixed in my local copy of sunxacml. Now I'm waiting for my commit-bit.