Serialization Issue with TransportToken.serialize() method
----------------------------------------------------------

                 Key: RAMPART-208
                 URL: https://issues.apache.org/jira/browse/RAMPART-208
             Project: Rampart
          Issue Type: Bug
          Components: rampart-policy
    Affects Versions: 1.4
            Reporter: Sumit Shah
            Assignee: Ruchith Udayanga Fernando


Serialization Issue with TransportToken.serialize() method

org.apache.ws.secpolicy.model.TransportToken.serialize()  does not check for a 
null case when trying to serialize the TransportToken. The code throws a 
NullPointer for the following valid case:

<sp:TransportToken>
                  <wsp:Policy>
                                  <!--  <sp:HttpsToken 
RequireClientCertificate="false"/> -->
                  </wsp:Policy>
</sp:TransportToken>

This is a Rampart provided sample but it fails serialization.

I have attached the fix.

Thanks
Sumit Shah

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

Reply via email to