Skip to content
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

Closed
qgib opened this issue Jul 11, 2016 · 14 comments
Closed

WMS/WMTS don't like special character in requests by 2.16 Nødebo #23194

qgib opened this issue Jul 11, 2016 · 14 comments
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

Comments

@qgib
Copy link
Contributor

qgib commented Jul 11, 2016

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.


@qgib
Copy link
Contributor Author

qgib commented Jul 11, 2016

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!

@qgib
Copy link
Contributor Author

qgib commented Jul 12, 2016

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
Not working: https://api.lantmateriet.se/open/topowebb-ccby/v1/wmts/token/b33b7fec47e14eb6e02539ad1a24cae2/?service=wmts&request=getcapabilities

Is it the https?

@qgib
Copy link
Contributor Author

qgib commented Jul 12, 2016

Author Name: Giovanni Manghi (@gioman)


  • category_id was configured as Web Services clients/WMS
  • priority_id was changed from Normal to Severe/Regression

@qgib
Copy link
Contributor Author

qgib commented Jul 12, 2016

Author Name: Giovanni Manghi (@gioman)


  • version was changed from master to 2.16.0

@qgib
Copy link
Contributor Author

qgib commented Jul 12, 2016

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.

@qgib
Copy link
Contributor Author

qgib commented Jul 13, 2016

Author Name: Giovanni Manghi (@gioman)


Have you tried to clear the cache in the QGIS general options?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jul 13, 2016

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).

@qgib
Copy link
Contributor Author

qgib commented Jul 13, 2016

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?

@qgib
Copy link
Contributor Author

qgib commented Jul 13, 2016

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Jul 29, 2016

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.


  • 10257 was configured as fiddler_output.png

  • fiddler_output.png (Mattias Spangmyr) - HTTP headers and responses from Fiddler, comparing QGIS 2.14.4 and 2.16.0

@qgib
Copy link
Contributor Author

qgib commented Jul 31, 2016

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.

@qgib
Copy link
Contributor Author

qgib commented Aug 15, 2016

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


  • version was changed from 2.16.0 to 2.16.1
  • operating_system was changed from Ubuntu Linux to
  • os_version was changed from 16.04 to

@qgib
Copy link
Contributor Author

qgib commented Aug 15, 2016

Author Name: Anita Graser (@anitagraser)


  • subject was changed from WMTS layer not working in 2.16 to WMS/WMTS don't like special character in requests by 2.16 Nødebo

@qgib
Copy link
Contributor Author

qgib commented Aug 15, 2016

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "bce5ed52a8554a385805a6c23d07cecfd1ea0b4b".


  • status_id was changed from Open to Closed

@qgib qgib added 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 labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant