Marlies Hinterleitner created NIFI-14805:
--------------------------------------------

             Summary: InvokeHTTP routes all responses to 'response' 
relationship regardless of HTTP status code
                 Key: NIFI-14805
                 URL: https://issues.apache.org/jira/browse/NIFI-14805
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
    Affects Versions: 2.4.0, 2.2.0
            Reporter: Marlies Hinterleitner
         Attachments: Problem_with_InvokeHTTP.json

**Expected Behavior:**  
FlowFiles should be routed to `success`, `response`, or `failure` based on the 
HTTP status code and processor configuration.

**Actual Behavior:**  
All FlowFiles are routed to `response`, regardless of the HTTP status code, 
when the property Response Generation Required is set to true. If this property 
is set to false, the failed responses are terminated correctly.

**Steps to Reproduce:**
1. Create a flow with `InvokeHTTP` calling an API that returns 403.
2. Observe that the FlowFile is routed to `response` instead of `failure`.
(See in Flow Definition below.)



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

Reply via email to