Mauro Bartolomeoli (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae5899f77-4ce7-4c27-89f9-34256c006cb7
) *created* an issue
GeoServer (
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiMjNhNzI4ZWM1OGY3NDlkZDhhOWFmYzRlNzYwYTgwNWQiLCJwIjoiaiJ9
) / Bug (
https://osgeo-org.atlassian.net/browse/GEOS-10044?atlOrigin=eyJpIjoiMjNhNzI4ZWM1OGY3NDlkZDhhOWFmYzRlNzYwYTgwNWQiLCJwIjoiaiJ9
) GEOS-10044 (
https://osgeo-org.atlassian.net/browse/GEOS-10044?atlOrigin=eyJpIjoiMjNhNzI4ZWM1OGY3NDlkZDhhOWFmYzRlNzYwYTgwNWQiLCJwIjoiaiJ9
) WMS requests for a layergroup including a cql_filter are not cachable (
https://osgeo-org.atlassian.net/browse/GEOS-10044?atlOrigin=eyJpIjoiMjNhNzI4ZWM1OGY3NDlkZDhhOWFmYzRlNzYwYTgwNWQiLCJwIjoiaiJ9
)
Issue Type: Bug Affects Versions: 2.19-RC Assignee: Mauro Bartolomeoli (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae5899f77-4ce7-4c27-89f9-34256c006cb7
) Components: GWC, WMS Created: 29/Apr/21 6:00 PM Priority: Medium Reporter:
Mauro Bartolomeoli (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae5899f77-4ce7-4c27-89f9-34256c006cb7
)
Layer groups are expanded to lists of simple layers, styles and filters in
GetMapKvpRequestReader, so that at the lower level rendering only deals with
simple layers.
During this expansion if a filter is configured for a layergroup, this is
applied to all the layers of the group.
Unfortunately, there is a bug when this filter is configured via cql_filter
instead of filter that impacts GWC capability to cache the layergroup if a
parameter filter for FILTER has been configured.
This happens because:
* cql_filter is expanded and stored as filter in the request
* the single cql_filter param is not removed / cleaned up
* we finally have, in the rendered request, 1 cql_filter and N cloned filter
configured
* GWC has a check to disable caching when both cql_filter and filter are
present and they are not equal
TADAH! Caching is always disabled in our scenario.
We suggest to change GetMapKvpRequestReader to store the expanded filter
(coming from a cql_filter parameter) both in filter and cql_filter, so that GWC
is happy to cache.
(
https://osgeo-org.atlassian.net/browse/GEOS-10044#add-comment?atlOrigin=eyJpIjoiMjNhNzI4ZWM1OGY3NDlkZDhhOWFmYzRlNzYwYTgwNWQiLCJwIjoiaiJ9
) Add Comment (
https://osgeo-org.atlassian.net/browse/GEOS-10044#add-comment?atlOrigin=eyJpIjoiMjNhNzI4ZWM1OGY3NDlkZDhhOWFmYzRlNzYwYTgwNWQiLCJwIjoiaiJ9
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100157-
sha1:45b74eb )
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel