Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5144

TransformXml crashes creating CDATA (Saxon issue?)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6.0
    • None
    • None

    Description

      Hi all,

      I've not submitted a Jira issue before, apologies if this is in the wrong place.

       

      I'm attempting to transform XML containing CDATA sections, into another structure but keeping the CDATA tags. A 3rd party XML transformer confirms the XSLT I've got transforms the XML successfully, using xsl:output to specify which output elements to create as CDATA.

      Using the same XML and XSLT in NiFi 1.6.0 causes the following exception:

       

      java.lang.IllegalArgumentException: Value of {cdata-section-elements} must be a list of QNames in '{uri}local' notation

       

      The stack trace (attached) mentions the Saxon library, which I've searched for along with the exception and found the bug detailed here.

      NiFi 1.6.0 appears to be bundled with Saxon-HE-9.6.0-5.jar, which is a version from before the bug above was fixed (if they are related).

       

      Attachments

        1. trace.txt
          3 kB
          Chris Green

        Activity

          People

            Unassigned Unassigned
            DirectRoot Chris Green
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: