Securing away layers might cause layer groups to stop working in GetMap

Description

This happens if the group is using explicit style lists, the style refer to layer attributes, and one of the layers is removed: the layer list is reduced but the style one is not (in SecureLayerGroupInfo), causing the WMS request to return errors such as "style x cannot be used with layer y because attribute z is not there"

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

Fix versions

Affects versions

None

Components

Priority

Medium
Configure