Uploading a SLD 1.1 style over a SLD 1.0 style causes runtime parsing errors

Description

Currently the most common issue I'm facing is that while trying to upload an SLD body via REST, raw=true, SLD exported by QIGS client, it seems to be not correctly applied by GeoServer even if the body is actually present on the SLD definition.

By just hitting the button "Apply" on the GeoServer interface, let the SLD start working correctly.

Sometimes with SLDs like the above, when trying to update the SLD body without first having hitting the "Apply" button on GeoServer, ends up SLD messing up completely. In this case the whole body is replaced with the StyleDescriptor Object identifier.

Environment

None

Status

Assignee

Andrea Aime

Reporter

Alessio Fabiani

Triage

None

Fix versions

Affects versions

None

Priority

High
Configure