-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
As reported on PR https://github.com/resteasy/resteasy/pull/4011/, when a List of type EntityPart is processed through the MultipartEntityPartWriter the headers are not correctly added. The method to create the MultipartFormDataOutput looks like:
private static MultipartFormDataOutput create(final List<EntityPart> entityParts) { final MultipartFormDataOutput output = new MultipartFormDataOutput(); for (EntityPart entityPart : entityParts) { final OutputPart part = output.addFormData(entityPart.getName(), entityPart.getContent(), entityPart.getMediaType(), entityPart.getFileName() .orElse(null)); entityPart.getHeaders().forEach((name, value) -> part.getHeaders().addAll(name, value)); } return output; }
However, the MultivalueMap.addAll(String, Object...) is invoked instead of MultivalueMap.addAll(String, List). This causes the value to be the value of List.toString() instead of each value being added.
- is incorporated by
-
WFLY-19031 Upgrade RESTEasy from 6.2.7.Final to 6.2.8.Final
- Closed