Skip to content

ResourceHttpMessageConverter should read the Content-Disposition header (if available) to get the file name [SPR-15191] #19757

Closed
@spring-projects-issues

Description

@spring-projects-issues

Mauro Molinari opened SPR-15191 and commented

When reading contents with RestTemplate:

restTemplate.getForObject(url, Resource.class, parts);

the returned Resource does not specify any file name, even if the HTTP response received from the remote server has a proper Content-Disposition header with file name specified.

It would save some work if ResourceHttpMessageConverter read that header and properly enhanced the returned Resource object.


Affects: 4.2.8, 4.3.1

Issue Links:

Referenced from: commits 768802f

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions