Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects versions: 2.10.1
    • Fix versions: None
    • Components: GWC
    • Labels:
      None

      Description

      When working with virtual workspace service WMTS, that is, something like:

      http://localhost:8080/geoserver/myworkspace/gwc/service/wmts?SERVICE=WMTS&...

      layer are sent in capabilities without workspace prefix:

      GeoServerTileLayer.java
          @Override
          public String getName() {
              // getting the current gwc operation
              String gwcOperation = GwcServiceDispatcherCallback.GWC_OPERATION.get();
              // checking if we are in the context of a get capabilities request
              if (gwcOperation != null && gwcOperation.equalsIgnoreCase("GetCapabilities")) {
                  // this is a get capabilities request, we need to check if we are in the context of virtual service
                  return getNoPrefixedNameIfVirtualService();
              }
              return info.getName();
          }
      

      However, when processing GetFeaturetInfo, layer name with workspace prefix is required, otherwise you get a 400 error: LAYER xxxx is not known.

      WMTSService.java
              String layer = values.get("layer");
              if (layer == null) {
                  throw new OWSException(400, "MissingParameterValue", "LAYER", "Missing LAYER parameter");
              }
      
              TileLayer tileLayer = null;
      
              try {
                  tileLayer = tld.getTileLayer(layer);
              } catch (GeoWebCacheException e) {
                  throw new OWSException(400, "InvalidParameterValue", "LAYER", "LAYER " + layer
                          + " is not known.");
              }
      

      Prefix must be applied in this case for the virtual service to work.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              esuarezsantana Eduardo Suarez-Santana
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: