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

Configuration parsing of CDATA values are blank

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0, 2.9.3, 3.1.4, 3.2.2, 2.10.1
    • Component/s: conf
    • Labels:
      None
    • Target Version/s:

      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.patch
          3 kB
          Daryn Sharp
        2. HADOOP-16749.002.patch
          3 kB
          Jonathan Turner Eagles

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: