Bug report #13986

Server segfaults when requesting certain GetLegendGraphics without bbox

Added by Tom Palan over 8 years ago. Updated about 5 years ago.

Status:Closed
Priority:High
Assignee:Stéphane Brunner
Category:QGIS Server
Affected QGIS version:2.18.4 Regression?:No
Operating System:Ubuntu Easy fix?:No
Pull Request or Patch supplied:No Resolution:no timely feedback
Crashes QGIS or corrupts data:Yes Copied to github as #:22000

Description

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.

legend_graphic_project.zip (29 KB) Tom Palan, 2015-12-14 09:21 AM

History

#1 Updated by Yves Jacolin almost 8 years ago

In a similar form, I get a seg fault with GetFeatureInfo in WMS if some parameters are missing (I/J) or misswriting. QGIS server should ignore unknown parameter or send an error message in a XML standard response about missing parameter.

We (Camptocamp) will probably work on this at the next hackfest in Bonn.

#2 Updated by Yves Jacolin almost 8 years ago

Is it something similar to #11552

#3 Updated by Yves Jacolin almost 8 years ago

  • Assignee set to Stéphane Brunner

#4 Updated by Giovanni Manghi about 7 years ago

  • Priority changed from Normal to High

#5 Updated by Giovanni Manghi about 7 years ago

  • Affected QGIS version changed from 2.12.0 to 2.18.4
  • OS version changed from 15.04 to 16.04
  • Target version set to Version 2.18

Seems still the case on 2.18.4 and Ubuntu 16.04

#6 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No
  • Regression? set to No

#7 Updated by Paul Blottiere over 5 years ago

  • Description updated (diff)

I tried to reproduce this issue with the current master branch (3.X), but without success. So it seems specific to QGIS 2.18.

#8 Updated by Giovanni Manghi over 5 years ago

  • Status changed from Open to Feedback

#9 Updated by Jürgen Fischer about 5 years ago

  • Status changed from Feedback to Closed
  • Resolution set to no timely feedback

Bulk closing 82 tickets in feedback state for more than 90 days affecting an old version. Feel free to reopen if it still applies to a current version and you have more information that clarify the issue.

Also available in: Atom PDF