You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Daniel Chaffelson (JIRA)" <ji...@apache.org> on 2018/01/24 11:48:00 UTC

[jira] [Commented] (NIFI-4812) delete_registry_client call only accepts ID, but endpoint also expects Revision

    [ https://issues.apache.org/jira/browse/NIFI-4812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16337449#comment-16337449 ] 

Daniel Chaffelson commented on NIFI-4812:
-----------------------------------------

It works despite this if you deconstruct the json message via browser developer tools and present the exact format expected:
{code:java}
ControllerApi().delete_registry_client(
id=client.id,
version=client.revision.version
)
{code}
However this is completely counter to the message provided by theĀ errors.

> delete_registry_client call only accepts ID, but endpoint also expects Revision
> -------------------------------------------------------------------------------
>
>                 Key: NIFI-4812
>                 URL: https://issues.apache.org/jira/browse/NIFI-4812
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework, Flow Versioning
>    Affects Versions: 1.5.0, 1.6.0
>            Reporter: Daniel Chaffelson
>            Priority: Minor
>
> Using the Swagger Generated Python Client.
> When the delete_registry_client command is called from the ControllerApi(), the arguments expected by NiFi (id, revision) and the arguments allowed by swagger (id only) do not match, resulting in a failure.
> {code:java}
> ControllerApi().delete_registry_client(test_client.id)
> HTTP response body: The revision must be specified.
> ControllerApi().delete_registry_client(test_client.id, test_client.revision)
> TypeError: delete_registry_client() takes exactly 2 arguments (3 given)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)