<div dir="ltr"><br><div><br></div><div>I use OWSLib (0.12.0) to retrieve the schema of a layer from Geoserver: </div><div><br></div><div> wfs = WebFeatureService(location, version='1.1.0')<br></div><div> schema = wfs.get_schema(name_of_layer)<br></div><div><br></div><div>This works fine as long as the checkbox: Anyone (in the permissions modal: Who can view it tab) for this layer is selected.</div><div>If I uncheck the checkbox I get an error related to:</div><div><br></div><div> schema = wfs.get_schema(name_of_layer) </div><div><br></div><div>I also tried to pass authentication parameters to the WebFeatureService as described here (<span style="color:rgb(68,68,68);font-family:roboto,helvetica,arial,sans-serif;font-size:13px"><a href="https://goo.gl/ffpHg7">https://goo.gl/ffpHg7</a>) </span>but this doesn't</div><div>seem to fix the issue. </div><div><br></div><div>This is the error I get:</div><div><br></div><div><div>Traceback:</div><div>File "/home/vagrant/.venvs/geonode/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response</div><div> 112. response = wrapped_callback(request, *callback_args, **callback_kwargs)</div><div>File "/home/vagrant/.venvs/geonode/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view</div><div> 22. return view_func(request, *args, **kwargs)</div><div>File "/home/vagrant/geonode/geonode/layers/views.py" in layer_edit_data</div><div> 1171. schema = wfs.get_schema(name)</div><div>File "/home/vagrant/.venvs/geonode/lib/python2.7/site-packages/owslib/feature/__init__.py" in get_schema</div><div> 157. return get_schema(self.url, typename, self.version)</div><div>File "/home/vagrant/.venvs/geonode/lib/python2.7/site-packages/owslib/feature/schema.py" in get_schema</div><div> 40. res = openURL(url, timeout=timeout)</div><div>File "/home/vagrant/.venvs/geonode/lib/python2.7/site-packages/owslib/util.py" in openURL</div><div> 213. raise ServiceException(str(serviceException.text).strip())</div><div><br></div><div>Exception Type: ServiceException at /layers/geonode:afghanistan_asdasdas/edit_data</div><div>Exception Value: </div></div><div><br></div><div><br></div><div><br></div>
</div>