Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cascading WMS stores do not play well with Geoserver Explorer #69

Open
gioman opened this issue May 3, 2017 · 0 comments
Open

Cascading WMS stores do not play well with Geoserver Explorer #69

gioman opened this issue May 3, 2017 · 0 comments
Assignees
Labels

Comments

@gioman
Copy link
Contributor

gioman commented May 3, 2017

Tried to make a GET request to http://x.x.x.x/geoserver/rest/workspaces/cite/wmsstores/azz_azz/wmslayers/Bacias_hidrográficas.xml but got a 404 status code: No such cascaded wms layer: cite,azz_azz,Bacias_hidrogr%C3%A1ficas 
Traceback (most recent call last):
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/explorer.py", line 101, in run
    command(*params)
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 344, in populate
    layerItem = GsLayerItem(layer)
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 705, in __init__
    GsTreeItem.__init__(self, layer, icon, layer.resource.title)
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/ext-libs/gsconfig-1.0.6-py2.7.egg/geoserver/support.py", line 67, in getter
    self.fetch()
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/ext-libs/gsconfig-1.0.6-py2.7.egg/geoserver/support.py", line 176, in fetch
    self.dom = self.catalog.get_xml(self.href)
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/ext-libs/gsconfig-1.0.6-py2.7.egg/geoserver/catalog.py", line 216, in get_xml
    raise FailedRequestError("Tried to make a GET request to %s but got a %d status code: \n%s" % (rest_url, response.status, content))
FailedRequestError: Tried to make a GET request to http://x.x.x.x./geoserver/rest/workspaces/cite/wmsstores/azz_azz/wmslayers/Bacias_hidrogr\xe1ficas.xml but got a 404 status code: 
No such cascaded wms layer: cite,azz_azz,Bacias_hidrogr%C3%A1ficas

if the store has spaces in it a different error is thrown (where the spaces seems to be not a problem anymore for other type of stores)

Traceback (most recent call last): File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 547, in populate self._populate() File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 560, in _populate self.workspacesItem.populate() File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 402, in populate workspaceItem.populate() File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 1248, in populate storeItem.populate() File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 1313, in populate resources = self.element.get_resources() File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/ext-libs/gsconfig-1.0.6-py2.7.egg/geoserver/store.py", line 207, in get_resources xml = self.catalog.get_xml(res_url) File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/ext-libs/gsconfig-1.0.6-py2.7.egg/geoserver/catalog.py", line 216, in get_xml raise FailedRequestError("Tried to make a GET request to %s but got a %d status code: \n%s" % (rest_url, response.status, content)) FailedRequestError: Tried to make a GET request to http://x.x.x.x/geoserver/rest/workspaces/cite/wmsstores/azz azz/wmslayers.xml but got a 400 status code: 
Traceback (most recent call last):
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/explorer.py", line 101, in run
    command(*params)
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 552, in populate
    raise Exception(var)
Exception: Traceback (most recent call last):
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 547, in populate
    self._populate()
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 560, in _populate
    self.workspacesItem.populate()
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 402, in populate
    workspaceItem.populate()
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 1248, in populate
    storeItem.populate()
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/gui/gsexploreritems.py", line 1313, in populate
    resources = self.element.get_resources()
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/ext-libs/gsconfig-1.0.6-py2.7.egg/geoserver/store.py", line 207, in get_resources
    xml = self.catalog.get_xml(res_url)
  File "/home/giovanni/.qgis2/python/plugins/geoserverexplorer/ext-libs/gsconfig-1.0.6-py2.7.egg/geoserver/catalog.py", line 216, in get_xml
    raise FailedRequestError("Tried to make a GET request to %s but got a %d status code: \n%s" % (rest_url, response.status, content))
FailedRequestError: Tried to make a GET request to http://x.x.x.x/geoserver/rest/workspaces/cite/wmsstores/azz azz/wmslayers.xml but got a 400 status code: 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants