Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Incorrect value for LABELITEM generates a server error instead of an error message. #5188
In version 7.0, setting a layer LABELITEM to a column name that doesn't exist generates a server error instead of an error message. In 6.4 and earlier versions you'd see something like "msDrawMap(): Image handling error. Failed to draw layer named 'x'. msDBFGetItemIndex(): DBASE file error. Item 'y' not found.".
Also happens CLASSITEM or within an expression, at least for shapefiles. OGR driver seems to ignore the problem but doesn't crash. Looks like it could be an issue in mapdraw.c where the return value from msLayerWhichItems() is not checked in msDrawVectorLayer().