Generating a raster SLD style from template produces a formally invalid style

Description

When generating a "raster" style from the style editor the following gets created:

Validating it results in an error, because UserLayer cannot have right a way a UserStyle. The vector templates are using a NamedLayer instead, where this issue is not hapenning.

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

Fix versions

Affects versions

None

Components

Priority

Medium
Configure