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

escapeJson in ReplaceText

    XMLWordPrintableJSON

Details

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

    Description

      I have some problems while using excapeJson and unescapeJson in ReplaceText processor.

      When I give a string: He didn’t say, “Stop”! to ReplaceText as input,and configure ReplaceText like: attachment config.png

      The output of ReplaceText is same with the input: He didn’t say, “Stop!” ,nothing changed.

      As described in NiFI Documentation the output should be: He didn’t say, \"Stop!\”.Did I miss something?

      Also there are problems with unescapeJson.If input is: He didn’t say, \”Sto\\\"p!\”,the return string will be: He didn’t say, ”Sto"p!”.

      My dataflow:(GetFile just read a file with a string as content.)
      dataflow.png

      Thanks.

      Attachments

        1. ReplaceText_Bug.xml
          11 kB
          Robin Lutz
        2. dataflow.png
          84 kB
          tianzk
        3. config.png
          16 kB
          tianzk

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tianzk tianzk
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: