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

Axiom manipulation error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3.2
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              alexismidon Alexis Midon
              alexismidon Alexis Midon
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: