axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Murray (JIRA)" <>
Subject [jira] Updated: (AXIS2-3376) XmlStreamParser in RMI module can encounter problems with nesting
Date Thu, 29 Nov 2007 22:17:43 GMT


Brian Murray updated AXIS2-3376:

    Attachment: 3376.patch

The following alterations were made in this patch:
*  Introduce a StatefulXmlStreamReader.  Currently the only state being maintained is the
depth within the XML file.  However, also added is a safeguard that prevents mismatching end
and start tags.  When troubleshooting the problem I noted that when the error occurred, the
parser would continue but would mismatch elements without sensing that it was doing so.
*  Use the StatefulXmlStreamReader and note that we are not consuming end tags that belong
at a higher level.

Also - I was unsure of the preconditions I could expect (there were four public methods that
passed in XmlStreamReaders) so I left the patch unchanged in the event that parsing was partially
underway (and the Reader had been advanced) prior to these methods being called.

> XmlStreamParser in RMI module can encounter problems with nesting
> -----------------------------------------------------------------
>                 Key: AXIS2-3376
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: modules
>            Reporter: Brian Murray
>         Attachments: 3376.patch, test.patch
> The XmlStreamParser in the RMI module does not support nesting when the subelement has
the same namespace URI and name as the parent element.  The parser currently makes assumptions
based on the name of the current tag and errs when the folllowing is encountered:  </param1></param1>.
 I will provide a failing test case in a patch.  I will also provide another patch with the
failing test case and a correction to XmlStreamParser.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message