James Netherton created CAMEL-20670:
---------------------------------------

             Summary: camel-platform-http-vertx: Multipart attachment id should 
be consistent with other HTTP components
                 Key: CAMEL-20670
                 URL: https://issues.apache.org/jira/browse/CAMEL-20670
             Project: Camel
          Issue Type: Improvement
          Components: camel-platform-http-vertx
            Reporter: James Netherton
            Assignee: James Netherton
             Fix For: 4.6.0


Originally reported here:

[https://github.com/apache/camel-quarkus/issues/5981]

When the platform-http-vertx consumer adds an attachment to the 
AttachmentMessage, it uses the actual file name of the uploaded content as the 
id.

[https://github.com/apache/camel/blob/450c4a6228711bf947f9beb8ec65ab801959a0c0/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java#L343]

We should change it to be consistent with other HTTP components and use the 
'name' attribute of the Content-Disposition sent in the request body. E.g this:

[https://github.com/apache/camel/blob/450c4a6228711bf947f9beb8ec65ab801959a0c0/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java#L323]



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

Reply via email to