Uploaded image for project: 'GeoServer'
  1. GeoServer
  2. GEOS-7926

Reloading GeoServer re-enables all disabled WMTS services

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.5, 2.10.3, 2.11-RC1
    • Component/s: GWC
    • Labels:
      None

      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

        Attachments

          Activity

            People

            • Assignee:
              nmco Nuno Oliveira
              Reporter:
              nmco Nuno Oliveira
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: