[Geoserver-devel] [JIRA] (GEOS-11009) GWC WMTS GetCapabilities wrong ResourceUrl template when authkey is used

Pekka Lampinen created an issue

GeoServer / BugGEOS-11009

GWC WMTS GetCapabilities wrong ResourceUrl template when authkey is used

Issue Type:

BugBug

Affects Versions:

2.22.0

Assignee:

Unassigned

Components:

authkey, GWC, REST, WMTS

Created:

02/Jun/23 2:24 PM

Environment:

Geoserver version: 2.22.0, GeoWebCache: 1.22.0.

Windows Server 2019 Standard.

Priority:

MediumMedium

Reporter:

Pekka Lampinen

When I access the GetCapabilities document of the WMTS-service with an authkey in the url address I get a document that shows wrong ResourceURL templates. Authkey parameter is inserted at the wrong place and the urls won’t work. This causes problems when trying to add WMTS-layers to certain services.

GetCapabilities with authkey.

https://{Our URL}/geoserver/gwc/service/wmts?request=GetCapabilities&service=WMTS&version=1.0.0&authkey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Wrong template returned. Authkey inserted just after “\rest”.

<ResourceURL format="image/jpeg" resourceType="tile" template="https://{Our URL}/geoserver/gwc/service/wmts/rest?authkey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/{Our layer name}/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>

Working template that is not shown. Authkey should be at the end with the format.

<ResourceURL format="image/jpeg" resourceType="tile" template="https://{Our URL}/geoserver/gwc/service/wmts/rest/{Our layer name}/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg&authkey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"/>

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225-sha1:e03cc87)

Atlassian logo