Closed mdouchin closed 1 year ago
Fixed in https://github.com/3liz/py-qgis-server/commit/cdea27dbe10b5d8d12c370a31319f9f1494f5300
the link property should return http://172.16.0.188:7001/cache/foo/instances/dev/data/qgis/rep1/bar.qgs
No really because Lizmap send the absolute path of the project in the MAP
parameter and this parameter is used as caching key; this is ok because the path is under the rootdir
parameter (and the file:
protocol is the default protocol) and it is expected that the client use consistent MAP
values.
As said in the previous comment: path in in links are consistent with the MAP parameter received by the qgis server as sent by Lizmap (there is no awarness on how lizmap build the project path).
The configuration CACHE_ROOTDIR
only ensure that file paths are not outside the configured cache (for security reason).
If you want path relative to rootdir
you must ensure that Lizmap send relative url's to py-qgis-server.
Note that the fact that py-qgis-server accepts path absolute with respect to the rootdir is a convenience atm for Lizmap support because Lizmap send the absolute full path in the MAP parameter.
I though that Lizmap was supporting relative URL now, is that actually the case ?
@mdouchin This has been fixed in https://github.com/3liz/py-qgis-server/commit/34af564cc8924d1e347e67df72008658df9f3873
In case the key start with '/' then the key will be returned as MAP
parameter instead of url path.
When the projects cache root directory is configured like
The entrypoint
/pool/
returns a wrong URL in thelink
property, for examplethe
link
property should returnhttp://172.16.0.188:7001/cache/foo/instances/dev/data/qgis/rep1/bar.qgs