[Geoserver-devel] [JIRA] (GEOS-8226) REST - GET wmslayers by store returns results from the default workspace

Torben Barsballe created an issue

GeoServer / BugGEOS-8226

REST - GET wmslayers by store returns results from the default workspace

Issue Type:

BugBug

Affects Versions:

2.11.1

Assignee:

Torben Barsballe

Components:

REST

Created:

18/Jul/17 6:19 PM

Priority:

MediumMedium

Reporter:

Torben Barsballe

All queries to the REST geoserver/rest/workspaces/{workspace}/wmsstores/{wmsstore}/wmslayers endpoint return results in the default workspace if such a store exists there.

This means that if you have a store in the default workspace and a different store with the same name in another workspace, querying for layers in the second store will actually return layers from the first store.

Steps to reproduce:

Assume ws1 is the default workspace and ws2 is some other workspace.
Create a cascaded WMS store named foo in ws1 and a different cascaded wms store in ws2 with the same name.

Query localhost:8080/geoserver/rest/workspaces/ws2/wmsstores/foo/wmslayers. The result will list the layers from the store in ws1 instead of the store in ws2.

Add Comment

Add Comment

Get JIRA notifications on your phone! Download the JIRA Cloud app here.


This message was sent by Atlassian JIRA (v1000.1126.0#100055-sha1:4ea4d0f)

Atlassian logo