Thanks for your answer,

Yes this is what i did. I added purge = true. It seems there is a problem in the project library that i'm using. Actually it does not purge anything since my SLD file is still there. I will let you know where was the problem.

Cheers
Emmanuel

Le 03/07/2012 21:59, Andrea Aime a écrit :
On Tue, Jul 3, 2012 at 2:45 PM, Emmanuel Blondel <emmanuel.blond...@gmail.com <mailto:emmanuel.blond...@gmail.com>> 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



--
*Emmanuel Blondel*
GIS Consultant

Geographic Information Systems
in Agronomy - Environment -Fisheries
Email: emmanuel.blond...@gmail.com - emmanuel.blon...@fao.org
Phone: +33 6 45 97 87 52
------------------------------------------------------------------------------
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to