[Geoserver-devel] [JIRA] (GEOS-9021) Delete layer group with mode Container Tree containing other layer groups, causes malfunction that requires restarting GeoServer

Jose García created an issue

GeoServer / BugGEOS-9021

Delete layer group with mode Container Tree containing other layer groups, causes malfunction that requires restarting GeoServer

Issue Type:

BugBug

Affects Versions:

2.13.3, 2.14.0

Assignee:

Unassigned

Attachments:

layergroup-1.png, layergroup-2.png, layergroup-3.png, layergroup-4.png, layergroup-5.png, layergroup-6.png, layergroup-7.png, layergroup-8.png

Created:

18/Nov/18 4:59 PM

Environment:

Tested in OSX and Windows with GeoServer 2.13 and 2.14.

Also with 2.9 version, but no problem there.

Priority:

MediumMedium

Reporter:

Jose García

To reproduce if:

  1. Install a fresh install of Geoserver 2.14

  2. Create a layer group with name childgroup in workspace topp, adding 2 of the layers, set the mode to Container Tree

  1. Create second a layer group with name parentgroup in workspace topp, adding the layer group created in 2), set the mode to Container Tree

  1. Delete the layer group parentgroup, seem also deleted the childgroup layer group, I guess to the mode Container Tree

  1. Go to workspaces and try to delete workspace topp, when clicking ok a javacript confirm dialog is displayed, that should not be displayed. The only way to continue is to click Leave and then an error page is displayed and no way to proceed. Prevents also other actions like deleting other workspaces.

  1. Restarting GeoServer and going to layergroups the layer group childgroup can be deleted, also the workspace topp.

Seem step 4) leaves GeoServer in some inconsistent status.


With the REST API, you get similar issue.

Using the REST API, I’ve checked to delete first childgroup layer group and after parentgroup layer group, but I get the following error:

Unable to delete layer group referenced by layer group 'GROUP_PARENT'

If I try to update the parentgroup layer group to empty it, I get this other error:

Layer group must not be empty

I got a workaround with the REST API, setting the mode of the layer groups to Single and then delete them, that allows to delete them and avoids also the error described. But it’s kind of a hack.

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#100095-sha1:c772008)

Atlassian logo