Updating a SLD style using the API omits the <Stroke> section in Polygon/LineSymbolizer
Description
When attempting to update an SLD using the REST API on the endpoint PUT /styles/{name}
with the following content
the <Stroke> part is then emptied (just an empty tag). I tried this with a `PolygonSymbolizer` and a `LineSymbolizer` and the result is the same for both. Weirdly though the `Fill` is retained correctly.
For completeness, the above sld is converted to the following:
(I have not yet tried to create a new style using the API using the new version
Environment
None
Activity
Nathan Van der Auwera
May 14, 2018 at 5:53 PM
You can close this issue (I tried to close it myself but did not find how immediately).
Nathan Van der Auwera
May 14, 2018 at 5:52 PM
Oh wow! That's cool! I forgot to actually test the style, I assumed since it was somehow broken.
Thank you for the quick reply!
Andrea Aime
May 14, 2018 at 5:19 PM
The style is reformatted, and since you only used default values for the Stroke, it gets emptied, but should still behave the same. If you don't want the style to be reformatted/pretty printed, there is a "raw=true" parameter that can be appended in the URL you're put-int to.
When attempting to update an SLD using the REST API
on the endpoint PUT /styles/{name}
with the following content
the <Stroke> part is then emptied (just an empty tag). I tried this with a `PolygonSymbolizer` and a `LineSymbolizer` and the result is the same for both. Weirdly though the `Fill` is retained correctly.
For completeness, the above sld is converted to the following:
(I have not yet tried to create a new style using the API using the new version