Integrated GWC fails to seed layers if any data security is configured

Description

Using a completely vanilla installation of geoserver:

  1. Under "Security > Data", for the default read rule, "*.*.r", change the allowed roles from * to ADMIN

  2. Attempting to seed any of the layers under "Tile Caching > Tile Layers > Seed/Truncate" causes the following stack trace:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 2018-05-18 14:03:43,204 ERROR [org.geoserver.ows] (GWC Seeder Thread-5) : org.geoserver.platform.ServiceException: Could not find layer my_workspace:my_layer at org.geoserver.wms.map.GetMapKvpRequestReader.parseLayers(GetMapKvpRequestReader.java:1150) at org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:237) at org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:87) at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1531) at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:690) at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:260) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:174) at org.geoserver.gwc.GWC.dispatchOwsRequest(GWC.java:1315) at org.geoserver.gwc.layer.GeoServerTileLayer.dispatchGetMap(GeoServerTileLayer.java:644) at org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:588) at org.geoserver.gwc.layer.GeoServerTileLayer.seedTile(GeoServerTileLayer.java:783) at org.geowebcache.seed.SeedTask.doActionInternal(SeedTask.java:141) at org.geowebcache.seed.GWCTask.doAction(GWCTask.java:76) at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:36) at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:25) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 2018-05-18 14:03:43,206 ERROR [org.geowebcache.seed.MTSeeder] (GWC Seeder Thread-5) Problem communicating with GeoServer: org.geowebcache.GeoWebCacheException: Problem communicating with GeoServer at org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:594) at org.geoserver.gwc.layer.GeoServerTileLayer.seedTile(GeoServerTileLayer.java:783) at org.geowebcache.seed.SeedTask.doActionInternal(SeedTask.java:141) at org.geowebcache.seed.GWCTask.doAction(GWCTask.java:76) at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:36) at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:25) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.IllegalStateException: Expected: RenderedImageMap, got null at org.geoserver.gwc.layer.GeoServerTileLayer.dispatchGetMap(GeoServerTileLayer.java:647) at org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:588)

Environment

None

Status

Assignee

Unassigned

Reporter

Mitchell Bösecke

Triage

None

Fix versions

Affects versions

2.13.0

Components

Priority

Medium
Configure