Skip to content

FormHttpMessageConverter should not have a dependency on the Jakarta Mail API #28392

Closed
@jomastel

Description

@jomastel

When working with multipartCharset the FormHttpMessageConverter uses the MimeUtility.encodeText method.
This forces a dependency for sending email inside a HTTP converter.
In our case, we now need to import org.springframework.boot:spring-boot-starter-mail to fix this dependency.

Could an alternative import be used here to avoid such dependencies in the case of Content-Type multipart?
We found this issue when using a simple REST API.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions