atom feed9 messages in org.apache.ode.userRe: Deployment Web Service Inconsista...
FromSent OnAttachments
buddhika chamithApr 19, 2009 11:40 pm 
CiaranApr 20, 2009 12:40 am 
buddhika chamithApr 20, 2009 12:23 pm 
Alex BoisvertApr 20, 2009 2:19 pm 
Alexis MidonApr 21, 2009 12:19 pm 
buddhika chamithApr 22, 2009 10:57 am 
buddhika chamithApr 22, 2009 11:08 am.java
Alex BoisvertApr 22, 2009 11:21 am.java
buddhika chamithApr 22, 2009 12:47 pm 
Subject:Re: Deployment Web Service Inconsistancies
From:Alexis Midon (mid@intalio.com)
Date:Apr 21, 2009 12:19:05 pm
List:org.apache.ode.user

fixed by ODE-591. thanks for the catch

On Mon, Apr 20, 2009 at 2:19 PM, Alex Boisvert <bois@intalio.com> wrote:

On Mon, Apr 20, 2009 at 12:23 PM, buddhika chamith <cham@gmail.com>wrote:

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.

Good catch! Yes, a patch would be much appreciated.