[Bug]: WMS GetLegendGraphics does not display
What is the bug? (in English)
I receive this kind of json response from getlegendgraphics when called from wms:
{
"nodes": [
{
"icon": "",
"title": "",
"type": "layer",
"name": "Cours_d_eau_BCAE_derniere_edition",
"layerName": "Cours d'eau BCAE dernière édition"
}
],
"title": ""
}
The icon is always empty for wms layers.
It works fine for wfs and postgres layers.
When i try to show, hide legend from lizmap desktop extension, it has no impact. When i try to load directly from WMS source, it's the same. If i try to load it with format png and the same URL coming from Lizmap, it works.
Is it coming from a bad configuration from my side or a know issue ? I can't find something relative to this bug
Steps to reproduce the issue
Add wms layers and try getlegendgraphics
Versions, safeguards, check summary etc
Versions :
- Lizmap Web Client : 3.9.0 - commit 4a0d5ea52 https://github.com/3liz/lizmap-web-client/commit/4a0d5ea52
- Lizmap plugin : 4.5.3
- QGIS Desktop : 3.34.13
- QGIS Server : 3.40.7
- Py-QGIS-Server : 1.9.6
- QGIS Server plugin lizmap_server : 2.13.0
List of Lizmap Web Client modules :
* altiProfil : 0.5.9 * altiProfilAdmin : 0.5.9
List of safeguards :
* Mode : safe
* Allow parent folder : no
* Prevent other drive : yes
* Prevent PG service : yes
* Prevent PG Auth DB : yes
* Force PG user&pass : yes
* Prevent ECW : yes
Check Lizmap plugin
- [x] I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.
Operating system
Ubuntu
Browsers
Microsoft Edge
Browsers version
Version 138.0.3351.77
Relevant log output
I've tried with QGIS Desktop 3.40 and Lizmap 3.9.1 and i still got the same issue
Does someone have an idea on this issue ? My only fix is to redirect the FORMAT part to png on the web server side, not good.
hm, as more and more WMS are available due to INSPIRE in the EU area, this would be really nice to have