Uploaded image for project: 'GeoServer'
  1. GeoServer
  2. GEOS-7873

Styles in json layergroup still doesn't work

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.10.0
    • Fix Version/s: 2.10.2, 2.11-beta
    • Component/s: None
    • Labels:
      None
    • Environment:
      • Geoserver 2.10.0
      • WildFly 10
      • OpenJDK 1.8.0_111

      Description

      Hi,
      after the patch releaserd for GEOS-7771, geoserver still returns a bad json for layergroup styles.

      My test is:

      1. run a geoserver (2.10)
      2. connect to .../geoserver/web and make login
      3. go to Layer Groups and add a new one (called example001) with, at least, four layer with default style checked for the first and the third, select a polygon for others two
      4. go to .../geoserver/rest/layergroups/example001.json

      If you look at the file, you can see somthing like

      styles: {
      style: [
      "null",

      { name: "polygon", href: "http://localhost/geoserver/rest/styles/polygon.json" }

      ,
      "null",
      "polygon",
      "http://localhost/geoserver/rest/styles/polygon.json"
      ]
      }

      instead of

      styles: {
      style: [
      "null",

      { name: "polygon", href: "http://localhost/geoserver/rest/styles/polygon.json" }

      ,
      "null",

      { name: "polygon", href: "http://localhost/geoserver/rest/styles/polygon.json" }

      ,
      ]
      }

      Cheers.

        Attachments

          Activity

            People

            • Assignee:
              tbarsballe Torben Barsballe
              Reporter:
              Cippino Federico Guizzardi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: