Uploaded image for project: 'GeoServer'
  1. GEOS-8964

TurboJPEG write (via TurboJpegImageWorker) throw IllegalArgumentException when a colorExpansion occurs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.14.0
    • Fix Version/s: 2.13.3, 2.15, 2.14.1
    • Component/s: None
    • Labels:
      None

      Description

      An user reported an exception occurred in GeoServer when rendering a Gray image with an SLD using a colorMap.

      2018-10-05 08:12:19,123 ERROR [geoserver.ows] -
      java.lang.IllegalArgumentException: TurboJPEG won't work with this type of sampleModel
      at it.geosolutions.imageio.plugins.turbojpeg.TurboJpegImageWriter.write(TurboJpegImageWriter.java:172)
      at org.geoserver.map.turbojpeg.TurboJpegImageWorker.writeTurboJPEG(TurboJpegImageWorker.java:127)
      at org.geoserver.map.turbojpeg.TurboJPEGMapResponse.formatImageOutputStream(TurboJPEGMapResponse.java:99)

      The color expansion to ComponentColorModel introduces an alpha channel but alpha will not be removed by a BandSelect since its presence has been checked too early, right before the color expansion occurred.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                dany111 Daniele Romagnoli
                Reporter:
                dany111 Daniele Romagnoli
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: