Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20670

camel-platform-http-vertx: Multipart attachment id should be consistent with other HTTP components

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.6.0
    • None
    • Unknown

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: