Authentication fails for WFS_1_0_0 when getFeatures
---------------------------------------------------

                 Key: GEOT-2507
                 URL: http://jira.codehaus.org/browse/GEOT-2507
             Project: GeoTools
          Issue Type: Bug
    Affects Versions: 2.6-M1
         Environment: linux
            Reporter: Lars Aksel Opsahl


If i use a server that requires basic authentication I get the error below. 

IOException: Server returned HTTP response code: 401 for URL: 
????/geoserver/wfs/DescribeFeatureType?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=matrikkel:TEIGWFS
        at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1241)
        at 
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
        at 
org.geotools.wfs.protocol.DefaultConnectionFactory.getInputStream(DefaultConnectionFactory.java:192)
        at 
org.geotools.wfs.protocol.DefaultConnectionFactory.getInputStream(DefaultConnectionFactory.java:172)
        at 
org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getSchemaGet(WFS_1_0_0_DataStore.java:369)
        at 
org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getSchema(WFS_1_0_0_DataStore.java:292)

This is fixed by commenting out line 158 in 
org.geotools.wfs.protocol.DefaultConnectionFactory

Line 158 after fix: //Authenticator.setDefault(null);


-- 
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

        

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to