Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1536

guththila stucked with empty XML comments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.6.0
    • None
    • guththila
    • Linux

    Description

      Guththila can not decode XML messages with empty XML comments like <!---> (but it works with <!- -->)

      Here is an example of a message I try to decode :

      <?xml version=\"1.0\" encoding=\"UTF-8\"?>
      <!---->
      <soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">
      <soapenv:Header>
      <Session>test</Session>
      </soapenv:Header>
      <soapenv:Body>test</soapenv:Body>
      </soapenv:Envelope>

      and the stack :

      #0 0x00000000005ddb23 in guththila_next_char (m=0x84b340, eof=229, env=0x84b9e0) at guththila_xml_parser.c:1440
      #1 0x00000000005de9bf in guththila_next (m=0x84b340, env=0x84b9e0) at guththila_xml_parser.c:898
      #2 0x00000000005dbf1d in guththila_xml_reader_wrapper_next (parser=0x84b2b0, env=0xe5) at guththila_xml_reader_wrapper.c:405
      #3 0x00000000005cbcc0 in axiom_stax_builder_next_with_token (om_builder=0x84c140, env=0x84b9e0) at om_stax_builder.c:1114
      #4 0x00000000005d368c in axiom_soap_builder_next (soap_builder=0x84c2b0, env=0x84b9e0) at soap_builder.c:335
      #5 0x00000000005d3733 in axiom_soap_builder_get_soap_envelope (soap_builder=0x84c2b0, env=0x84b9e0) at soap_builder.c:277
      #6 0x00000000005d3829 in axiom_soap_builder_create (env=0x84b9e0, stax_builder=0x84c140, soap_version=0x0) at soap_builder.c:877

      Attachments

        1. guththila_xml_parser.c.diff
          0.2 kB
          Boro Sitnikovski

        Activity

          People

            Unassigned Unassigned
            jubi Julien Billon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: