GeoServer GUI for SLDs strips out valid tags

Description

An SLD like the one attached to the JIRA is a valid SLD for GeoServer, and it is also correctly rendered by WMS.

If you try to put this SLD on the SLD editor of GeoServer and then clicking on "Validate" the geoserver strips the contents of the <se:Fill> .
So from:
<se:Fill>
<se:SvgParameter name="fill">#f7fbff</se:SvgParameter>
</se:Fill>

It goes to essentially just: <se:Fill/>

---------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" xmlns:se="http://www.opengis.net/se">
<NamedLayer>
<se:Name>bz_floodrisk_nri_</se:Name>
<UserStyle>
<se:Name>bz_floodrisk_nri_</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Very Low Risk</se:Name>
<seescription>
<se:Title>Very Low Risk</se:Title>
</seescription>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:And>
<ogcropertyIsGreaterThan>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>1</ogc:Literal>
</ogcropertyIsGreaterThan>
<ogcropertyIsLessThanOrEqualTo>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>2</ogc:Literal>
</ogcropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<seolygonSymbolizer>
<se:Fill>
<se:SvgParameter name="fill">#f7fbff</se:SvgParameter>
</se:Fill>
</seolygonSymbolizer>
</se:Rule>
<se:Rule>
<se:Name>Low Risk</se:Name>
<seescription>
<se:Title>Low Risk</se:Title>
</seescription>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:And>
<ogcropertyIsGreaterThan>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>2</ogc:Literal>
</ogcropertyIsGreaterThan>
<ogcropertyIsLessThanOrEqualTo>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>3</ogc:Literal>
</ogcropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<seolygonSymbolizer>
<se:Fill>
<se:SvgParameter name="fill">#d7e6f4</se:SvgParameter>
</se:Fill>
</seolygonSymbolizer>
</se:Rule>
<se:Rule>
<se:Name>Low Risk</se:Name>
<seescription>
<se:Title>Low Risk</se:Title>
</seescription>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:And>
<ogcropertyIsGreaterThan>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>3</ogc:Literal>
</ogcropertyIsGreaterThan>
<ogcropertyIsLessThanOrEqualTo>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>4</ogc:Literal>
</ogcropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<seolygonSymbolizer>
<se:Fill>
<se:SvgParameter name="fill">#afd1e7</se:SvgParameter>
</se:Fill>
</seolygonSymbolizer>
</se:Rule>
<se:Rule>
<se:Name>Medium Risk</se:Name>
<seescription>
<se:Title>Medium Risk</se:Title>
</seescription>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:And>
<ogcropertyIsGreaterThan>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>4</ogc:Literal>
</ogcropertyIsGreaterThan>
<ogcropertyIsLessThanOrEqualTo>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>5</ogc:Literal>
</ogcropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<seolygonSymbolizer>
<se:Fill>
<se:SvgParameter name="fill">#72b2d7</se:SvgParameter>
</se:Fill>
</seolygonSymbolizer>
</se:Rule>
<se:Rule>
<se:Name>High Risk</se:Name>
<seescription>
<se:Title>High Risk</se:Title>
</seescription>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:And>
<ogcropertyIsGreaterThan>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>5</ogc:Literal>
</ogcropertyIsGreaterThan>
<ogcropertyIsLessThanOrEqualTo>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>6</ogc:Literal>
</ogcropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<seolygonSymbolizer>
<se:Fill>
<se:SvgParameter name="fill">#3d8dc3</se:SvgParameter>
</se:Fill>
</seolygonSymbolizer>
</se:Rule>
<se:Rule>
<se:Name>Very High Risk</se:Name>
<seescription>
<se:Title>Very High Risk</se:Title>
</seescription>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:And>
<ogcropertyIsGreaterThan>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>6</ogc:Literal>
</ogcropertyIsGreaterThan>
<ogcropertyIsLessThanOrEqualTo>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>7</ogc:Literal>
</ogcropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<seolygonSymbolizer>
<se:Fill>
<se:SvgParameter name="fill">#1562a9</se:SvgParameter>
</se:Fill>
</seolygonSymbolizer>
</se:Rule>
<se:Rule>
<se:Name>Normally inundated</se:Name>
<seescription>
<se:Title>Normally inundated</se:Title>
</seescription>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:And>
<ogcropertyIsGreaterThan>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>7</ogc:Literal>
</ogcropertyIsGreaterThan>
<ogcropertyIsLessThanOrEqualTo>
<ogcropertyName>FLOODRISK1</ogcropertyName>
<ogc:Literal>8</ogc:Literal>
</ogcropertyIsLessThanOrEqualTo>
</ogc:And>
</ogc:Filter>
<seolygonSymbolizer>
<se:Fill>
<se:SvgParameter name="fill">#08306b</se:SvgParameter>
</se:Fill>
</seolygonSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>

Environment

None

Status

Assignee

Alessio Fabiani

Reporter

Alessio Fabiani

Triage

None

Fix versions

Affects versions

None

Priority

High
Configure