[ https://issues.apache.org/jira/browse/NIFIREG-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16349205#comment-16349205 ]
Kevin Doran commented on NIFIREG-135: ------------------------------------- I reproduced this with the REST API. When calling {{BucketFlowResource.createFlowVersion(...)}}, the returned VersionedFlowSnapshot.flow.versionCount is not updated to reflect the new flow version that was just created. The root cause is in the {{RegistryService.createFlowSnapshot(...)}}. The existing flow is retrieved before the snapshot is persisted, and the count is not updated. > BucketFlowsApi.create_flow_version returns an incorrect version count > --------------------------------------------------------------------- > > Key: NIFIREG-135 > URL: https://issues.apache.org/jira/browse/NIFIREG-135 > Project: NiFi Registry > Issue Type: Bug > Affects Versions: 0.1.0, 0.2.0 > Reporter: Daniel Chaffelson > Assignee: Kevin Doran > Priority: Major > > Using the Python version of the Swagger defined client at: > [https://github.com/Chaffelson/nipyapi/blob/master/nipyapi/registry/apis/bucket_flows_api.py] > The VersionedFlow sub-object in the VersionedFlowSnapshot returned by the > create_flow_version call does not correctly increment the version_count > variable. > If the Flow is subsequently retrieved using get_flow_version, the > version_count is correct. -- This message was sent by Atlassian JIRA (v7.6.3#76005)