Hi Ruchith,
What XML parser are you using?
All common XML parsers intern the namespaces. Anyway I'm working in
plug-able corrects in order to change this behavior even disable it.
Regards,
On 7/15/07, Ruchith Fernando <[EMAIL PROTECTED]> wrote:
Hi Devs,
ElementProxy#guaranteeThatElementInCorrectSpace() method contains the
following check :
if ((namespaceSHOULDBE!=namespaceIS) ||
!localnameSHOULDBE.equals(localnameIS) ) {
Object exArgs[] = { namespaceIS +":"+ localnameIS,
namespaceSHOULDBE +":"+ localnameSHOULDBE};
throw new XMLSecurityException("xml.WrongElement", exArgs);
}
I'm using opensaml-1.1b and I encounter a signature failure due to
namespaceIS object not being the same object as namespaceSHOULDBE. Is
this intentional (Apologies if I overlooked something obvious)? Or can
we change this to the following:
if (!namespaceSHOULDBE.equals(namespaceIS)) ||
!localnameSHOULDBE.equals(localnameIS) ) {
Object exArgs[] = { namespaceIS +":"+ localnameIS,
namespaceSHOULDBE +":"+ localnameSHOULDBE};
throw new XMLSecurityException("xml.WrongElement", exArgs);
}
Thanks,
Ruchith
--
http://r-bg.com