[Geoserver-users] GS 2.3.0 seeding form, anonymous error

Hello,

I have some difficulties for seeding layers with GS 2.3.0 since I've updated the server. I can seed while opening a layer through GS > Tile Layers > Preview.

But when I use the embedded GWC page for seeding a layer, nothing is added to tasks lists, and the log file returns some errors "Cannot access WMS.GetMap as anonymous". Doest it come from security configuration?
Here is some extract from the log file :

2013-04-26 14:38:23,874 DEBUG [org.geoserver.ows] - Getting layers and styles from LAYERS and STYLES
2013-04-26 14:38:23,875 DEBUG [org.geoserver.ows] - establishing bathymetry style for oceano:GEBCO_SHOM
2013-04-26 14:38:23,875 ERROR [org.geowebcache.seed.MTSeeder] - Problem communicating with GeoServer
org.geowebcache.GeoWebCacheException: Problem communicating with GeoServer
  at org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:501)
  at org.geoserver.gwc.layer.GeoServerTileLayer.seedTile(GeoServerTileLayer.java:690)
  at org.geowebcache.seed.SeedTask.doActionInternal(SeedTask.java:136)
  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$Sync.innerRun(FutureTask.java:334)
  at java.util.concurrent.FutureTask.run(FutureTask.java:166)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.security.authentication.InsufficientAuthenticationException: Cannot access WMS.GetMap as anonymous
  at org.geoserver.security.OperationSecurityCallback.operationDispatched(OperationSecurityCallback.java:71)
  at org.geoserver.ows.Dispatcher.fireOperationDispatchedCallback(Dispatcher.java:729)
  at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:724)
  at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:263)
  at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
  at org.geoserver.gwc.GWC.dispatchOwsRequest(GWC.java:1122)
  at org.geoserver.gwc.layer.GeoServerTileLayer.dispatchGetMap(GeoServerTileLayer.java:551)
  at org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:496)
  ... 10 more

On Fri, Apr 26, 2013 at 3:17 PM, Gabriel Vatin <
gabriel.vatin@anonymised.com> wrote:

Hello,

I have some difficulties for seeding layers with GS 2.3.0 since I've
updated the server. I can seed while opening a layer through GS > Tile
Layers > Preview.

But when I use the embedded GWC page for seeding a layer, nothing is added
to tasks lists, and the log file returns some errors "Cannot access
WMS.GetMap as anonymous". Doest it come from security configuration?

It seems you have secured the access to GetMap operation, so that only a
few users can do so.
However, the GWC seeding threads are operating without any authentication,
so they fail.

Generally speaking, security and caching do not mix well.

Cheers
Andrea

--

GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------