[Geoserver-devel] [JIRA] (GEOS-7926) Reloading GeoServer re-enables all disabled WMTS services

Nuno Oliveira created an issue

GeoServer / BugGEOS-7926

Reloading GeoServer re-enables all disabled WMTS services

Issue Type:

BugBug

Assignee:

Unassigned

Components:

GWC

Created:

10/Jan/17 11:52 PM

Fix Versions:

2.9.4, 2.11-beta, 2.10.2

Priority:

MediumMedium

Reporter:

Nuno Oliveira

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

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.670.2#100024-sha1:3793824)

Atlassian logo