Issue Type:
|
Improvement
|
Assignee:
|
Andrea Aime
|
Created:
|
23/Oct/12 4:48 PM
|
Description:
|
The org.geoserver.ows.Response class has a default definition of getAttachmentFileName() that uses the MIME type of the response to guess a filename to use in the Content-Disposition header. Currently the heuristic used is to take the part of the MIME type up to the first / character. Instead, I think it should be everything between the first / and the first ; if any. This is because MIME types are structured as a general category (application, text, imageā¦) and a specific subtype - the subtype more often corresponds to a commonly used file extension than the general category. Examples:
text/css
text/xml
image/png
image/jpeg
etc.
|
Project:
|
GeoServer
|
Priority:
|
Major
|
Reporter:
|
David Winslow
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa).
For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)