I have been using the REST API with Geoserver to POST and DELETE raster layers 
(coveragestore / coverages) dynamically.  I have noticed a problem with 
deleting coveragestores recursively in v2.2.4. I was wondering if anyone else 
has seen this problem.

Prior to v2.2.4 the following command would work to delete a coveragestore and 
its layers

% curl -u <username>:<password> -XDELETE  
http://localhost:8180/geoserver/rest/workspaces/<WORKSPACE_NAME>/coveragestores/<COVERAGESTORE_NAME>?recurse=true<http://localhost:8180/geoserver/rest/workspaces/%3cWORKSPACE_NAME%3e/coveragestores/%3cCOVERAGESTORE_NAME%3e?recurse=true>

This seemed to stop working.  POSTing coveragestores/coverages still works fine 
and deleting a workspace recursively works too?
The reallycd / strange thing is that I get a 404 back indicating the layer does 
not exist in Geoserver when it does.

Here is the error thrown in the server log
11:23:43,271 ERROR [org.geoserver.rest] (http--0.0.0.0-8180-18) No such 
coverage store: TEST_WORKSPACE,TEST_COVERAGESTORE
11:23:43,272 ERROR [org.geoserver.rest] (http--0.0.0.0-8180-18) : 
org.geoserver.rest.RestletException
        at 
org.geoserver.catalog.rest.CoverageStoreFinder.findTarget(CoverageStoreFinder.java:31)
 [restconfig-2.2.4.jar:]
        at org.restlet.Finder.handle(Finder.java:268) [org.restlet-1.0.8.jar:]
        at 
org.geoserver.rest.BeanDelegatingRestlet.handle(BeanDelegatingRestlet.java:37) 
[rest-2.2.4.jar:]
        at org.restlet.Filter.doHandle(Filter.java:105) [org.restlet-1.0.8.jar:]
        at org.restlet.Filter.handle(Filter.java:134) [org.restlet-1.0.8.jar:]
        at org.restlet.Router.handle(Router.java:444) [org.restlet-1.0.8.jar:]
        at org.geoserver.rest.RESTDispatcher$1.handle(RESTDispatcher.java:204) 
[rest-2.2.4.jar:]
       at 
com.noelios.restlet.ext.servlet.ServletConverter.service(ServletConverter.java:129)
 [com.noelios.restlet.ext.servlet-1.0.8.jar:]
        at 
org.geoserver.rest.RESTDispatcher.handleRequestInternal(RESTDispatcher.java:86) 
[rest-2.2.4.jar:]
.....

Environment:
 Linux RHEL 5
 Jboss 7
  Java 7

Has anyone experienced this?

Thanks
-robert

---
Robert Brister
Principal Software Engineer
General Dynamics Information Technology
[email protected]<mailto:[email protected]>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to