Uploaded image for project: 'GeoServer'
  1. GEOS-6227

REST - Logical bug in GET LAYERS reply - Workspaces omitted

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.3.2, 2.3.3, 2.4.2, 2.9.0
    • Fix Version/s: 2.13-beta
    • Component/s: REST
    • Labels:
      None

      Description

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

      Request:

      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):

      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.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                jody.garnett Jody Garnett
                Reporter:
                harrison.grundy codehaus (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: