always getting 401 status code with wfs client authentification
---------------------------------------------------------------
Key: GEOT-3574
URL: http://jira.codehaus.org/browse/GEOT-3574
Project: GeoTools
Issue Type: Bug
Affects Versions: 2.7.0
Reporter: Hajo Kliemeck
i'm trying to evaluate the ability to restrict the access to the geoserver WFS
service. i changed the "Catalog mode configuration" on my geoserver to
"challenge" but i'm always getting the following exception:
{quote}
java.lang.NullPointerException
at
org.geotools.gml2.bindings.GML2ParsingUtils.featureType(GML2ParsingUtils.java:211)
at
org.geotools.gml3.bindings.GML3ParsingUtils.featureType(GML3ParsingUtils.java:76)
at
org.geotools.data.wfs.v1_1_0.parsers.EmfAppSchemaParser.parse(EmfAppSchemaParser.java:232)
at
org.geotools.data.wfs.v1_1_0.parsers.EmfAppSchemaParser.parseSimpleFeatureType(EmfAppSchemaParser.java:119)
at
org.geotools.data.wfs.v1_1_0.parsers.EmfAppSchemaParser.parseSimpleFeatureType(EmfAppSchemaParser.java:88)
at
org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getSchema(WFS_1_1_0_DataStore.java:211)
at
org.geotools.data.wfs.v1_1_0.WFSFeatureSource.<init>(WFSFeatureSource.java:67)
at
org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getFeatureSource(WFS_1_1_0_DataStore.java:439)
at
org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getFeatureSource(WFS_1_1_0_DataStore.java:102)
at ag.mmw.gis.service.Service.getWFSDataStore(Service.java:124)
{quote}
my client-code:
{code}
Map connectionParameters = new HashMap();
connectionParameters.put("WFSDataStoreFactory:GET_CAPABILITIES_URL",
OGCServiceURL + "WFS&REQUEST=GetCapabilities");
connectionParameters.put("WFSDataStoreFactory:TIMEOUT", WFSTimeout);
connectionParameters.put("WFSDataStoreFactory:TRY_GZIP", WFSUseCompression);
connectionParameters.put("WFSDataStoreFactory:BUFFER_SIZE", WFSFeatureBuffer);
connectionParameters.put("WFSDataStoreFactory:ENCODING", WFSEncoding);
connectionParameters.put("WFSDataStoreFactory:USERNAME", OGCUsername);
connectionParameters.put("WFSDataStoreFactory:PASSWORD", OGCPassword);
DataStore data = DataStoreFinder.getDataStore(connectionParameters);
SimpleFeatureSource source = data.getFeatureSource(OGCLayer);
{code}
i have logged my network traffic with wireshark and discovered that the
geotools wfs request is always getting an 401 status error code.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel