cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Müller (JIRA) <j...@apache.org>
Subject [jira] [Updated] (CXF-6496) NPE in SamlAssertionWrapper.assertionToString()
Date Tue, 14 Jul 2015 07:57:04 GMT

     [ https://issues.apache.org/jira/browse/CXF-6496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matthias Müller updated CXF-6496:
---------------------------------
    Attachment: SAMLCallbackHandler.java
                SamlAssertionToStringTest.java

A small JUnit-Test for reproducing this bug.
This Test runs well in CXF 3.0.5, but in CXF 3.1.0 and 3.1.1 it fails.

> NPE in SamlAssertionWrapper.assertionToString()
> -----------------------------------------------
>
>                 Key: CXF-6496
>                 URL: https://issues.apache.org/jira/browse/CXF-6496
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 3.1.0, 3.1.1
>            Reporter: Matthias Müller
>         Attachments: SAMLCallbackHandler.java, SamlAssertionToStringTest.java
>
>
> The assertionToString()-Method leads to a NullPointerException in org.opensaml.core.xml.io.AbstractXMLObjectMarshaller:
> java.lang.NullPointerException
> 	at org.opensaml.core.xml.io.AbstractXMLObjectMarshaller.marshall(AbstractXMLObjectMarshaller.java:74)
> 	at org.apache.wss4j.common.saml.OpenSAMLUtil.toDom(OpenSAMLUtil.java:170)
> 	at org.apache.wss4j.common.saml.OpenSAMLUtil.toDom(OpenSAMLUtil.java:142)
> 	at org.apache.wss4j.common.saml.SamlAssertionWrapper.toDOM(SamlAssertionWrapper.java:271)
> 	at org.apache.wss4j.common.saml.SamlAssertionWrapper.assertionToString(SamlAssertionWrapper.java:282)
> 	at org.apache.cxf.SamlAssertionToStringTest.generateSamlV20TokenString(SamlAssertionToStringTest.java:24)
> This function is working with CXF Version 3.0.5 (where opensaml 2.6 is used). From Version
3.1.0 (opensaml 3.0) on it's not working. Maybe it's a problem in opensaml 3.0, maybe CXF
is not initializing opensaml 3.0 correct.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message