You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Hudson (Commented) (JIRA)" <ji...@apache.org> on 2011/12/19 15:13:30 UTC

[jira] [Commented] (RAMPART-347) Correct error message is masked due to a NullPointerException in SAMLTokenIssuer

    [ https://issues.apache.org/jira/browse/RAMPART-347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172293#comment-13172293 ] 

Hudson commented on RAMPART-347:
--------------------------------

Integrated in Rampart #687 (See [https://builds.apache.org/job/Rampart/687/])
    Applying Amila's patch for RAMPART-347

ruchithf : 
Files : 
* /axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/errors.properties
* /axis/axis2/java/rampart/trunk/modules/rampart-trust/src/main/java/org/apache/rahas/impl/SAMLTokenIssuer.java

                
> Correct error message is masked due to a NullPointerException in SAMLTokenIssuer 
> ---------------------------------------------------------------------------------
>
>                 Key: RAMPART-347
>                 URL: https://issues.apache.org/jira/browse/RAMPART-347
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-trust
>    Affects Versions: 1.6.1
>         Environment: Ubuntu, Linux
>            Reporter: Amila Jayasekara
>         Attachments: RAMPART-347.diff, exception.txt
>
>
> When rampart is unable to find "trusted certificate" for service address it gives a java.lang.NullPointerException. createHokAssertion method handles exception as follows,
> throw new TrustException(
>                         "errorInBuildingTheEncryptedKeyForPrincipal",
>                         new String[] { serviceCert.getSubjectDN().getName() },
>                         e);
> But serviceCert could be null and due to this the proper error message is masked with a NullPointerException.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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