We're updating the issue view to help you get more done. 

REST - Empty response on JSON layergroup

Description

When the layergroup is added and contains layers without styles, the JSON responses return HTTP 200, but are empty. XML responds normally/as expected. Problem surfaces with multiple layers ~ 5 in the layer group.

there is an error in the JSON parser causing non-matching close brackets for null values ocurring in the geoserver XStreamPersister, eg:

1 {{"styles":{"style":[""]},"style":["",""]},"style":["",""]}

The expected behavior here would be something like:

1 {{"styles":{"style":["","","","",""]}}

Environment

None

Status

Assignee

Unassigned

Reporter

Jonathan Hankes

Triage

None

Fix versions

Affects versions

2.9.0

Components

Priority

Medium