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
Associated pull requests:
https://github.com/geoserver/geoserver/pull/2053
https://github.com/geoserver/geoserver/pull/2054
https://github.com/geoserver/geoserver/pull/2055
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