geoserver / geoserver-cloud

Cloud Native GeoServer is GeoServer ready to use in the cloud through dockerized microservices.

Home Page:http://geoserver.org/geoserver-cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GWC Rest API - GET specific layer does not work

AlexGacon opened this issue · comments

Tested on RC30

GET {{geoserver_url}}/gwc/rest/layers works and shows all the expected layers

GET {{geoserver_url}}/gwc/rest/layers/ne:world does not work -> GS cloud states that the layer is unknown

The endpoint works fine on vanilla GS.

Link to #313. Only the GWC layers created with the admin UI are not available in the detail endpoint. A GWC layer created through the REST API is available.

I can confirm it also happens to me on RC30.

I had to downgrade to RC28.

So far what we've found is the error is produced when the GWC rest api tries to encode a GeoServerTileLayer using XStream.
Problem is the XStream encoder it uses defaults to using reflection, and that doesn't work with Java 17. It does work with Java 11, but Java 17 is stricter about the use of reflection.