From dev-return-5937-apmail-ode-dev-archive=ode.apache.org@ode.apache.org Thu Apr 23 17:48:59 2009 Return-Path: Delivered-To: apmail-ode-dev-archive@www.apache.org Received: (qmail 30583 invoked from network); 23 Apr 2009 17:48:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Apr 2009 17:48:59 -0000 Received: (qmail 7564 invoked by uid 500); 23 Apr 2009 17:48:59 -0000 Delivered-To: apmail-ode-dev-archive@ode.apache.org Received: (qmail 7546 invoked by uid 500); 23 Apr 2009 17:48:59 -0000 Mailing-List: contact dev-help@ode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ode.apache.org Delivered-To: mailing list dev@ode.apache.org Received: (qmail 7536 invoked by uid 99); 23 Apr 2009 17:48:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2009 17:48:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2009 17:48:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 93CB0234C4B4 for ; Thu, 23 Apr 2009 10:48:30 -0700 (PDT) Message-ID: <424670669.1240508910604.JavaMail.jira@brutus> Date: Thu, 23 Apr 2009 10:48:30 -0700 (PDT) From: "Alexis Midon (JIRA)" To: dev@ode.apache.org Subject: [jira] Reopened: (ODE-591) Axiom manipulation error In-Reply-To: <1236119497.1240340147438.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ODE-591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexis Midon reopened ODE-591: ------------------------------ > 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 tag before 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 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.