ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Buddhika Chamith De Alwis (JIRA)" <j...@apache.org>
Subject [jira] Closed: (ODE-590) Deployment Web Service generates ClassCastException in the presence of carriage return on SOAPBody
Date Wed, 22 Apr 2009 17:45:47 GMT

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

Buddhika Chamith De Alwis closed ODE-590.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0)
                   1.3.1

Resolved in ODE591

> Deployment Web Service generates ClassCastException in the presence of carriage return
on SOAPBody
> --------------------------------------------------------------------------------------------------
>
>                 Key: ODE-590
>                 URL: https://issues.apache.org/jira/browse/ODE-590
>             Project: ODE
>          Issue Type: Improvement
>          Components: Deployment
>    Affects Versions: 1.2
>            Reporter: Buddhika Chamith De Alwis
>            Priority: Minor
>             Fix For: 1.3.1
>
>         Attachments: ODE590.patch
>
>
> 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.

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


Mime
View raw message