You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Arllen (JIRA)" <ji...@apache.org> on 2017/03/24 02:06:41 UTC

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

David Arllen created NIFI-3643:
----------------------------------

             Summary: 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.1.1, 1.2.0
         Environment: OpenJDK8. gson, nifi-1.1.0
            Reporter: David Arllen
            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)