layer desactivated when we push a SLD file with REST API
--------------------------------------------------------
Key: GEOS-4023
URL: http://jira.codehaus.org/browse/GEOS-4023
Project: GeoServer
Issue Type: Bug
Components: REST
Affects Versions: 2.0.2
Environment: Windows XP,
Reporter: Nicolas Mancone
Assignee: Andrea Aime
when we apply a SLD on a layer:
curl -u user:pass -XPUT -H 'Content-type: text/xml' -d
'<layer><defaultStyle><name>roads_style</name></defaultStyle></layer>'
http://localhost:8080/geoserver/rest/layers/my:roads
It desactivate the layer and we have to do a :
curl -u user:pass -XPUT -H 'Content-type: text/xml' -d
'<layer><defaultStyle><name>roads_style</name></defaultStyle><enabled>true</enabled></layer>'
http://localhost:8080/geoserver/rest/layers/my:roads
in order to re-activate the layer
But when we restart geoserver, the layer still desactivated
So, now, the only way is to activate the layer in the same request:
curl -u user:pass -XPUT -H 'Content-type: text/xml' -d
'<layer><defaultStyle><name>roads_style</name></defaultStyle><enabled>true</enabled></layer>'
http://localhost:8080/geoserver/rest/layers/my:roads
--
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
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel