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

Cannot use forward slash in WMS name - deletes further info in field/form #17497

Closed
qgib opened this issue Oct 8, 2013 · 5 comments
Closed
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 Oct 8, 2013

Author Name: Dan Karran (Dan Karran)
Original Redmine Issue: 8796
Affected QGIS version: 2.0.1
Redmine category:web_services_clients/wms


If you use a forward slash in the name when adding a WMS or WFS service, the forward slash and everything after it in the same field does not get saved. Also, text from the following fields (e.g. URL) are not saved.

It seems to work as expected with other non alphanumeric characters.


@qgib
Copy link
Contributor Author

qgib commented Oct 8, 2013

Author Name: Jukka Rahkonen (Jukka Rahkonen)


Don't try to use forward slash in WMS layer name because it is not allowed there. That's because layer name is of XML type NCName in the schema. For the same reason WMS layer name must not begin with a number.

Read for example

http://stackoverflow.com/questions/1631396/what-is-an-xsncname-type-and-when-should-it-be-used

This should be included in WMS FAQ:

" Practical restrictions of an NCName

The practical restrictions of NCName are that it cannot contain several symbol characters like :, @, $, %, &, /, +, ,, ;, whitespace characters or different parenthesis. Furthermore an NCName cannot begin with a number, dot or minus character although they can appear later in an NCName. "

@qgib
Copy link
Contributor Author

qgib commented Oct 9, 2013

Author Name: Dan Karran (Dan Karran)


I hear what you're saying with regards to the layer name published by the WMS service itself, but surely a descriptive name used in QGIS for the server (not the layer) shouldn't have these same limitations?


  • 6330 was configured as Screen_Shot_2013-10-09_at_12.40.42.png
  • 6329 was configured as Screen_Shot_2013-10-09_at_12.40.27.png

@qgib
Copy link
Contributor Author

qgib commented Oct 9, 2013

Author Name: Jukka Rahkonen (Jukka Rahkonen)


Sorry, I should have checked the screen capture images.

I think that you are right and that should not happen. Perhaps the reason is still something XML related so that the slash truncates the line when it is saved into config file. Let's wait what the experts say.

@qgib
Copy link
Contributor Author

qgib commented Jan 30, 2014

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was changed from Version 2.0.0 to Future Release - High Priority

@qgib
Copy link
Contributor Author

qgib commented Nov 28, 2015

Author Name: Sebastian Dietrich (Sebastian Dietrich)


Has been fixed a long time ago in #17767 by not allowing '/' within the name. This is because the name is used as a key for "QSettings()":http://doc.qt.io/qt-4.8/qsettings.html#section-and-key-syntax.


  • 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 24, 2019
@qgib qgib added this to the Future Release - High Priority milestone May 24, 2019
@qgib qgib closed this as completed May 24, 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