Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-590

Deployment Web Service generates ClassCastException in the presence of carriage return on SOAPBody

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2
    • 1.3.2
    • Deployment
    • None

    Description

      In DeploymentWebService following line is used to get the package element of the SOAPBody.

      OMElement zipPart = (OMElement) namePart.getNextOMSibling();

      This code is vulnerable if a carriage return is present after the <name> tag before <package> tag in the SOAPBody. This happens because of the behaviour of Axiom. Axiom creates an OMText node for the carriage return. So when getNextOMSibling() is called instead of <package> element OMText is selected. But since the OMText cannot be cast to OMElement a ClassCastException occurs. This can be avoided by obtaining zipart OMElement with a call to getChild() or any related method which returns an OMElement reference.

      Attachments

        1. ODE590.patch
          1 kB
          Buddhika Chamith De Alwis

        Activity

          People

            Unassigned Unassigned
            chamith buddhika Buddhika Chamith De Alwis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: