[Geoserver-devel] [jira] Created: (GEOS-1402) GeoServer returns 415 UNSUPPORTED_MEDIA_TYPE when asking for "http://localhost:8080/geoserver/styles/default_polygon.sld"

GeoServer returns 415 UNSUPPORTED_MEDIA_TYPE when asking for "http://localhost:8080/geoserver/styles/default_polygon.sld"
-------------------------------------------------------------------------------------------------------------------------

                 Key: GEOS-1402
                 URL: http://jira.codehaus.org/browse/GEOS-1402
             Project: GeoServer
          Issue Type: Bug
          Components: UI
    Affects Versions: 1.6.0-beta3, 1.5.3
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 1.5.4, 1.6.0-beta4

We moved the file publisher to use the mime types known to the web container, but .sld files aren't, thus the file publisher
return a 415 when asking for http://localhost:8080/geoserver/styles/default_polygon.sld.
A new set of miem types can be registered in web.xml thought, see for example:
http://www.developer.com/img/2006/06/web.xml.html

Jetty knows about a very small set of mime types, so we shall try to register a good set in web.xml by default to avoid
issues.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira