Open jgrocha opened 5 years ago
I guess it needs to be encoded back here: https://github.com/elpaso/qgis3-server-vagrant/blob/master/resources/web/plugins/ServerSimpleBrowser/ServerSimpleBrowser.py#L52
What do you think? Should we keep this database encode syntax with & on it?
Honestly I don't care much, I don't think any professional will ever disclose such information inside an URI, the right way to select a project is using a rewrite module and set QGIS_PROJECT_FILE
in the FCGI environment.
So that a path like http://mywms/urbanismo/proceso/teste_um/?SERVICE=....
will internally set QGIS_PROJECT_FILE
to the right string.
Note that this will be the only supported way in WFS3 which does not admit any extra argument in the query string.
@elpaso If I install
ServerSimpleFilter
and issue a request, it will fail.The URL used is: http://brgqgis.cm-braga.pt/cgi-bin/qgis_mapserv.fcgi?LAYERS=Concelho&FORMAT=application/openlayers&SRS=EPSG%3A3763&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=&BBOX=-56570.5,192759.7,4021.8,223746.5&WIDTH=1009&HEIGHT=516&MAP=postgresql%3A%3Fservice%3Durbanismo%26sslmode%3Ddisable%26schema%3Dprocessos%26project%3Dteste_um
The MAP parameter is received properly. But the generated Javascript will have the MAP parameter decoded and it will not work.
Since the MAP parameter value is decoded, when OpenLayers tries to fetch it from the server, it will fail.
Debug output:
The URI encoding for database stored projects is problematic. QGIS client is not able to handle it also.
What do you think? Should we keep this database encode syntax with
&
on it?