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

Add StringEscapeUtils function to Nifi Expression Language

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • Core Framework
    • None

    Description

      When using Nifi Expression Language to build up a transport format (like JSON or XML) there is no go way to make sure that it has been properly escaped.

      Example Use Case:
      When using PutHTTP to a Web Service that requires JSON input. If the incoming data could contain String with quotes or other disallow character in JSON there is no reliable way to Escape the inputs as you put them into a larger JSON object.

      Proposed Change:
      StringEscapeUtils is part of apache commons-lang which is already a dependency for nifi base POM. The functions in StringEscapeUtils can easily be mapped into functions in nifi expression language.

      Work Done:
      I have the work done on a fork and am ready to submit a PR. That PR should get good review since it is my first contribution (outside of a fixed typo)

      Attachments

        Activity

          People

            Unassigned Unassigned
            dev.fisher Devin Fisher
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: