[
https://issues.apache.org/jira/browse/HDFS-7287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185895#comment-14185895
]
Ravi Prakash commented on HDFS-7287:
------------------------------------
Hi Colin! Thanks for writing XMLUtils.mangleXmlString . I'd like to solicit
opinion from you and the community. If I mangle the string using
XMLUtils.mangleXmlString, then the output of oiv might be an XML file which
will fail an xmllint test. StringEscapeUtils.escapeXml10() simply drops the
characters in the 3rd code point. That would produce valid XML, but obviously
might cause collisions (so directory\0000X and directoryX will have the same
strings in XML). Which would we rather have? Is there another way?
> 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.1.patch, 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)