[ 
https://issues.apache.org/jira/browse/NIFI-6307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard resolved NIFI-6307.
----------------------------------
    Resolution: Feedback Received

Apache NiFi 1.x is no longer maintained and no new release is planned on the 
1.x release line. Marking as resolved as part of a cleanup operation. Please 
open a new one with an updated description if this is still relevant for NiFi 
2.x.

> REST API returns plaintext errors with Content-Type of application/json
> -----------------------------------------------------------------------
>
>                 Key: NIFI-6307
>                 URL: https://issues.apache.org/jira/browse/NIFI-6307
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.8.0
>            Reporter: Curtis W Ruck
>            Priority: Major
>
> When using the REST API, if an error occurs, a text string is returned, but 
> the response header Content-Type is 'application/json'
> GET controller/cluster returns "Only a node connected to a cluster can 
> process the request." when disconnected
> Multiple endpoints return the text "This node is disconnected from its 
> configured cluster. The requested change will only be allowed if the flag to 
> acknowledge the disconnected node is set." when disconnected.
> Ideally the REST API should return errors in json i.e. \{"type": "error", 
> "message": "This node is disconnected from its configured cluster. The 
> requested change will only be allowed if the flag to acknowledge the 
> disconnected node is set."} or set the content-type correctly.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to