Skip to content

Missing workspace in LegendURL in WMTS GetCapabilities document for isolated workspaces #1405

@felipedeaujaques

Description

@felipedeaujaques

Hey all,

we are using Geowebcache integrated with Geoserver. We noticed that when using isolated workspaces, the LegendUrls in the WMTS GetCapabilities document are missing the workspaces. Clients like QGIS won't be able to get the legend and display it.

So if you are requesting https://{url}/geoserver/{isolated_workspace}/gwc/service/wmts?service=WMTS&version=1.1.1&request=GetCapabilities.
The corresponding LegendUrl for a layer in the document looks like this:
https://{url}/geoserver/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer={isolated_workspace}:{isolated_layer}
and returns a service exception: Details: org.geoserver.platform.ServiceException: {isolated_workspace}:{isolated_layer} layer does not exist.

With the workspace included in the url you can get the legend without problems.

We are using 2.25.2-georchestra, but I think its missing in the core e.g. LegendInfoBuilder.

Are you aware of this or do you have an idea to solve this on the configuration side?

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions