[
https://issues.apache.org/jira/browse/NIFI-3643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Gilman updated NIFI-3643:
------------------------------
Fix Version/s: (was: 1.1.1)
Affects Version/s: (was: 1.2.0)
Status: Patch Available (was: In Progress)
> 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)