Uploaded image for project: 'Apache NiFi MiNiFi - MOVED TO NIFI PROJECT'
  1. Apache NiFi MiNiFi - MOVED TO NIFI PROJECT
  2. MINIFI-105

BootstrapCodec can throw exceptions with unintended message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.0.1
    • 0.1.0
    • Core Framework
    • None

    Description

      In BootstrapCodec.java, when the following tertiary expression gets evaluated, it never will be null, due to the string concatination. This causes the IOException message to always be "Details: " with the InvalidCommandException's toString result.

      try {
          processRequest(cmd, args);
      } catch (final InvalidCommandException ice) {
          throw new IOException("Received invalid command from NiFi: " + line + " : " + ice.getMessage() == null ? "" : "Details: " + ice.toString());
      }
      

      Attachments

        Issue Links

          Activity

            People

              jpercivall Joe Percivall
              jtstorck Jeff Storck
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: