Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16749

Configuration parsing of CDATA values are blank

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0, 2.9.3, 3.1.4, 3.2.2, 2.10.1
    • conf
    • None

    Description

      When using CDATA. CDATA elements are skipped by the parser.

      In fact someone on stack overflow was asking this same question a few months ago.
      https://stackoverflow.com/questions/57829034/why-is-apache-hadoop-configuration-module-ignores-cdata

        <property>
          <name>test.cdata</name>
          <value>hello <![CDATA[world]]></value>
        </property>
      

      conf.get("test.cdata") parses as 'hello ' instead of 'hello world'

      Attachments

        1. HADOOP-16749.002.patch
          3 kB
          Jonathan Turner Eagles
        2. HADOOP-16749.patch
          3 kB
          Daryn Sharp

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            daryn Daryn Sharp
            jeagles Jonathan Turner Eagles
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment