Bug report #1346
Invalid GetMap Requests in WMS: two question marks
|Category:||Web Services clients/WMS|
|Affected QGIS version:||Regression?:||No|
|Operating System:||Debian||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||11406|
I just compiled the latest QGIS trunk version and ran into the problem that the WMS plugin now generates invalid WMS requests. Did someone change the WMS functionality recently?
The problem is that it adds a second question mark in the REQUEST string, although the original connection string already contains a question mark.
Here is my original WMS connection string which works fine for the GetCapabilities request:
Here is the connection string with two question marks that qgis generates:
Note the second question mark before the SERVICE parameter. I think this is rather simple to fix in the code. Just see if a question mark is already present in the connection string and don't add one if it is.
Thanks for having a look at this bug.