LayerGroup with nested group POST rest op fails with null styles attribute

Description

The addition of layer group styles caused a POST request to the layer group endpoint to fail if no entry (even if null for def style) is specified for styles while it was working before eg.

{ "layerGroup":{ "name":"layerGroupNullStyle", "publishables":{ "published":[ { "name":"sfLayerGroup", "@type":"layerGroup" }, { "name":"citeLayerGroup", "@type":"layerGroup" } ] }, "styles":null } }

while now is only supported

{ "layerGroup":{ "name":"layerGroupNullStyle", "publishables":{ "published":[ { "name":"sfLayerGroup", "@type":"layerGroup" }, { "name":"citeLayerGroup", "@type":"layerGroup" } ] }, "styles":[null,null] } }

Environment

None

Activity

Show:

Marco Volpini December 23, 2022 at 2:19 PM

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created December 22, 2022 at 4:24 PM
Updated January 10, 2023 at 5:31 PM
Resolved January 10, 2023 at 5:31 PM