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

Flow Encryption Commands can truncate floating point numbers

    XMLWordPrintableJSON

Details

    Description

      The encrypt-config.sh command from NiFi Toolkit, as well as the set-sensitive-properties-key and set-sensitive-properties-algorithm commands use a shared nifi-flow-encryptor module to read and write the JSON flow configuration.

      The JSON Flow Encryptor reads JSON elements and handles values according to parsed token type information. When the parser encounters a token type of FLOAT, the Encryptor calls JsonParser.getFloatValue(). However, the parsed value could contain a number of greater precision, such as a double. In this situation, the JSON Parser truncates the double precision to float precision. This can impact serialization of position coordinates for Processors in the Flow Configuration.

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 40m
                  40m