#3 RequestCtx.getInstance() method does not handle namespace

open
nobody
None
5
2004-04-29
2004-04-29
Anonymous
No

I am using version 1.1. I noticed that the
Request.getInstance() method will throw error
if the stream had "Request" tag preceeded by a
namespace prefix. That is, for example, if your tag
was "<q0:Request ....>" instead of "<Request>". Same
applies for ReponseCtx.getInstance().

Discussion

  • Anil Saldhana
    Anil Saldhana
    2007-05-24

    Logged In: YES
    user_id=768753
    Originator: NO

    Replace all usage of
    String tag = node.getNodeName()

    with the following static method:

    private static String getNodeName(Node node)
    {
    String name = node.getLocalName();
    if(name == null)
    name = node.getNodeName();
    return name;
    }

    This should infact be done across the sunxacml codebase to handle the DOM2/DOM1 Namespaces mismatch.

     
  • Roland Illig
    Roland Illig
    2008-08-03

    Logged In: YES
    user_id=608379
    Originator: NO

    Fixed in my local copy of sunxacml. Now I'm waiting for my commit-bit.