[Geoserver-devel] [JIRA] (GEOS-10572) The layer styles resources has dangling links and lacks the default style

Andrea Aime created an issue

GeoServer / BugGEOS-10572

The layer styles resources has dangling links and lacks the default style

Issue Type:

BugBug

Assignee:

Andrea Aime

Created:

01/Jul/22 12:29 PM

Priority:

MediumMedium

Reporter:

Andrea Aime

The style controller is setup to allow fetching styles from a layer:

    @GetMapping(
            value = {"/styles", "/layers/{layerName}/styles", "/workspaces/{workspaceName}/styles"})
    public RestWrapper<?> stylesGet(
            @PathVariable(required = false) String layerName,
            @PathVariable(required = false) String workspaceName) {

However, the links generation pretty much assumes the request is starting from “styles” or the workspace styles, rather than the layer, and ends up generating dangling links for the layer styles case.

Also, the style list does not contain the default layer (LayerInfo.getStyles() only returns the associated style, getDefaultStyle() is used to retrieve the default one).

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#100201-sha1:e6ee73e)

Atlassian logo