You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Gilman (JIRA)" <ji...@apache.org> on 2017/03/27 12:47:42 UTC

[jira] [Assigned] (NIFI-3643) nifi-api: deserialization error of nifiVersion field due to capitalization

     [ https://issues.apache.org/jira/browse/NIFI-3643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Gilman reassigned NIFI-3643:
---------------------------------

    Assignee: Matt Gilman

> nifi-api: deserialization error of nifiVersion field due to capitalization
> --------------------------------------------------------------------------
>
>                 Key: NIFI-3643
>                 URL: https://issues.apache.org/jira/browse/NIFI-3643
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.2.0, 1.1.1
>         Environment: OpenJDK8. gson, nifi-1.1.0
>            Reporter: David Arllen
>            Assignee: Matt Gilman
>            Priority: Trivial
>             Fix For: 1.2.0, 1.1.1
>
>
> The response from `/nifi-api/system-diagnostics` includes the field name of 'niFiVersion'.  The gson serialization library works on reflection and expects 'nifiVersion' to be the field name because the class private field 'nifiVersion' does not have a capital F.
> Resolution is expected to involve only the class 'VersionInfoDTO'.  The fix would be matching the field capitalization with the capitalization of the associated getter and setter.
> Without this fix, a gson FieldNamingStrategy is required to artifically map the api-provided 'niFiVersion' field name to the reflection-expected 'nifiVersion'



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)