Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GWC Rest API - GET specific layer does not work #311

Closed
AlexGacon opened this issue Mar 17, 2023 · 3 comments · Fixed by #336
Closed

GWC Rest API - GET specific layer does not work #311

AlexGacon opened this issue Mar 17, 2023 · 3 comments · Fixed by #336
Assignees

Comments

@AlexGacon
Copy link
Contributor

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.

@AlexGacon
Copy link
Contributor Author

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.

@mzaveiro
Copy link

I can confirm it also happens to me on RC30.

I had to downgrade to RC28.

@danduk82 danduk82 self-assigned this May 31, 2023
@groldan
Copy link
Member

groldan commented Jun 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants