Anton
March 12, 2014, 3:45pm
1
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:
Preview the layer in browser:
http://localhost:8080/geoserver/wms/reflect?format=application/openlayers&layers=cite:LuchtKwaliteitArc&width=512&height=370&format=application/openlayers
Delete the layer
curl -X DELETE -u user:password "http:/localhost:8080/geoserver/rest/layers/cite:LuchtKwaliteitArc”
Delete the feature type
curl -X DELETE -u user:password "http://localhost:8080/geoserver/rest/workspaces/cite/datastores/LuchtKwaliteitArc/featuretypes/LuchtKwaliteitArc”
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"500%20error%20on%20REST%20layer%20and%20store%20delete" ](http://jira.codehaus.org/browse/GEOS-6199?jql=text ~ “500 error on REST layer and store delete”)
Thanks in advance for any help and advice.
Cheers,
Anton
On Wed, Mar 12, 2014 at 4:45 PM, Anton Bakker <anton.bakker@anonymised.com>wrote:
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"500%20error%20on%20REST%20layer%20and%20store%20delete"
Yes, I believe this is the same bug.
If you have java development abilities a patch/pull request would be
welcomed
Cheers
Andrea
--
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
Anton
March 17, 2014, 1:26pm
3
Thanks for your reply, but unfortunately I am not into Java development.
Cheers,
Anton
···
On Wed, Mar 12, 2014 at 4:45 PM, Anton Bakker <anton.bakker@anonymised.com > wrote:
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:
Preview the layer in browser:
http://localhost:8080/geoserver/wms/reflect?format=application/openlayers&layers=cite:LuchtKwaliteitArc&width=512&height=370&format=application/openlayers
Delete the layer
curl -X DELETE -u user:password "http:/localhost:8080/geoserver/rest/layers/cite:LuchtKwaliteitArc”
Delete the feature type
curl -X DELETE -u user:password "http://localhost:8080/geoserver/rest/workspaces/cite/datastores/LuchtKwaliteitArc/featuretypes/LuchtKwaliteitArc”
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
Yes, I believe this is the same bug.
If you have java development abilities a patch/pull request would be welcomed
Cheers
Andrea
–
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it