You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2012/04/21 11:46:35 UTC

[jira] [Created] (AXIOM-415) Undefined behavior for invalid content in CDATA sections and comments

Andreas Veithen created AXIOM-415:
-------------------------------------

             Summary: Undefined behavior for invalid content in CDATA sections and comments
                 Key: AXIOM-415
                 URL: https://issues.apache.org/jira/browse/AXIOM-415
             Project: Axiom
          Issue Type: Bug
          Components: API
    Affects Versions: 1.2.13
            Reporter: Andreas Veithen
            Priority: Minor


OMFactory allows to create CDATA sections and comments with invalid content, i.e. CDATA sections containing "]]>" and comments containing "--". The Axiom API doesn't specify how such nodes are handled during serialization, and the current behavior depends on the StAX implementation. E.g. Woodstox 3.2.x automatically repairs such instances so that the result is always well formed, while Woodstox 4.1.x throws an exception (such as "Illegal input: CDATA block has embedded ]]> in it").

--
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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[jira] [Commented] (AXIOM-415) Undefined behavior for invalid content in CDATA sections and comments

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIOM-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258823#comment-13258823 ] 

Andreas Veithen commented on AXIOM-415:
---------------------------------------

For reference, here is the JIRA report that changed the behavior in Woodstox:

http://jira.codehaus.org/browse/WSTX-120
                
> Undefined behavior for invalid content in CDATA sections and comments
> ---------------------------------------------------------------------
>
>                 Key: AXIOM-415
>                 URL: https://issues.apache.org/jira/browse/AXIOM-415
>             Project: Axiom
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 1.2.13
>            Reporter: Andreas Veithen
>            Priority: Minor
>
> OMFactory allows to create CDATA sections and comments with invalid content, i.e. CDATA sections containing "]]>" and comments containing "--". The Axiom API doesn't specify how such nodes are handled during serialization, and the current behavior depends on the StAX implementation. E.g. Woodstox 3.2.x automatically repairs such instances so that the result is always well formed, while Woodstox 4.1.x throws an exception (such as "Illegal input: CDATA block has embedded ]]> in it").

--
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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[jira] [Commented] (AXIOM-415) Undefined behavior for invalid content in CDATA sections and comments

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIOM-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258828#comment-13258828 ] 

Hudson commented on AXIOM-415:
------------------------------

Integrated in ws-axiom-trunk #890 (See [https://builds.apache.org/job/ws-axiom-trunk/890/])
    Quick fix for AXIOM-415. (Revision 1328628)

     Result = SUCCESS
veithen : 
Files : 
* /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/Woodstox4Dialect.java

                
> Undefined behavior for invalid content in CDATA sections and comments
> ---------------------------------------------------------------------
>
>                 Key: AXIOM-415
>                 URL: https://issues.apache.org/jira/browse/AXIOM-415
>             Project: Axiom
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 1.2.13
>            Reporter: Andreas Veithen
>            Priority: Minor
>
> OMFactory allows to create CDATA sections and comments with invalid content, i.e. CDATA sections containing "]]>" and comments containing "--". The Axiom API doesn't specify how such nodes are handled during serialization, and the current behavior depends on the StAX implementation. E.g. Woodstox 3.2.x automatically repairs such instances so that the result is always well formed, while Woodstox 4.1.x throws an exception (such as "Illegal input: CDATA block has embedded ]]> in it").

--
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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org