advertised rest wmts capabilities endpoint throws 404

Description

also discussed in https://osgeo-org.atlassian.net/browse/GEOS-7591

in a situation where wmts capabilities is called per workspace (virtual service)
at the end of capabilities 2 service urls are provided, the second one
http://localhost:8080/geoserver/tiger/gwc/rest/wmts/WMTSCapabilities.xml
throws a 404 on gs 2.13.1

not sure if the second one should be there at all (it requires credentials)

Environment

ubuntu apache tomcat docker

Assignee

Andrea Aime

Reporter

Paul van Genuchten

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure