[Geoserver-devel] [jira] Created: (GEOS-3963) Layer deleted through REST Interface is not completely removed

Layer deleted through REST Interface is not completely removed
--------------------------------------------------------------

                 Key: GEOS-3963
                 URL: http://jira.codehaus.org/browse/GEOS-3963
             Project: GeoServer
          Issue Type: Bug
          Components: REST
         Environment: GeoServer 2.1-SNAPSHOT
            Reporter: Adam Ratcliffe
            Assignee: Andrea Aime

When deleting an existing layer in GeoServer through the REST interface some information about the layer that was deleted appears to be cached in-memory, preventing it from being recreated without restarting GeoServer. I can reproduce the error through these steps:

1) Create the new layer through the REST interface

POST /geoserver/rest/workspaces/geosmart/datastores/gis/featuretypes

2) Delete the layer and feature type through the REST interface

DELETE /geoserver/rest/layers/test

DELETE /geoserver/rest/workspaces/geosmart/datastores/gis/featuretypes/ test

3) Re-create the layer through the REST interface, same name but with a different set of attributes. I get the following error message in the geoserver log file:

2010-05-16 18:27:11,493 INFO [org.geoserver] - Loaded feature type 'test', disab
led
2010-05-16 18:27:11,498 ERROR [geoserver.rest] - :the SimpleFeatureType geosmart
:test does not contains the configured attribute description. Check your schema
configuration

If I restart GeoServer at this point I can then re-create the layer with the new attribute set.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira