-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Server][Ogc Api] Inconsistency regarding pattern handling for QgsServerOgcApiHandler #45439
Closed
1 of 2 tasks
Comments
elpaso
added a commit
to elpaso/QGIS
that referenced
this issue
Oct 7, 2021
elpaso
added a commit
to elpaso/QGIS
that referenced
this issue
Oct 8, 2021
nyalldawson
pushed a commit
that referenced
this issue
Nov 1, 2021
dmarteau
added a commit
to 3liz/qgis-server-tiles-plugin
that referenced
this issue
Jan 19, 2022
Fix url prefix for qgis/QGIS#45439
dmarteau
added a commit
to 3liz/py-qgis-server
that referenced
this issue
Jan 19, 2022
- Follow backport for qgis/QGIS#45439
dmarteau
added a commit
to 3liz/qgis-server-tiles-plugin
that referenced
this issue
Oct 18, 2022
Fix url prefix for qgis/QGIS#45439
dmarteau
added a commit
to 3liz/qgis-server-tiles-plugin
that referenced
this issue
Oct 18, 2022
Fix url prefix for qgis/QGIS#45439
dmarteau
added a commit
to 3liz/qgis-server-tiles-plugin
that referenced
this issue
Oct 18, 2022
Fix url prefix for qgis/QGIS#45439
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the bug or the crash?
Selection of handler (QgsServerOgcApiHandler) is done using the url path, but exraction of parameters is done using the full url.
Thas means the selection and the capture of parameters do not obey same matching rules, making hard to predict the
behavior of a selection pattern with parameters.
This lead to some unexpected behavior such as getting the hostname in patterns beginning with some capture group or even getting the query part in the captured group.
Steps to reproduce the issue
/(?P<myparam>[^/]+)/?
then while the correct handler will be selected, you will get the hostname as parameter.Example:
/(?P<myparam>[^/]+)/?
then while the correct handler will be selected you will havemyparam?<query param follow>
if the url does not end with/
Example using the request:
http://localhost:19876/tms/france_parts.json?MAP=france_parts
Pattern was:
/tms/(?P<tilemapid>[^/]+)
Versions
Qgis 3.16+
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: