Styles in json layergroup still doesn't work

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.

Environment

  • Geoserver 2.10.0

  • WildFly 10

  • OpenJDK 1.8.0_111

Status

Assignee

Torben Barsballe

Reporter

Federico Guizzardi

Triage

Fix versions

Affects versions

2.10.0

Priority

Medium
Configure