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

NiFi Toolkit bat files should quote command line args properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • None
    • None

    Description

      The toolkit bat files currently don't quote the command line arguments passed to them. This results in problems with spaces or special characters as arguments.

      We should be able to address this by double-quoting the cmd arguments. If we add a space before the closing "", we should be able to handle whether or not the last argument is quoted.

      E.g. without spaces -n "localhost(2)" would be rendered as -n "localhost(2)""" which breaks but with space it will be -n "localhost(2)" "" which is interpreted correctly.

      See http://stackoverflow.com/questions/12891383/correct-quoting-for-cmd-exe-for-multiple-arguments#answer-12892791

      Attachments

        Issue Links

          Activity

            People

              bryanrosander@gmail.com Bryan Rosander
              bryanrosander@gmail.com Bryan Rosander
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: