You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2024/04/15 07:44:00 UTC
[jira] [Resolved] (CAMEL-20670) camel-platform-http-vertx: Multipart attachment id should be consistent with other HTTP components
[ https://issues.apache.org/jira/browse/CAMEL-20670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Netherton resolved CAMEL-20670.
-------------------------------------
Resolution: Fixed
> 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
> Priority: Minor
> 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)