[
https://issues.apache.org/jira/browse/NIFI-3643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15944010#comment-15944010
]
ASF subversion and git services commented on NIFI-3643:
-------------------------------------------------------
Commit 4432958a65b0a3531004988fccc2339ec12f6d96 in nifi's branch
refs/heads/master from [~mcgilman]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=4432958 ]
NIFI-3643: - Addressing incorrect capitalization in VersionInfoDTO in
NiFiVersion.
This closes #1626.
Signed-off-by: Bryan Bende <[email protected]>
> 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
> Environment: OpenJDK8. gson, nifi-1.1.0
> Reporter: David Arllen
> Assignee: Matt Gilman
> Priority: Trivial
> Fix For: 1.2.0
>
>
> 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)