You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2016/05/14 20:53:12 UTC

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

    [ https://issues.apache.org/jira/browse/AXIOM-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15283671#comment-15283671 ] 

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

FAILURE: Integrated in axiom-trunk #2718 (See [https://builds.apache.org/job/axiom-trunk/2718/])
AXIOM-415: Streamline the handling of comments and processing instructions in the serializer and consistently throw an exception if an illegal character sequence is detected in a comment, processing instruction or CDATA section. (veithen: rev 1743854)
* axiom/aspects/core-aspects/src/main/java/org/apache/axiom/core/stream/serializer/Context.java
* axiom/aspects/core-aspects/src/main/java/org/apache/axiom/core/stream/serializer/ExtendedLexicalHandler.java
* axiom/aspects/core-aspects/src/main/java/org/apache/axiom/core/stream/serializer/IllegalCharacterSequenceException.java
* axiom/aspects/core-aspects/src/main/java/org/apache/axiom/core/stream/serializer/SerializationHandler.java
* axiom/aspects/core-aspects/src/main/java/org/apache/axiom/core/stream/serializer/SerializerBase.java
* axiom/aspects/core-aspects/src/main/java/org/apache/axiom/core/stream/serializer/SerializerXmlHandler.java
* axiom/aspects/core-aspects/src/main/java/org/apache/axiom/core/stream/serializer/ToStream.java
* axiom/aspects/core-aspects/src/main/java/org/apache/axiom/core/stream/serializer/ToXMLStream.java
* axiom/aspects/core-aspects/src/test/java/org/apache/axiom/core/stream/serializer/SerializerTest.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 was sent by Atlassian JIRA
(v6.3.4#6332)

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