Virtual WMTS: Layer is not known

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

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

WMTSService.java

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

Environment

None

Assignee

Unassigned

Reporter

Eduardo Suarez-Santana

Triage

Fix versions

None

Affects versions

Components

Priority

Medium
Configure