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 "Amila Jayasekara (Created) (JIRA)" <ji...@apache.org> on 2011/12/19 10:12:30 UTC

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

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


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


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

Posted by "Amila Jayasekara (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAMPART-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Jayasekara updated RAMPART-347:
-------------------------------------

    Attachment: exception.txt
    
> 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: 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


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

Posted by "Ruchith Udayanga Fernando (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAMPART-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruchith Udayanga Fernando resolved RAMPART-347.
-----------------------------------------------

    Resolution: Fixed

Applied patch : revision : 1220746
                
> 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


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

Posted by "Amila Jayasekara (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAMPART-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Jayasekara updated RAMPART-347:
-------------------------------------

    Attachment: RAMPART-347.diff

Attaching a patch which fixes this issue.
SVN revision - 1220658
Patch is created relative to trunk/modules/rampart-trust

Thanks
AmilaJ
                
> 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


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

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ 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