Hello,
At the moment it is not possible to change the workspace of a style with
a REST put request. This is explicitly prevented by a block of code:
https://github.com/geoserver/geoserver/blob/master/src/restconfig/src/main/java/org/geoserver/rest/catalog/StyleController.java#L474
However, when this check is removed, it seems to work fine to change the
workspace of a style this way. After all this is already allowed in the
GUI, which does nothing special to implement it. It is the low level
GeoServerResourcePersister that handles moving all the files to a
different directory when a style workspace is changed. This is why it
works fine with rest too.
So, could the block of code preventing this perhaps be removed?
One issue is however that is not possible to remove the workspace from a
style. The rest services only changes specified properties, ignoring
nulls, so it is not possible to change something back to null via the
rest in general I think.
Kind Regards
Niels
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel