Old data dirs using "shapefile url" parameters aren't opened properly anymore
-----------------------------------------------------------------------------
Key: GEOS-1501
URL: http://jira.codehaus.org/browse/GEOS-1501
Project: GeoServer
Issue Type: Bug
Components: Configuration
Affects Versions: 1.6.0-beta4
Reporter: Andrea Aime
Assignee: Andrea Aime
Priority: Critical
Fix For: 1.6.0-RC1
When trying to open an old data dir using the indexed shapefile datastore the following error message is reported:
java.util.NoSuchElementException: No datastore found capable of managing DataStoreConfig[namespace=Regio2, enabled=false, abstract=null, connection parameters={namespace=http://www.geo-solutions.it, create spatial index=true, shapefile url=file:/C:/progetti/geoserver/data/neapolis/data/Neapolis/Regio2/pareteam.shp}]
This happens because the parameter has been renamed to "url". An ugly but effective workaround is to alter the config reader to turn "shapefile url"
into "url" during xml readering (the alternative would be to have shapaefile datastore parse both, but that would mean deprecating the param and would only delay the problem of what to do when it's removed).
--
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