You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Julien Billon (JIRA)" <ji...@apache.org> on 2011/02/11 15:26:57 UTC

[jira] Created: (AXIS2C-1536) guththila stucked with empty XML comments

guththila stucked with empty XML comments
-----------------------------------------

                 Key: AXIS2C-1536
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1536
             Project: Axis2-C
          Issue Type: Bug
          Components: guththila
    Affects Versions: 1.6.0
         Environment: Linux
            Reporter: Julien Billon
            Priority: Critical


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



-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] [Comment Edited] (AXIS2C-1536) guththila stucked with empty XML comments

Posted by "Boro Sitnikovski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-1536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13290877#comment-13290877 ] 

Boro Sitnikovski edited comment on AXIS2C-1536 at 6/7/12 8:06 AM:
------------------------------------------------------------------

Hello,

Please find the patch for this problem.

NOTE: This patch depends on a previous patch (AXIS2C-1453), so please first apply that patch first before applying this one.

Best regards.
                
      was (Author: bor0):
    Hello,

Please find the patch for this problem.

NOTE: This patch depends on a previous patch (AXIS-1453), so please first apply that patch first before applying this one.

Best regards.
                  
> guththila stucked with empty XML comments
> -----------------------------------------
>
>                 Key: AXIS2C-1536
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1536
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: guththila
>    Affects Versions: 1.6.0
>         Environment: Linux
>            Reporter: Julien Billon
>            Priority: Critical
>         Attachments: guththila_xml_parser.c.diff
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] [Updated] (AXIS2C-1536) guththila stucked with empty XML comments

Posted by "Boro Sitnikovski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Boro Sitnikovski updated AXIS2C-1536:
-------------------------------------

    Attachment: guththila_xml_parser.c.diff

Hello,

Please find the patch for this problem.

NOTE: This patch depends on a previous patch (AXIS-1453), so please first apply that patch first before applying this one.

Best regards.
                
> guththila stucked with empty XML comments
> -----------------------------------------
>
>                 Key: AXIS2C-1536
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1536
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: guththila
>    Affects Versions: 1.6.0
>         Environment: Linux
>            Reporter: Julien Billon
>            Priority: Critical
>         Attachments: guththila_xml_parser.c.diff
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org