Skip to content
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

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

Closed
spring-projects-issues opened this issue Jan 26, 2017 · 1 comment
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket)

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jan 26, 2017

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

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Good idea! Rolling this into 5.0 RC1, based on our new ContentDisposition management in HttpHeaders...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket)
Projects
None yet
Development

No branches or pull requests

2 participants