-
-
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
QGIS SERVER - error in parsing WMS GetFeatureInfo as XML #28369
Comments
Author Name: Giovanni Manghi (@gioman) No error here with the provided URL.
|
Author Name: Umberto Minora (@umbe1987) There's no error in the GetFeatureInfo request. |
Author Name: Umberto Minora (@umbe1987) The reason why I am using responseXML is to catch WMS Exception (see https://stackoverflow.com/a/51723660/1979665). |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Uroš Preložnik (@uprel) Umberto Minora wrote:
If you need response in XML, why not just ask it with INFO_FORMAT=text/xml instead of text/html. |
Author Name: Umberto Minora (@umbe1987) Uroš Preložnik wrote:
|
Author Name: Anónimo (Anónimo) Applied in changeset 0d696ef.
|
Author Name: Umberto Minora (@umbe1987) Thank you Alessandro, will test it soon! |
Author Name: Umberto Minora (@umbe1987) Anyway, if I have installed qgis-server using the deb package, should I wait for the next release before I can test it? |
Author Name: Alessandro Pasotti (@elpaso) Yes, unless you test the nightly builds or a docker image built from a recent master |
Author Name: Umberto Minora (@umbe1987) Don't know if I miss anything but I updated qgis-server to 3.4.2 expecting to see the closing meta tag resolved, but I seem to still have the same error.
|
Author Name: Alessandro Pasotti (@elpaso) I wasn't backported to 3.4, it will be in 3.6 |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Umberto Minora (@umbe1987)
Original Redmine Issue: 20549
Affected QGIS version: 3.4.1
Redmine category:qgis_server
Assignee: Alessandro Pasotti
Don't know if it's a real bug, but it's something I'd like to be fixed for my own application.
I use to parse the GetFeatureInfo request as XML with the ".responseXML" method.
I am receiving this error:
@errore interpretazione XML: tag corrispettivo mancante. Previsto: .@
It seems the missing closing tag is causing this.
A testing URL for the request looks like this:
https://www.wondermap.it/cgi-bin/qgis_mapserv.fcgi?&map=/home/ubuntu/qgis/projects/Demo_sci_WMS/demo_sci.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=domini%20sciabili&LAYERS=domini%20sciabili&INFO_FORMAT=text%2Fhtml&I=50&J=50&CRS=EPSG%3A3857&STYLES=&WIDTH=101&HEIGHT=101&BBOX=1128900.381669475%2C5866529.499870181%2C1129865.3991515755%2C5867494.517352281
The text was updated successfully, but these errors were encountered: