Cascaded WMS Layer configured without force remote style is passed local default when part of LayerGroup

Description

Steps to re-create problem

  1. Create two Cascaded WMS Layer and do not configure any forced remote style and remove any supported style

  2. Add both layers to a Layergroup

  3. Preview the Layergroup

Result: Layergroup will fail because it will assume the local default style (raster) for Cascaded WMS and make it part of request internally. This will fail the check when "raster" name will be passed to WMSLayerInfo resource for validation.

Resolution:
For WMSLayerInfo not configured with any remote style, calling getDefaultStyle() should return an empty StyleInfo implementation with metadata including tag "isRemote".

Environment

None

Status

Assignee

Nuno Oliveira

Reporter

Imran Rajjad

Fix versions

Affects versions

Components

Priority

High
Configure