Hi list,

I have been using the Geoserver REST API to delete layers and have discovered 
some unwanted behaviour.  I cannot delete a layer (from a shapefile datastore) 
that has been previewed before.  The steps to replicate the behaviour are:

1) Preview the layer in browser:
         
http://localhost:8080/geoserver/wms/reflect?format=application/openlayers&layers=cite:LuchtKwaliteitArc&width=512&height=370&format=application/openlayers
2) Delete the layer
        curl -X DELETE -u user:password  
"http:/localhost:8080/geoserver/rest/layers/cite:LuchtKwaliteitArc”
3) Delete the feature type
        curl -X DELETE  -u user:password  
"http://localhost:8080/geoserver/rest/workspaces/cite/datastores/LuchtKwaliteitArc/featuretypes/LuchtKwaliteitArc”
4) Delete the store
        curl -X  DELETE -u user:password  
"http://localhost:8080/geoserver/rest/workspaces/cite/datastores/LuchtKwaliteitArc";
 
On step 3 I get a HTTP 500.  It seems that this sneaked up in the 2.4 release, 
since this behaviour occurs in GS 2.4.5, but not in GS 2.3.5. Did anyone 
experience the same issue? 

Stacktrace GS log: http://pastebin.com/XAy8ykQU

Possibly related bug: 
http://jira.codehaus.org/browse/GEOS-6199?jql=text%20~%20%22500%20error%20on%20REST%20layer%20and%20store%20delete%22

Thanks in advance for any help and advice.

Cheers,
Anton

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to