Uploaded image for project: 'Red Hat build of Apache Camel for Spring Boot'
  1. Red Hat build of Apache Camel for Spring Boot
  2. CSB-6284

camel-platform-http-starter HttpBinding does not support concurrent multipart/form-data requests with the same key id

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • CSB-4.8.3
    • CSB-4.8
    • Camel
    • None
    • Very Likely
    • 0

      Since current implementation does not use a random filename, concurrent multipart/form-data requests with the same file key id have a possibility for broken data.
      https://github.com/apache/camel-spring-boot/blob/main/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBinding.java#L79

      curl -i -X POST -F "file=@dummy.txt" "http://localhost:8080/sample/upload" & 
      curl -i -X POST -F "file=@dummy.txt" "http://localhost:8080/sample/upload" & 
      curl -i -X POST -F "file=@dummy.txt" "http://localhost:8080/sample/upload" & 
      curl -i -X POST -F "file=@dummy.txt" "http://localhost:8080/sample/upload" & 
      curl -i -X POST -F "file=@dummy.txt" "http://localhost:8080/sample/upload" & 

              ldemasi Luigi De Masi
              rhn-support-hfuruich Hisao Furuichi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: