[Geoserver-devel] [jira] Created: (GEOS-1590) Missing Content-Type in GetMap-Response

Missing Content-Type in GetMap-Response
---------------------------------------

                 Key: GEOS-1590
                 URL: http://jira.codehaus.org/browse/GEOS-1590
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 1.5.3
         Environment: Windows Server, Geoserver running on Tomcat 5.5, JDK 1.5 & 1.6
            Reporter: Peter Robineau
            Assignee: Andrea Aime

When performing a GetMap request with Geoserver the response in some cases lacks the HttpHeader 'Content-Type' (e.g. 'image/gif').....in particular when requesting for GIF output. During debugging we noticed that a new HttpServletResponse (before executing any Geoserver / Geotools specific code) occasionally is set to state 'committed' so that the 'setContentType'-method (called in AbstractService class, but also before) is useless since the response object assumes to be already flushed. The consequence is a missing header.. May it occur that the HttpServletResponse object cannot be recycled properly due to remaining references in Geotools ImageWorker class or in some ServiceStrategy classes or something like that? The content-type is important for our application to differentiate beetween raster response and service exception. Have you already encountered any problem similar to this, which could help us for further research?

--
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