You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/03/30 14:31:00 UTC

[jira] [Commented] (NIFI-11363) Flow Encryption Commands can truncate floating point numbers

    [ https://issues.apache.org/jira/browse/NIFI-11363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17706914#comment-17706914 ] 

ASF subversion and git services commented on NIFI-11363:
--------------------------------------------------------

Commit f61d547e3ebbdef3394590cc6fff89c9c9eb6813 in nifi's branch refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=f61d547e3e ]

NIFI-11363 Fixed precision number handling in Flow Encryption Commands

Signed-off-by: Bence Simon <bs...@apache.org>
This closes #11363


> Flow Encryption Commands can truncate floating point numbers
> ------------------------------------------------------------
>
>                 Key: NIFI-11363
>                 URL: https://issues.apache.org/jira/browse/NIFI-11363
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework, Security, Tools and Build
>    Affects Versions: 1.17.0, 1.18.0, 1.20.0, 1.19.1
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Major
>             Fix For: 1.latest, 2.latest
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)