dwins/gsconfig.py — Issue #19: get_resources fails when Datastore contains spaces in name
Author: ingenieroariel
Created: 2011-10-11 21:40:31+00:00
State: open

Here is the relevan stacktrace:

```python
File "/home/geonode/geonode/src/GeoNodePy/geonode/maps/management/commands/updatelayers.py", line 11, in handle
resources = cat.get_resources()
File "/home/geonode/venv/src/gsconfig.py/src/geoserver/catalog.py", line 341, in get_resources
resources.extend(self.get_resources(workspace=ws))
File "/home/geonode/venv/src/gsconfig.py/src/geoserver/catalog.py", line 337, in get_resources
resources.extend(self.get_resources(store))
File "/home/geonode/venv/src/gsconfig.py/src/geoserver/catalog.py", line 333, in get_resources
return store.get_resources()
File "/home/geonode/venv/src/gsconfig.py/src/geoserver/store.py", line 101, in get_resources
xml = self.catalog.get_xml(res_url)
File "/home/geonode/venv/src/gsconfig.py/src/geoserver/catalog.py", line 108, in get_xml
raise FailedRequestError("Tried to make a GET request to %s but got a %d status code: \n%s" % (url, response.status, content))
geoserver.catalog.FailedRequestError: Tried to make a GET request to http://localhost/geoserver/rest/workspaces/geonode/coveragestores/Estimate of flood frequency/coverages.xml but got a 404 status code:
No such coverage store: geonode,Estimate
```