Curtis W Ruck created NIFI-6307:
-----------------------------------

             Summary: 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


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
(v7.6.3#76005)

Reply via email to