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

ExecuteStreamCommand filters out any double quotes when parsing the "Command Arguments"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0
    • None
    • None

    Description

      Brought up on the mailing list[1], the ExecuteStreamCommand attempts to intelligently parse the "Command Arguments" by automatically detecting double quotes (") and treating those within double quotes as a single argument[2]. This is a nice feature but has the unfortunate side-effect of filtering out all double quotes.

      It should instead take into account when the double quote is escaped: \"

      [1] http://mail-archives.apache.org/mod_mbox/nifi-users/201612.mbox/browser
      [2] https://github.com/apache/nifi/blob/e12e7a55b75f5e358bdbcea79be9baba77532f94/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/ArgumentUtils.java#L60-L60

      Attachments

        Issue Links

          Activity

            People

              otto Otto Fowler
              jpercivall Joe Percivall
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h