[Geoserver-users] GWC Parameters and Cache Directory Name

GeoServer 2.5.2 / integrated GWC

I am having some trouble with GWC cache directory naming when using the default style for a layer.

When no style is specified (default style), I am finding that the calculated directory name for a cache (for instance “EPSG_900913_04_d739dd158ba7ad0ff209aca3c0df44981f70ba3e”) is different between gwc seed requests via REST and incoming tile requests, thus causing pre-seeded tiles to be recreated with a different directory name.

In other words, when I leave the style out of both the seed request and the retrieval request (thus meaning default style), the cache directory name created is different.

This appears to be a change somewhere between GeoServer 2.3.3 and 2.5.2.

Everything is OK if I specify the actual name of the default style in the SEED request and leave it completely out of the tile retrieval request (letting it be the default) … but I really, really, really don’t want my gwc rest SEEDing code to have to know the names of the default styles for all of the layers it is pre-seeding.

Can anybody point me to a better understanding of the calculation of directory names … and more importantly how to tell gwc you’re seeding for the default style only in the REST request (so that the cache name matches that for a request for default-styled tiles).

Thanks,

Mike Grogan

Hi Mike,

GWC takes the filtered parameter values and computes a hash of them to get that suffix. So it sounds like it could be that the filtered default is different or missing in one case, or that something is altering the order that the parameters are added to the hash between the seed and request cases. Computing all of that should be happening at a lower level that’s shared by the request and seed code but I may be missing something. This may relate to some changes to parameter filters in general and styles in particular that I made in 2.4.

···

On 23 July 2014 11:36, Mike Grogan <d.michael.grogan@anonymised.com> wrote:

GeoServer 2.5.2 / integrated GWC

I am having some trouble with GWC cache directory naming when using the default style for a layer.

When no style is specified (default style), I am finding that the calculated directory name for a cache (for instance “EPSG_900913_04_d739dd158ba7ad0ff209aca3c0df44981f70ba3e”) is different between gwc seed requests via REST and incoming tile requests, thus causing pre-seeded tiles to be recreated with a different directory name.

In other words, when I leave the style out of both the seed request and the retrieval request (thus meaning default style), the cache directory name created is different.

This appears to be a change somewhere between GeoServer 2.3.3 and 2.5.2.

Everything is OK if I specify the actual name of the default style in the SEED request and leave it completely out of the tile retrieval request (letting it be the default) … but I really, really, really don’t want my gwc rest SEEDing code to have to know the names of the default styles for all of the layers it is pre-seeding.

Can anybody point me to a better understanding of the calculation of directory names … and more importantly how to tell gwc you’re seeding for the default style only in the REST request (so that the cache name matches that for a request for default-styled tiles).

Thanks,

Mike Grogan


Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world’s largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Kevin Smith

Junior Software Engineer | Boundless

ksmith@anonymised.com

+1-778-785-7459

@boundlessgeo

http://boundlessgeo.com/