[
https://issues.apache.org/jira/browse/HDFS-7287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14183422#comment-14183422
]
Ravi Prakash commented on HDFS-7287:
------------------------------------
Hi Haohui! I'm not familiar with CDATA, but the wikipedia
https://en.wikipedia.org/wiki/CDATA entry says
{quote} But the text within a CDATA section is strictly limited to the
characters available in the encoding.
Because of this, using a CDATA section programmatically to quote data that
could potentially contain '&' or '<' characters can cause problems when the
data happens to contain characters that cannot be represented in the encoding
{quote}
> The OfflineImageViewer (OIV) can output invalid XML depending on the filename
> -----------------------------------------------------------------------------
>
> Key: HDFS-7287
> URL: https://issues.apache.org/jira/browse/HDFS-7287
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha
> Reporter: Ravi Prakash
> Assignee: Ravi Prakash
> Attachments: HDFS-7287.patch
>
>
> If the filename contains a character which is invalid in XML,
> TextWriterImageVisitor.write() or PBImageXmlWriter.o() prints out the string
> unescaped. For us this was the character 0x0
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)