Bug 154 - GDAL PROCESSING directive stripped with 24 bit rasters, MapScript crashes
: GDAL PROCESSING directive stripped with 24 bit rasters, MapScript crashes
Status: CLOSED FIXED
: Chameleon
Core
: 1.1
: PC Linux
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-12-03 09:04 by
Modified: 2004-06-23 20:06 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-12-03 09:04:49
MapScript crashes, if a raster layer has the following directives:

LAYER
  NAME "name"
  TYPE raster
  ...
  PROCESSING "something"
  ...
END

In the corresponding session mapfile you only find the directive without 
parameters:

LAYER
  NAME "name"
  TYPE raster
  ...
  PROCESSING
  ...
END

Occured with 24 bit images from local source and remote WMS. 

Reproduced with chameleon-1.1alpha-20030902.tar.gz and chameleon-1.1alpha-
20031031.tar.gz
------- Comment #1 From 2003-12-03 11:46:15 -------
This seems to be a bug in MapServer's $map->save() method.  I'll take it.
------- Comment #2 From 2003-12-03 12:05:59 -------
The problem was indeed in msSaveMap() code in MapServer's mapfile.c

This is fixed in Mapserver's CVS for version 4.1 and in the 4.0.x branch (to be
released as 4.0.2).
------- Comment #3 From 2004-06-23 20:06:53 -------
this issue was in MapServer 4.0, now that it is version 4.2 I can only assume
this has been verified and closed on the mapserver bug list.