[Geoserver-devel] [JIRA] (GEOS-10807) LayerGroup with nested group POST rest op fails with null styles attribute

Marco Volpini created an issue

GeoServer / BugGEOS-10807

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

Issue Type:

BugBug

Assignee:

Marco Volpini

Created:

22/Dec/22 5:24 PM

Priority:

MediumMedium

Reporter:

Marco Volpini

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]
    }
}

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100213-sha1:d1b903b)

Atlassian logo