geoserver / geoserver-cloud

Cloud Native GeoServer is GeoServer ready to use in the cloud through dockerized microservices.
http://geoserver.org/geoserver-cloud
Other
246 stars 74 forks source link

GWC local workspace URLs not working #380

Open groldan opened 9 months ago

groldan commented 9 months ago

Can't access local workspace urls for gwc (e.g. <context-path>/<workspace>/gwc/...)

pmauduit commented 8 months ago

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:

But indeed accessing http://localhost:9090/geoserver/cloud//gwc/demo/ 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>
pmauduit commented 8 months ago

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