-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WMS/WMTS don't like special character in requests by 2.16 Nødebo #23194
Comments
Author Name: Klas Karlsson (@klakar) I've tried with multiple Linux (Ubuntu) versions with same result. The only Windows 10 computer I've tried will add the layer, but will give a lot of errors after a few zoom/pan operations. The layer works fine on 2.14.4 LTR! |
Author Name: Klas Karlsson (@klakar) Now I've tried a few other WMTS services and most seem to work so, what has changed in 2.16 that makes my particular layer stop working? Working: http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?Version=1.0.0&service=wmts&request=getcapabilities Is it the https? |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Klas Karlsson (@klakar) I have installed QGIS 2.17 (master) on a clean Xubuntu VM and the WMTS works great (can not trace any fix though)! "Purging" the install and re-installing 2.16 will enable the service to some extent, but the problem resembles Windows behavior where "tileRequest" is invalid resulting in white tiles. |
Author Name: Giovanni Manghi (@gioman) Have you tried to clear the cache in the QGIS general options?
|
Author Name: Klas Karlsson (@klakar) No change after cleared cache. It is still impossible to add my WMTS layer in QGIS 2.16. I haven't gone through the process of updating to master, purging, reinstalling, though. Shouldn't be necessary. Something tells me any shown tiles will be blank too, if the cache is cleared. New info though: A clean 2.16 install on Windows gives the same problem as on Linux, the WMTS layer can not be added (no cache I guess). |
Author Name: Klas Karlsson (@klakar) Went back to Windows computer with "semi working" WMTS and cleared cache... Now it is not accepting the WMTS from "Lantmäteriet" at all. Still, the Norwegian WMTS works... And as far as I can see the only difference is "https" in the Swedish service. Can I collect some logs somehow to find a possible solution? |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Mattias Spangmyr (@MattiasSp) I also experienced this issue with the same WMS source as Klas Karlsson, also only on 2.16.0. When comparing the GetCapabilities-requests between 2.16.0 and 2.14.4 with Fiddler the only difference I found was the "User-Agent" in the HTTP header. In 2.14.4 it's given as "Mozilla/5.0 QGIS/2.14.4-Essen" while in the new version it's "Mozilla/5.0 QGIS/2.16.0-Nødebo". If I "fiddle" with the request and change the header's User-Agent to "Mozilla/5.0 QGIS/2.16.0-Nodebo" the request is accepted with the expected response. My guess is that the WMS provider in this case does not allow exotic characters in the HTTP header. This would explain why the same WMS suddenly works again in 2.17 with no apparent fixes.
|
Author Name: Klas Karlsson (@klakar) Tested again with QGIS 2.16.1 and to my surprice: Still not working! I tested it in QGIS Master last week and it +did+ work there. |
Author Name: Anita Graser (@anitagraser) Confirmed on Windows with 2.16.1 This one doesn't work http://services.cuzk.cz/wms/local-km-wms.asp This one works http://data.wien.gv.at/daten/geo?version=1.3.0
|
Author Name: Anita Graser (@anitagraser)
|
Author Name: Jürgen Fischer (@jef-n) Fixed in changeset "bce5ed52a8554a385805a6c23d07cecfd1ea0b4b".
|
Author Name: Klas Karlsson (@klakar)
Original Redmine Issue: 15258
Affected QGIS version: 2.16.1
Redmine category:web_services_clients/wms
I have a WMTS service I use to connect to in QGIS, but after update to 2.16 this service does not work.
Attached is XML for the connection.
The text was updated successfully, but these errors were encountered: