Uploaded image for project: 'Rampart'
  1. Rampart
  2. RAMPART-208

Serialization Issue with TransportToken.serialize() method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.4
    • None
    • rampart-policy
    • None

    Description

      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

      Attachments

        1. TransportToken.java
          3 kB
          Sumit Shah

        Activity

          People

            nandana.cse Nandana Mihindukulasooriya
            sumitshah Sumit Shah
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: