[Geoserver-devel] [JIRA] (GEOS-8293) REST /layers/{layer}/styles entries do not redirect to the correct URL.

Torben Barsballe created an issue

GeoServer / BugGEOS-8293

REST /layers/{layer}/styles entries do not redirect to the correct URL.

Issue Type:

BugBug

Affects Versions:

2.12-beta

Assignee:

Unassigned

Created:

20/Sep/17 1:07 AM

Priority:

MediumMedium

Reporter:

Torben Barsballe

When querying /layers/{layer}/styles, a list of styles for that layer is returned, with links to the REST locations of those styles. Trying to visit any of those links returns a 404.

These should be updated to link to the correct styles, under /styles/{style} or /workspaces/{workspace}/styles/{style}.

Note that the pre-REST-API refresh REST API does support GETing styles from /layers/{layer}/styles/{style}, however this seems to be simply a happy accident, as that endpoint is not registered in the application context, and /layers/{layer}/styles/{style} behaves exactly the same as /layers/{layer}/styles/foo/bar{style} (note the foo/bar).

If we wanted to retain this functionality, we should still update the links, and merely retain the /layers/{layer}/styles/{style} for legacy compatibility.

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 (v1000.1299.0#100060-sha1:8cb2c24)

Atlassian logo