You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Sumit Shah (JIRA)" <ji...@apache.org> on 2008/12/18 18:57:44 UTC

[jira] Created: (RAMPART-208) Serialization Issue with TransportToken.serialize() method

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.


[jira] Resolved: (RAMPART-208) Serialization Issue with TransportToken.serialize() method

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

Nandana Mihindukulasooriya resolved RAMPART-208.
------------------------------------------------

    Resolution: Duplicate

Duplicate of RAMPART-176. 

> 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: Nandana Mihindukulasooriya
>         Attachments: TransportToken.java
>
>
> 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.


[jira] Updated: (RAMPART-208) Serialization Issue with TransportToken.serialize() method

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

Sumit Shah updated RAMPART-208:
-------------------------------

    Attachment: TransportToken.java

Fix for the issue. Please review.

Thanks
Sumit Shah

> 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
>         Attachments: TransportToken.java
>
>
> 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.


[jira] Assigned: (RAMPART-208) Serialization Issue with TransportToken.serialize() method

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

Nandana Mihindukulasooriya reassigned RAMPART-208:
--------------------------------------------------

    Assignee: Nandana Mihindukulasooriya  (was: Ruchith Udayanga Fernando)

> 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: Nandana Mihindukulasooriya
>         Attachments: TransportToken.java
>
>
> 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.


[jira] Commented: (RAMPART-208) Serialization Issue with TransportToken.serialize() method

Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12658000#action_12658000 ] 

Nandana Mihindukulasooriya commented on RAMPART-208:
----------------------------------------------------

Hi Sumit,
   Thanks for the patch. This is fixed in the trunk. Issue is [1]. Did you try with the trunk ?

thanks,
nandana


[1] - http://issues.apache.org/jira/browse/RAMPART-176

> 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: Nandana Mihindukulasooriya
>         Attachments: TransportToken.java
>
>
> 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.