CLONE - GeoWebCache settings won't be persisted on Windows

Description

Under "Caching Defaults" its possible to set "Default Cached Gridsets".
I can set these and they're remembered for the rest of the session.
But when I restart GeoServer, the defaults are back to the factory-settings (4326 and 900913) and not my defaults any more.

Environment

None

Activity

Show:
Tom Saul
October 4, 2016, 6:44 PM

This issue is present in V2.9.1, on Windows, under tomcat 8. Note that I am using and altering a setting from the 'memory blobstore' settings if that matters. The data directory has full permissions for the services' user. This seems to be the same issue reported as closed under the linked ticket.

Looking at log I see

2016-10-04 08:33:13,170 DEBUG [org.geoserver.security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /web/wicket/bookmarkable/org.geoserver.gwc.web.gwcsettingspage, QueryString: 52-1.IFormSubmitListener-form'; against '/web/**'
2016-10-04 08:33:13,170 DEBUG [org.geoserver.security.IncludeQueryStringAntPathRequestMatcher] - Matched Path: /web/wicket/bookmarkable/org.geoserver.gwc.web.gwcsettingspage, QueryString: 52-1.IFormSubmitListener-form with /web/**
2016-10-04 08:33:13,170 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler mapping found for /web/wicket/bookmarkable/org.geoserver.gwc.web.GWCSettingsPage
2016-10-04 08:33:13,170 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler mapping found for /web/wicket/bookmarkable/org.geoserver.gwc.web.GWCSettingsPage
2016-10-04 08:33:13,170 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler mapping found for /web/wicket/bookmarkable/org.geoserver.gwc.web.GWCSettingsPage
2016-10-04 08:33:13,170 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler mapping found for /web/wicket/bookmarkable/org.geoserver.gwc.web.GWCSettingsPage
2016-10-04 08:33:13,185 DEBUG [org.geoserver] - Thread 123 locking in mode WRITE
2016-10-04 08:33:13,185 DEBUG [org.geoserver] - Thread 123 got the lock in mode WRITE
2016-10-04 08:33:13,248 DEBUG [org.geoserver.gwc.config] - Saving integrated GWC configuration
2016-10-04 08:33:13,263 DEBUG [org.geoserver.gwc.config] - Integrated GWC configuration saved to gwc-gs.xml
2016-10-04 08:33:13,279 DEBUG [org.geoserver] - Thread 123 releasing the lock in mode WRITE

Tom Saul
May 16, 2017, 12:40 PM

Note the same issue applies to other settings - for example, if you enable/disable the integrated cache this setting is lost. The altered settings are being saved to a *tmp' file in the settings directory, but the actual settings file is not replaced with that version.

Assignee

Unassigned

Reporter

Tom Saul

Triage

Fix versions

Affects versions

Components

Priority

High
Configure