You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Sanka Samaranayake (JIRA)" <ji...@apache.org> on 2007/07/18 09:08:05 UTC

[jira] Created: (WSCOMMONS-221) Signature verification fails due to Java object reference mismatch in ElementProxy#guaranteeThatElementInCorrectSpace()

Signature verification fails due to Java object reference mismatch in ElementProxy#guaranteeThatElementInCorrectSpace()
-----------------------------------------------------------------------------------------------------------------------

                 Key: WSCOMMONS-221
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-221
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
            Reporter: Sanka Samaranayake
            Priority: Blocker


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);
      }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Resolved: (WSCOMMONS-221) Signature verification fails due to Java object reference mismatch in ElementProxy#guaranteeThatElementInCorrectSpace()

Posted by "Sanka Samaranayake (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanka Samaranayake resolved WSCOMMONS-221.
------------------------------------------

    Resolution: Fixed

Fixed : see http://svn.apache.org/viewvc?view=rev&revision=556521

> Signature verification fails due to Java object reference mismatch in ElementProxy#guaranteeThatElementInCorrectSpace()
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSCOMMONS-221
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-221
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Sanka Samaranayake
>            Priority: Blocker
>
> 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);
>       }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org