GWC local workspace URLs not working
groldan opened this issue · 5 comments
Can't access local workspace urls for gwc (e.g. <context-path>/<workspace>/gwc/...
)
reproduced / tested with the docker composition advised in the README (shared datadir), and a blank catalog. Creating a workspace / DS / layer works, I can access the following urls:
- http://localhost:9090/geoserver/cloud/gwc/demo/ns:layer?gridSet=EPSG:4326&format=image/png
- http://localhost:9090/geoserver/cloud//wms?[...]&layers=...
- http://localhost:9090/geoserver/cloud//wms?[...]&layers=:...
But indeed accessing http://localhost:9090/geoserver/cloud//gwc/demo/ns:layer or http://localhost:9090/geoserver/cloud//gwc/demo/ does not.
It looks like the gateway configuration is already correct, and the issue is situated in the GWC microservice:
gwc_1 | 2024-01-09 15:57:44.375 WARN 1 --- [nio-8080-exec-7] o.s.web.servlet.PageNotFound : No mapping for GET /geoserver/cloud/<ns>/gwc/demo/<layer>
My guess was that the controller was lacking a request path here:
https://github.com/geoserver/geoserver-cloud/blob/main/src/gwc/services/src/main/java/org/gwc/web/rest/GeoWebCacheController.java#L28
And the following beans were missing:
https://github.com/geoserver/geoserver/blob/main/src/web/gwc/src/main/java/applicationContext.xml#L97-L111
but it is still not sufficient