[Geoserver-devel] [jira] (GEOS-6227) REST - Logical bug in GET LAYERS reply - Workspaces omitted

Michal Sredl created BugGEOS-6227
REST - Logical bug in GET LAYERS reply - Workspaces omitted

Issue Type:

BugBug

Affects Versions:

2.4.2, 2.3.3, 2.3.2

Assignee:

Andrea Aime

Components:

REST

Created:

12/Dec/13 4:43 AM

Description:

The reply to GET LAYERS request does not include any information about the workspaces of the layers.

Request:

http://localhost:8080/geoserver/rest/layers.json

Reply (layer href):

href: “http://localhost:8080/geoserver/rest/layers/<layerName>.json

The worskspace of the layer is not mentioned. As a result, if there are more layers with the same name, each in a different workspace, all but one are unreachable from the GET LAYERS reply - the reply contains several identical links, all pointing to one layer.

Desired behavior (layer href):

http://localhost:8080/geoserver/rest/layers/<workspace>:<layerName>.json

The current issue have two consequences. First, as mentioned above, some layers are hidden and must be detected (by checking the duplicity records) and found (by checking every workspace). Second, when we want the layers of some particular workspace(s) (there is no request to get layers of a particular workspace), we have to ask for every layer details to find it out - and this becomes a performance issue (n requests instead of 1).

Thanks a lot.

Project:

GeoServer

Labels:

rest workspace layer

Priority:

MajorMajor

Reporter:

Michal Sredl

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)