Bug report #13986

Updated by Paul Blottiere over 5 years ago

QGIS server segfaults (500 Internal Server Error) with a specific layer style and the GetLegendGraphics request does not include a BBOX parameter.

System: Ubuntu Wily 64 bit, QGIS Server from official repository, Version 2.12



See attached project. When the QGIS Webclient is first opened, the legend-graphics on the right side (if enabled in Customizations.js) are rendered correctly. If you move or zoom, the legend graphic symbol for the bad layer is replaced with an "image not found" symbol.



The only difference in the requests before and after is the missing BBOX parameter on first load:



Good request:

http://gis.local.at/cgi-bin/qgis_mapserv.fcgi?map=/home/tom/error/error_legend_graphic.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetLegendGraphics&FORMAT=image%2Fpng&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BOXSPACE=1&LAYERSPACE=2&SYMBOLSPACE=1&SYMBOLHEIGHT=2&LAYERFONTSIZE=8&ITEMFONTSIZE=8&LAYERTITLE=FALSE&LAYERFONTCOLOR=%23FFFFFF&LAYERTITLESPACE=0&TRANSPARENT=true&LAYERS=LayerWithErrorLegendGraphic&DPI=96



Bad request:

http://gis.local.at/cgi-bin/qgis_mapserv.fcgi?map=/home/tom/error/error_legend_graphic.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetLegendGraphics&FORMAT=image%2Fpng&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BOXSPACE=1&LAYERSPACE=2&SYMBOLSPACE=1&SYMBOLHEIGHT=2&LAYERFONTSIZE=8&ITEMFONTSIZE=8&LAYERTITLE=FALSE&LAYERFONTCOLOR=%23FFFFFF&LAYERTITLESPACE=0&TRANSPARENT=true&LAYERS=LayerWithErrorLegendGraphic&DPI=96&BBOX=1496292.188517,6104920.852403,1497818.540426,6106451.981626



I have a test environment set up if somebody needs further testing.

Back