Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.5.3
-
Fix Version/s: 2.5.9
-
Component/s: wfs plugin
-
Labels:None
Description
Actually tested on trunk, but anyways, the WFS datastore does not handle any url type, but only http and https as far as I know. canProcess should check that. Passing a file:// url results in the following error during datastore creation:
java.lang.ClassCastException: sun.net.www.protocol.file.FileURLConnection cannot be cast to java.net.HttpURLConnection
at org.geotools.data.wfs.protocol.http.SimpleHttpProtocol.openConnection(SimpleHttpProtocol.java:106)
at org.geotools.data.wfs.protocol.http.SimpleHttpProtocol.issueGet(SimpleHttpProtocol.java:84)
at org.geotools.data.wfs.WFSDataStoreFactory.loadCapabilities(WFSDataStoreFactory.java:681)
at org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:348)
at org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:115)