[Geoserver-devel] [JIRA] (GEOS-10046) GeoServerTileLayer dynamic bounds accidentaly switch to static

Andrea Aime created an issue

GeoServer / BugGEOS-10046

GeoServerTileLayer dynamic bounds accidentaly switch to static

Issue Type:

BugBug

Assignee:

Unassigned

Attachments:

image-2021-04-30-11-33-03-908.png, image-2021-04-30-11-33-09-313.png

Created:

30/Apr/21 11:33 AM

Priority:

MediumMedium

Reporter:

Andrea Aime

When configuring a new layer in GeoServer, with default tile caching, or when adding tile caching to a
a layer, the grid subset bonds for it as set to “dynamic”, as in, computed on the fly from the layer
own bounds (which can change over time):

image.png

Seems like a reasonable thing to do. GeoServerTileLayer can compute the bounds dynamically, while the configuration object backing it,
GeoServerTileLayerInfo, containing the XMLGridSubsets objects, has them with null bounds.

However, things can become less dynamic… let’s make a GetCapabilities run, the “dynamic” bounds will be computed so that they can be reported,
and then go back to the layer tile caching tab, you get this:

image.png

If the layer is not saved, and the configuration reloaded, the page goes back to dynamic bounds. But save the page, even for unrelated changes, and the
bounds are now carved in stone, and I know no way to make them go back to dynamic.

This seems wrong to me. The issue is happening in this line, updating the xml gridset bounds while computing the tile layer dynamic bounds:
https://github.com/geoserver/geoserver/blob/main/src/gwc/src/main/java/org/geoserver/gwc/layer/GeoServerTileLayer.java#L999

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100157-sha1:45b74eb)

Atlassian logo