Project: mule
Issue MULE-8142: HTTP Listener is storing only the first part of a MultiPart request as attachment
given the following request using RestAssured: {code} given() .multiPart("description", "Barcelona Badge") .multiPart("image", "bbva.jpg", this.getClass().getClassLoader().getResourceAsStream("org/mule/module/apikit/leagues/bbva.jpg")) .expect() .statusCode(200) .body("upload", is("OK")) .when() .put("/api/leagues/liga-bbva/badge"); {code} only the first part ("description") is being stored as an inboundAttachment. Using http:inbound instead of listener generates both attachments as expected. failing test using listener: https://github.com/mulesoft/apikit/blob/http-3.6/mule-module-apikit/src/test/java/org/mule/module/apikit/leagues/LeaguesHttpListenerTestCase.java passing test using endpoint: https://github.com/mulesoft/apikit/blob/http-3.6/mule-module-apikit/src/test/java/org/mule/module/apikit/leagues/LeaguesTestCase.java in both classes the test in question is putMultiPartFormData()
Story points: 8