WFSDataStoreFactory reports it can open any URL, without actually checking if
it can, or not
--------------------------------------------------------------------------------------------
Key: GEOT-2387
URL: http://jira.codehaus.org/browse/GEOT-2387
Project: GeoTools
Issue Type: Bug
Components: data wfs
Affects Versions: 2.5.4
Reporter: Andrea Aime
Assignee: Jody Garnett
Fix For: 2.5.5
Give it a URL pointing to a local resource and it'll say it can open it. Hello,
it cannot, and it will blow up with the following exception:
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:674)
> at
> org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:348)
> at
> org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:115)
At the very minimum, the factory should check the URL is of the http or https
kind.
--
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
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel