Reloading GeoServer re-enables all disabled WMTS services

Description

To reproduce this issue disable a WTMS service (a global one or a virtual one) and restart GeoServer. The disabled WMTS service will be re-enable.

This happens because the service initialization, which is supposed to only fill the blanks, is blindly enabling the service:
https://github.com/geoserver/geoserver/blob/master/src/gwc/src/main/java/org/geoserver/gwc/wmts/WMTSXStreamLoader.java#L38

This is situation was not catch by the unit tests because the initialization is not invoked as it should be:
https://github.com/geoserver/geoserver/blob/master/src/gwc/src/test/java/org/geoserver/gwc/wmts/WMTSXStreamLoaderTest.java#L29

Mailing list discussion:
http://osgeo-org.1560.x6.nabble.com/Disabling-WMTS-in-GeoServer-2-10-td5302877.html

Environment

None

Activity

Fixed

Details

Assignee

Reporter

Components

Priority

Created January 10, 2017 at 10:52 PM
Updated March 2, 2017 at 11:10 AM
Resolved March 2, 2017 at 11:10 AM