On Tue, Jul 3, 2012 at 2:45 PM, Emmanuel Blondel <
[email protected]> wrote:
> Dear all,
>
> I am using the Geoserver REST API, to publish layers and styles.
> I performed tests to publish one style using POST, and then to remove it.
>
> Then, if i tried to publish again the style with the same name, I get an
> error: Method failed: HTTP/1.1 403
> This occurs while the style was removed from Geoserver, but it seems
> Geoserver considers that the style does still exist. Is it a problem of
> cache or something like that?
>
> I had a look to reload & reset functionality, but their roles are no clear
> to me, and if one of them would be helpful in my case or not.
> Could somebody give me advice on this and how to publish again a style
> that was previously removed?
>
The style removing does not actually delete the .sld file, that's why you
cannot upload it
again. You should add &purge=true to the request to have the sld file be
deleted as well.
Cheers
Andrea
--
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users