planetfederal / qgis-suite-plugin

GNU General Public License v2.0
25 stars 17 forks source link

Cannot publish a layer from QGIS to GeoServer #72

Closed vdeparday closed 10 years ago

vdeparday commented 10 years ago

I am trying to publish the following layer [1] from my QGIS workspace to GeoServer. It used to work before and now the following error:

could not create layer A flood in Jakarta. Traceback (most recent call last): File "/Users/viv/.qgis2/python/plugins/opengeo/gui/explorer.py", line 119, in run command(*params) File "/Users/viv/.qgis2/python/plugins/opengeo/qgis/catalog.py", line 344, in publishLayer self.upload(layer, workspace, overwrite, name) File "/Users/viv/.qgis2/python/plugins/opengeo/qgis/catalog.py", line 250, in upload raise Exception(msg) Exception: could not create layer A flood in Jakarta.

I tried on a local GeoServer and on beta.dev.geonode.org geoserver. The layer seem to be still created but it must be broken as it cannot be previewed and I try to re-fresh the geoserver catalog in the explorer and add it to the QGIS workspace and I get two more exceptions.

[1] https://www.dropbox.com/sh/r3mlkc1i1emxkoo/AJYaTaut01

vdeparday commented 10 years ago

So it is working with another layer. I feel it is because this layer has space in its QGIS name/title. The name in GeoServer broken layer results in A%20flood%20in%20Jakarta, wonder if that is causing the issue as the exception is not very meaningful.