WMS legend broken for percent-encoded LegendURL's #25459
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Data Provider
Related to specific vector, raster or mesh data providers
Easy fix
Regression
Something which used to work, but doesn't anymore
Author Name: Richard Duivenvoorde (@rduivenvoorde)
Original Redmine Issue: 17562
Affected QGIS version: master
Redmine category:web_services_clients/wms
Some WMS services, eg:
http://gisservices.noord-holland.nl/ags/services/pnh_dataservice_alg/MapServer/WMSServer?request=GetCapabilities&service=WMS
have their (valid) LegendURL's percentage-encoded in the capabilities, eg:
http://gisservices.noord-holland.nl/ags/services/pnh_dataservice_alg/MapServer/WmsServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=Bouwen op slappe grond - Damwand complexiteit
While this was working in 2.18/qt4, this returns a 'flawed image' in 2.99 because QGIS adds a second &FORMAT=image/png to the url, while the server can apparently only handle one.
I'll add a Pull Request to fix this.
The text was updated successfully, but these errors were encountered: