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 "Olivier Mengué (JIRA)" <ji...@apache.org> on 2010/02/18 17:14:27 UTC

[jira] Created: (AXIS2C-1451) XML numeric entities are not parsed by guththila

XML numeric entities are not parsed by guththila
------------------------------------------------

                 Key: AXIS2C-1451
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1451
             Project: Axis2-C
          Issue Type: Bug
          Components: guththila
    Affects Versions: 1.6.0, Current (Nightly)
         Environment: Axis2/C 1.6.0 with the guththilla reader/writer.
            Reporter: Olivier Mengué
            Priority: Critical


The guththila_token_evaluate_references function does not parse numeric entities such as &#65; or &#x41; (which should map to the letter 'A').

A test case is attached.

Here is its output:
1..2
not ok
#    input: <root>abc&#x41;&#x42;def</root>
#      got: <root>abc&amp;#x41;&amp;#x42;def</root>
# expected: <root>abcABdef</root>
not ok
#    input: <root>abc&#65;&#66;def</root>
#      got: <root>abc&amp;#65;&amp;#66;def</root>
# expected: <root>abcABdef</root>




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


[jira] Updated: (AXIS2C-1451) XML numeric entities are not parsed by guththila

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

Olivier Mengué updated AXIS2C-1451:
-----------------------------------

    Attachment: AXIS2C-1451-1.6.0.patch

Here is a patch against 1.6.0.
All cases fixed (except CDATA which is another issue).

> XML numeric entities are not parsed by guththila
> ------------------------------------------------
>
>                 Key: AXIS2C-1451
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1451
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: guththila
>    Affects Versions: 1.6.0, Current (Nightly)
>         Environment: Axis2/C 1.6.0 with the guththilla reader/writer.
>            Reporter: Olivier Mengué
>            Priority: Critical
>         Attachments: AXIS2C-1451-1.6.0.patch, guth_entity_bug.c, guth_entity_bug.c
>
>
> The guththila_token_evaluate_references function does not parse numeric entities such as &#65; or &#x41; (which should map to the letter 'A').
> A test case is attached.
> Here is its output:
> 1..2
> not ok
> #    input: <root>abc&#x41;&#x42;def</root>
> #      got: <root>abc&amp;#x41;&amp;#x42;def</root>
> # expected: <root>abcABdef</root>
> not ok
> #    input: <root>abc&#65;&#66;def</root>
> #      got: <root>abc&amp;#65;&amp;#66;def</root>
> # expected: <root>abcABdef</root>

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


[jira] Updated: (AXIS2C-1451) XML numeric entities are not parsed by guththila

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

Olivier Mengué updated AXIS2C-1451:
-----------------------------------

    Attachment: AXIS2C-1451_entities-svn.patch

Here is the patch against current SVN (revision 911851).

Any reviewer?

> XML numeric entities are not parsed by guththila
> ------------------------------------------------
>
>                 Key: AXIS2C-1451
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1451
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: guththila
>    Affects Versions: 1.6.0, Current (Nightly)
>         Environment: Axis2/C 1.6.0 with the guththilla reader/writer.
>            Reporter: Olivier Mengué
>            Priority: Critical
>         Attachments: AXIS2C-1451-1.6.0.patch, AXIS2C-1451_entities-svn.patch, guth_entity_bug.c, guth_entity_bug.c
>
>
> The guththila_token_evaluate_references function does not parse numeric entities such as &#65; or &#x41; (which should map to the letter 'A').
> A test case is attached.
> Here is its output:
> 1..2
> not ok
> #    input: <root>abc&#x41;&#x42;def</root>
> #      got: <root>abc&amp;#x41;&amp;#x42;def</root>
> # expected: <root>abcABdef</root>
> not ok
> #    input: <root>abc&#65;&#66;def</root>
> #      got: <root>abc&amp;#65;&amp;#66;def</root>
> # expected: <root>abcABdef</root>

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


[jira] Updated: (AXIS2C-1451) XML numeric entities are not parsed by guththila

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

Olivier Mengué updated AXIS2C-1451:
-----------------------------------

    Attachment: guth_entity_bug.c

Test case (guth_entity_bug.c).

Output is in Test Anything Protocol. http://testanything.org/

> XML numeric entities are not parsed by guththila
> ------------------------------------------------
>
>                 Key: AXIS2C-1451
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1451
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: guththila
>    Affects Versions: 1.6.0, Current (Nightly)
>         Environment: Axis2/C 1.6.0 with the guththilla reader/writer.
>            Reporter: Olivier Mengué
>            Priority: Critical
>         Attachments: guth_entity_bug.c
>
>
> The guththila_token_evaluate_references function does not parse numeric entities such as &#65; or &#x41; (which should map to the letter 'A').
> A test case is attached.
> Here is its output:
> 1..2
> not ok
> #    input: <root>abc&#x41;&#x42;def</root>
> #      got: <root>abc&amp;#x41;&amp;#x42;def</root>
> # expected: <root>abcABdef</root>
> not ok
> #    input: <root>abc&#65;&#66;def</root>
> #      got: <root>abc&amp;#65;&amp;#66;def</root>
> # expected: <root>abcABdef</root>

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


[jira] Updated: (AXIS2C-1451) XML numeric entities are not parsed by guththila

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

Olivier Mengué updated AXIS2C-1451:
-----------------------------------

    Attachment: guth_entity_bug.c

Here is a more complete test suite (38 tests).
It also tests issue AXIS2C-1453 (CDATA parsing).

> XML numeric entities are not parsed by guththila
> ------------------------------------------------
>
>                 Key: AXIS2C-1451
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1451
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: guththila
>    Affects Versions: 1.6.0, Current (Nightly)
>         Environment: Axis2/C 1.6.0 with the guththilla reader/writer.
>            Reporter: Olivier Mengué
>            Priority: Critical
>         Attachments: guth_entity_bug.c, guth_entity_bug.c
>
>
> The guththila_token_evaluate_references function does not parse numeric entities such as &#65; or &#x41; (which should map to the letter 'A').
> A test case is attached.
> Here is its output:
> 1..2
> not ok
> #    input: <root>abc&#x41;&#x42;def</root>
> #      got: <root>abc&amp;#x41;&amp;#x42;def</root>
> # expected: <root>abcABdef</root>
> not ok
> #    input: <root>abc&#65;&#66;def</root>
> #      got: <root>abc&amp;#65;&amp;#66;def</root>
> # expected: <root>abcABdef</root>

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