The default style of the layergroup is propagated in the layer as default style

Description

From version 2.18, a style called "Layergroup Name Default" is automatically created in getcapabilities for each existing layergroup.

This style is propagated to all Layers. The style is placed in first position, so it's considered the default style.

This creates the following issues:

  1. The default style, defined in the layer, is no more the default style.

  2. The default layergroup style doesn't work for every layer in your layergroup.

I don't understand the meaning of this new feature. I did not find a reference in the documentation.

If this is a bug, please fix it as fast as you can.
If this is a feature, please consider the possibility to disable this with a flag in the layer group configuration.

Environment

CentOS 7

Attachments

1
2020-11-24_12h42_40.png
5 years ago

Activity

Andrea Aime
August 25, 2021 at 8:10 AM

Has nothing to do with this particular change, it’s another side effect of this other change: https://osgeo-org.atlassian.net/browse/GEOS-9659 . Needs a separate bug ticket, I’ll open it.

Marco Volpini
May 14, 2021 at 4:13 PM
(edited)

Made a pr adding a disable option in WMS service settings. Currently pending on main.

It is available here: https://github.com/geoserver/geoserver/pull/5058

Erik Geletti
February 1, 2021 at 1:12 PM

I have the same issue here. This is also making WMS not INSPIRE compliant.

Alvaro Huarte
November 24, 2020 at 12:01 PM
(edited)

This conversation could be useful:

https://github.com/geoserver/geoserver/pull/4268

Fixed

Details

Assignee

Reporter

Affects versions

Priority

Created November 24, 2020 at 11:46 AM
Updated August 25, 2021 at 8:10 AM
Resolved May 20, 2021 at 2:59 PM