Hi,
I am using Geoserver's latest release right now(2.24.0) and facing an issue.
When I try to change a layers style(with existing styles) using both REST API
and WebApp, i can see that styles successfully changed on "Layer Preview" tab
but not on "Edit Layer" tab. You can find repro steps on below:
1. Open the layer both on "Layer Preview" and "Edit Layer"
2. To see style of the layer, send a get request -> GET
http://<geoserver-url>:<geoserver-port>/geoserver/rest/layers/<layer-name>/styles
3. After a successful request, we will see something like this:
* {
* "styles": {
* "style": [
* {
* "name": "point"
...
* }
* ]
* }
* }
4. 4- Now, send a put request to update styles -> PUT
http://<geoserver-url>:<geoserver-port>/geoserver/rest/layers/<layer-name> with
body:
{
"layer": {
"styles": {
"@class": "linked-hash-set",
"style": [
{
"name": "point"
},
{
"name": "polygon"
}
]
}
}
}
5- After successful request, repeate step 2 and we can see it is successfully
changed.
6- Now, if we reload the "Layer Preview" page and click three dot on top left,
we can see styles section and select the style that we want but if we
reload(even if we clear cache) "Edit Layer" page than click on "Publist",
scroll down and see WMS Settings -> Layer Settings. There is a table that named
Available Styles and Selected Styles. Selected Styles didn't updated after this
steps.
GeoServer Version: 2.24.0
OS: Ubuntu 20.04 64bit
Java: 11.0.21
Thanks in advance
1.
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users