Hi,
I don’t quite believe in configuration error. “401 Unauthorized" most probably comes from the remote WFS and my bet is that that Geoserver is really trying to connect without username/password. That should be easy to check from the logs of the remote server by having a look at the incoming requests.
-Jukka Rahkonen-
···
Mauro Bartolomeoli wrote:
Hi Alexandre,
2013/12/5 Alexandre Djioev <djioev@anonymised.com>
Hi Andrea and Mauro,
I’ve tried to switch WFS version from 1.1.0 to 1.0.0. I was able to create a store and publish a layer but when I try to preview this layer it fails. Logs show that:
05 Dec 11:24:00 WARN [xml.resolver] - Unexpected response “401 Unauthorized” while downloading http://ipaddress/wfsserver/v1/wfs/?VERSION=1.0.0&REQUEST=DescribeFeatureType
05 Dec 11:24:00 WARN [1.0] - java.io.IOException: org.xml.sax.SAXException: Failed to resolve http://ipaddress/wfsserver/v1/wfs/?VERSION=1.0.0&REQUEST=DescribeFeatureType
…
Caused by: java.io.IOException: org.xml.sax.SAXException: Failed to resolve http://ipaddress/wfsserver/v1/wfs/?VERSION=1.0.0&REQUEST=DescribeFeatureType
I think something is misconfigured in your WFS-T server, maybe ipaddress should be changed to the server hostname or ip address in some configuration file.
Regards,
Mauro Bartolomeoli
at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:328)
at org.geotools.data.wfs.v1_0_0.WFSFeatureReader.loadElement(WFSFeatureReader.java:189)
at org.geotools.data.wfs.v1_0_0.WFSFeatureReader.hasNext(WFSFeatureReader.java:178)
at org.geotools.data.ReTypeFeatureReader.hasNext(ReTypeFeatureReader.java:194)
at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReaderPOST(NonStrictWFSStrategy.java:138)
at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReader(NonStrictWFSStrategy.java:122)
at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.getFeatureReader(NonStrictWFSStrategy.java:77)
at org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getFeatureReader(WFS_1_0_0_DataStore.java:856)
at org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:215)
at org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:231)
at org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:199)
at org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:188)
at org.geoserver.feature.RetypingFeatureCollection.features(RetypingFeatureCollection.java:45)
at org.geoserver.feature.RetypingFeatureCollection.features(RetypingFeatureCollection.java:31)
at org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2475)
… 113 moreExtrenal wfs server is protected with basic auth. It works fine with version=1.1.0, so it looks like GS is ignoring store username/password on DescribeFeatureType request when version=1.0.0. Looks like a bug to me…
Thanks Alex
On Thu, Dec 5, 2013 at 12:44 AM, Andrea Aime <andrea.aime@anonymised.com7…> wrote:
On Wed, Dec 4, 2013 at 11:42 AM, Alexandre Djioev <djioev@anonymised.com> wrote:
Hi Amie and Mauro,
thank you, will try it. does it mean that cascading downgrades WFS to version 1.0?
No, the client will also try 1.1.0, the problem is that with version 1.1.0 we have no code
to cascade WFS-T, only read only requests: that’s why you have to force using version 1.0.0
in the capabilities url you are providing to the WFS store
Cheers
Andrea
–
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://twitter.com/geosolutions_it
–
Cheers, Alex
–
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
==
Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
http://twitter.com/geosolutions_it