Adding a style whose SLD already exists on the server
-----------------------------------------------------
Key: GEOS-3621
URL: http://jira.codehaus.org/browse/GEOS-3621
Project: GeoServer
Issue Type: Improvement
Components: REST
Affects Versions: 2.0-RC2
Reporter: Luca Morandini
Assignee: Andrea Aime
Priority: Minor
Using ReST to POST a new style whose SLD conflicts with an already-existing SLD on the server, causes the POST to abort. Moreover, the DELETE operation removes only the style, not the associated SLD, effectively making the existing SLDs read-only (you cannot remove them nor update them).
There could be three solutions:
1) Add a "purge" parameter to the DELETE operation, in order to let the user specify the deletion of SLD as well.
2) Add an "overwrite" parameter to the POST operation, meaning the server shall update the existing SLD if need be.
3) Split the style management into style and stylestore URIs (a bit like coverage and coveragestore), the latter being the SLD file itself.
As for myself, I would prefer the 2nd option, since the 1st one may still leave a read-only SLD (if the DELETE operation has been without the "purge" parameter), while the 3rd would make style management needlessy complicated (and will not be backward-compatible).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira