When a namespace is created issuing a POST request to the /namespaces endpoint, a corresponding workspace is automatically created by GeoServer.
Conversely, when a namespace is deleted issuing a DELETE request to the /namespaces/<ns> endpoint, the associated workspace is not explictly removed from the catalog (I checked the code in NamespaceResource) and continues to appear in the UI (a NullPointerException is thrown if user clicks on it) and in the outcome of REST calls, even though the workspace.xml file no longer exists on disk.
If GeoServer is rebooted, the workspace disappears.
cURL requests to reproduce the issue:
Proposed fix is here: https://github.com/geoserver/geoserver/pull/1119
|