
--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstore-users/8ae46e1c-5379-41cf-b4bb-252c0b9908den%40googlegroups.com.
==
GeoServer Professional Services from the experts!
Visit http://bit.ly/gs-services-us for more information.
==
Dott. Ing. Tobia Di Pisa
Technical Lead / Project Manager
GeoSolutions Group
phone: +39 0584 962313
mobile: +39 340 1781783
fax: +39 0584 1660272
https://www.geosolutionsgroup.com/
http://twitter.com/geosolutions_it
-------------------------------------------------------
Hi,
We were able to reproduce this issue and identify a solution.
I believe the previous answer is not accurate.
If the data comes from the same GeoServer, then the filter should be able to work.
The issue comes from the URL check in the code:
It strictly compares URLs and therefore rejects the use of two layers from the same workspace, even when the GeoServer itself is identical.
If the data is grouped within the same workspace, it works correctly.
I think this condition should not take the workspace into account and should instead compare the GeoServer URL itself.
Indeed, if both layers come from the same GeoServer instance, they necessarily share the same capabilities (in particular, the Query Filter plugin must be installed on that GeoServer).
From a functional point of view, there is therefore no reason to block cross-layer filtering in this case.
As it stands, this forces users to group data into a single workspace and does not encourage proper GeoServer organization.
Examples of the current behavior:
Case 1 – KO: /geoserver/wms/FOO vs /geoserver/wms/BLA
Case 2 – OK: /geoserver/wms/FOO vs /geoserver/wms/FOO
Case 3 – maybe KO: /geoserver/ows/FOO vs /geoserver/wms/FOO
etc.
Case 1 – KO: /geoserver/FOO/wms vs /geoserver/BLA/wms
Case 2 – OK: /geoserver/FOO/wms vs /geoserver/FOO/wms
Case 3 – maybe KO: /geoserver/FOO/ows vs /geoserver/FOO/wms
etc.