[
https://issues.apache.org/jira/browse/ODE-591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702161#action_12702161
]
Alexis Midon commented on ODE-591:
----------------------------------
fixed in 1.X by r768094
> Axiom manipulation error
> ------------------------
>
> Key: ODE-591
> URL: https://issues.apache.org/jira/browse/ODE-591
> Project: ODE
> Issue Type: Bug
> Affects Versions: 1.2
> Reporter: Alexis Midon
> Assignee: Alexis Midon
> Fix For: 1.3.1
>
>
> when there's a carriage return either before or after the name then you get
> strange null pointer exceptions in the DeploymentWebservice code as it
> expects the Xml to be in a particular form and text-nodes in the DOM *really*
> make it un-happy.
> This problem seems to be in the following code.
> OMElement zipPart = (OMElement) namePart.getNextOMSibling();
> This code is vulnerable if a carriage return is present after the <name> tag
> before <package> tag. AFAIK 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. I can provide a
> patch for this if necessary.
> reported by Buddhika Chamith and Ciaran.
> see http://markmail.org/thread/pspxrl7qkhpraq4a
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.