-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
[Bug]: Form filter - filtering by items with a quote in the text makes illegal request to QGIS Server (security exception) #2578
Comments
Hi, I cannot reproduce the issue in the last LWC master version with QGIS 3.16.11 Could you please provide a simple QGIS project and LWC configuration (with a PostgreSQL dump of the needed table and of a small subset of data) ? |
I sent you the project and the dump. |
After some digging, it appears that QGIS Server restricts the possibility to have a simple quote followed by a space. If the value is for example
It seems to me there is no way to use the combo quote+space in a filter string in a QGIS Server request at present. This is a QGIS related issue (not really a bug, but a restriction). As a workaround, you could either:
|
Do you want me to create an issue in QGIS Github repository ? |
Got it, thank you! We'll implement a workaround for now. If you can open the issue you can certainly be more precise than me, otherwise I will open it. |
A try to fix QGIS Server qgis/QGIS#46132 |
Thank you @rldhont! |
I can't reproduce in Lizmap 3.7 w/ QGIS 3.28. |
Hi @nboisteault, I can confirm that the issue is fixed in Lizmap 3.7. Thanks |
What is the bug?
When filtering for a value containing the character ', the results counter is correctly updated, but all results disappear from the map. As far as I can tell, QGIS Server refuses the request for security reasons (see attached logs).
I'm not attaching a test project since a Postgis connection is needed, but I have it on hand.
Steps to reproduce the issue
Lizmap version
3.4.6 and 3.5.0
QGIS desktop version
3.16.11
QGIS server version
3.16.12
Operating system
Arch Linux
Browsers
Chrome
Browsers version
Chromium 95.0.4638.69
Relevant log output
The text was updated successfully, but these errors were encountered: