Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-19286

XML output : The ">" special character is not escaped when "Namespace" is set with this special character.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Urgent
    • Resolution: Fixed
    • Affects Version/s: 8.3.0 GA, 9.1.0 GA, 9.2.0 GA
    • Fix Version/s: Backlog, 9.3.0 GA
    • Component/s: Step
    • Labels:
      None
    • Story Points:
      3
    • PDI Sub-component:
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Sprint Team:
      Mos Eisley
    • Steps to Reproduce:
      Hide
      1. Start Spoon 8.3/9.1/9.2
      2. Open the attached transformation sample1.ktr and change the filename path in XML Output Step as per your environment.
      Show
      Start Spoon 8.3/9.1/9.2 Open the attached transformation sample1.ktr  and change the filename path in XML Output Step as per your environment.

      Description

      When using the ">" character in the "Namespace" field of the XML Output Step, the character ">" is not escaped as expected.

       

      Expected Result:

      <?xml version='1.0' encoding='UTF-8'?>
      <Rows xmlns="&lt;namespace&amp;&gt;">
      <Row><data1>ABCDE</data1></Row>
      </Rows>
      

      Actual Result:

      <?xml version='1.0' encoding='UTF-8'?>
      <Rows xmlns="&lt;namespace>">
      <Row><data1>ABCD</data1></Row>
      </Rows>
      

      You can notice that the special character ">" is not replaced

        Attachments

        1. namespace.PNG
          namespace.PNG
          19 kB
        2. sample1.ktr
          14 kB

          Activity

            People

            Assignee:
            ldeng Li Deng
            Reporter:
            gdev Gurudev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: