-
Bug
-
Resolution: Unresolved
-
Normal
-
CSB-4.8
-
None
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" &