[Geoserver-devel] [jira] Created: (GEOS-4737) Encoding of GWC tiles coming from an embedded raster layer fail due to premature disposal of the metatile

Encoding of GWC tiles coming from an embedded raster layer fail due to premature disposal of the metatile
---------------------------------------------------------------------------------------------------------

                 Key: GEOS-4737
                 URL: https://jira.codehaus.org/browse/GEOS-4737
             Project: GeoServer
          Issue Type: Bug
          Components: GWC
            Reporter: Gabriel Roldán
            Assignee: Gabriel Roldán
            Priority: Critical
             Fix For: 2.1.2

GeoServerMetaTile.writeTileToStream calls RenderedImageMapResponse.write, which in turn disposes the image. Problem is when encoding a tile from a metatile, that comes from a geoserver raster layer, the first tile gets encoded but the second find the image disposed.

Solution is to call RenderedImageMapResponse.formatImageOutputStream directly and deal with metatile RenderedImage disposal at GeoServerMetaTile.dispose()

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira