You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Kalmár Róbert (Jira)" <ji...@apache.org> on 2023/04/28 11:55:00 UTC

[jira] [Created] (NIFI-11496) HandleHttpRequest and HandleHttpResponse doesn't work with "multipart/form-data" when sending multiple parts

Kalmár Róbert created NIFI-11496:
------------------------------------

             Summary: HandleHttpRequest and HandleHttpResponse doesn't work with "multipart/form-data" when sending multiple parts
                 Key: NIFI-11496
                 URL: https://issues.apache.org/jira/browse/NIFI-11496
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
            Reporter: Kalmár Róbert


When sending a "multipart/form-data" request with multiple parts to a server started with HandleHttpRequest, HandleHttpResponse will only process the first form properly and will throw an exception for each following form:
{code:java}
2023-04-28 13:40:59,721 ERROR [Timer-Driven Process Thread-2] o.a.n.p.standard.HandleHttpResponse HandleHttpResponse[id=c7a91d1a-0187-1000-1df6-5a49669a662d] Failed to respond to HTTP request for StandardFlowFileRecord[uuid=0c902106-9e8e-4091-9ccd-74ec2a124791,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1682682059687-1, container=default, section=1], offset=0, length=19],offset=5,name=0c902106-9e8e-4091-9ccd-74ec2a124791,size=10] because FlowFile had an 'http.context.identifier' attribute of aa6aaf4e-3581-44b1-a6b4-368d6353835e but could not find an HTTP Response Object for this identifier
 {code}
Each FlowFile after the first one will be routed to failure.

Example curl command:
{code:java}
curl --location 'http://localhost:8000/simple' \
--form 'fruit="apple"' \
--form 'fruit="strawberry"' \
--form 'fruit="pear"'{code}
The response will be "apple"



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