We created a tileset that we exposes in WMS. We defined a forwarding_rule so I can call GetLegendGraphic on this WMS service. It is working but at some scale we don't get the legend. It seems that the url sent to mapserver gets truncated because of the value of the parameter SCALE in the URL. Here is the call to mapcache
../cgi-wms/mapcache.fcgi/?LAYERS=inspq_temperature_surface&REQUEST=GetLegendGraphic&SERVICE=WMS&FORMAT=image/png&STYLES=&VERSION=1.1.1&SRS=EPSG:32198&TRANSPARENT=TRUE&SCALE=1.73627e+06&LAYER=inspq_temperature_surface
Here is the forwarded call
/cgi-wms/mapserv.fcgi?map=/srv/www/geomatique/services/map/wms/inspq.map&LAYERS=inspq_temperature_surface&REQUEST=GetLegendGraphic&SERVICE=WMS&FORMAT=image/png&STYLES=&VERSION=1.1.1&SRS=EPSG:32198&TRANSPARENT=TRUE&SCALE=1.73627e 06&LAYER=inspq_temperature_surface
Notice that the SCALE=1.73627e 06 seems not be encoded (there is a space in the value).
The url is then truncated at SCALE=1.73627e, so &LAYER=inspq_temperature_surface is not send and we get this error in mapserver log
msWMSGetLegendGraphic(): WMS server error. Mandatory LAYER parameter missing in GetLegendGraphic request.
We created a tileset that we exposes in WMS. We defined a forwarding_rule so I can call GetLegendGraphic on this WMS service. It is working but at some scale we don't get the legend. It seems that the url sent to mapserver gets truncated because of the value of the parameter SCALE in the URL. Here is the call to mapcache
../cgi-wms/mapcache.fcgi/?LAYERS=inspq_temperature_surface&REQUEST=GetLegendGraphic&SERVICE=WMS&FORMAT=image/png&STYLES=&VERSION=1.1.1&SRS=EPSG:32198&TRANSPARENT=TRUE&SCALE=1.73627e+06&LAYER=inspq_temperature_surface
Here is the forwarded call
/cgi-wms/mapserv.fcgi?map=/srv/www/geomatique/services/map/wms/inspq.map&LAYERS=inspq_temperature_surface&REQUEST=GetLegendGraphic&SERVICE=WMS&FORMAT=image/png&STYLES=&VERSION=1.1.1&SRS=EPSG:32198&TRANSPARENT=TRUE&SCALE=1.73627e 06&LAYER=inspq_temperature_surface
Notice that the SCALE=1.73627e 06 seems not be encoded (there is a space in the value).
The url is then truncated at SCALE=1.73627e, so &LAYER=inspq_temperature_surface is not send and we get this error in mapserver log
msWMSGetLegendGraphic(): WMS server error. Mandatory LAYER parameter missing in GetLegendGraphic request.