New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to process request with sub boundaries #2601
Comments
Hi @radudeliu Many thanks for taking the time to submit the issue and provide an example app demonstrating the problem. It was really useful 👍 In the example app you provided it looks like you are setting the MediaType to partBuilder.part("part2", subPartBuilder.build(), MULTIPART_MIXED); Was there a specific reason for this? If we omit the setting of the MediaType in this call, we get a
This gives us a private Mono<String> callClient(WebClient webClient) {
final var subPartBuilder = new MultipartBodyBuilder();
subPartBuilder.part("part11", "part11_content").contentType(TEXT_PLAIN);
subPartBuilder.part("part12", "part12_content").contentType(TEXT_PLAIN);
final var partBuilder = new MultipartBodyBuilder();
partBuilder.part("part1", "part1_content").contentType(TEXT_PLAIN);
partBuilder.part("part2", subPartBuilder.build());
return webClient
.post()
.contentType(MULTIPART_RELATED)
.bodyValue(partBuilder.build())
.retrieve()
.bodyToMono(String.class);
} Using this all your tests pass. Would be interested to hear your thoughts |
Proposal
Hello,
I encountered two issues when using wiremock to test a request with sub boundaries:
Please let me know if more details is needed.
Thank you,
Radu
Reproduction steps
I attached a sample app with two test: wiremock_issues.zip
References
No response
The text was updated successfully, but these errors were encountered: