Closed
Description
Dave Syer opened SPR-13643 and commented
$ curl -v localhost:8888/foo/bar/master/application.yml
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8888 (#0)
> GET /foo/bar/master/application.yml HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:8888
> Accept: */*
>
< HTTP/1.1 200 OK
* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1
< X-Application-Context: configserver:8888
< Content-Disposition: attachment;filename=f.txt
< Content-Type: text/plain;charset=UTF-8
< Content-Length: 120
< Date: Wed, 04 Nov 2015 14:48:09 GMT
<
...
Users expect the filename would be "application.yml". It looks weird in the browser when you get a download of a file that has the wrong name.
Here's the endpoint:
@RequestMapping("/{name}/{profile}/{label}/{path:.*}")
Affects: 4.1.8, 4.2.2
Issue Links:
- Protect against RFD exploits [SPR-13548] #18124 Protect against RFD exploits
- Content-Disposition header causes download in browser for Spring Boot Actuator endpoints [SPR-13587] #18164 Content-Disposition header causes download in browser for Spring Boot Actuator endpoints
Referenced from: commits a3168fd, 92ca537, 1489e29, 3a919a4, f0464e8, f5f57e9, 71a9eb7
0 votes, 7 watchers