Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5195

Infinite loop when deserializing an array that enclosed by a parent element with xsi:type attribute.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.6.1
    • 1.6.2, 1.7.0
    • adb
    • None

    Description

      When deserializing an Array it passes parent OMElement recursively to the deserialize method in order to process all array elements. But when xsi:type attribute present on the parent element deserialize method locally override array type using xsi:type value, this result into a infinite loop.

      <?xml version='1.0' encoding='UTF-8'?>
      <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Body>
      <ns2:echoObject xmlns:ns2="http://sample">
      <ns2:argObj xmlns:ns1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:QueryBean">
      <ns1:columnList>abc</ns1:columnList>
      <ns1:columnList>gef</ns1:columnList>
      </ns2:argObj>
      </ns2:echoObject>
      </soapenv:Body>
      </soapenv:Envelope>

      Attachments

        Issue Links

          Activity

            People

              sagara Sagara Gunathunga
              sagara Sagara Gunathunga
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: