[ http://jira.codehaus.org/browse/GEOT-318?page=all ]
     
Jesse Eichar reopened GEOT-318:
-------------------------------

     Assign To: Jesse Eichar

This appears to still be a problem for the people working on iMabBC.



> ShapefileDataStore doesn't accept UNC paths in URL
> --------------------------------------------------
>
>          Key: GEOT-318
>          URL: http://jira.codehaus.org/browse/GEOT-318
>      Project: GeoTools
>         Type: Bug

>   Components: shapefile
>     Versions: 2.0.RC1
>     Reporter: Kari Maijala
>     Assignee: Jesse Eichar
>     Priority: Minor
>      Fix For: 2.2-RC1

>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> The constructor of ShapefileDataStore takes an URL argument.
> If the URL is a file URL containing an UNC path the constructor fails with 
> IOException. The stack trace indicates that constructor has modified the UNC 
> path and removed the host portion.
> Stack trace:
> java.io.IOException: File either doesn't exist or is unreadable : \My 
> Directory\foo.shp
>       at 
> org.geotools.data.shapefile.ShapefileDataStore.getReadChannel(ShapefileDataStore.java:165)
>       at 
> org.geotools.data.shapefile.ShapefileDataStore.openShapeReader(ShapefileDataStore.java:232)
>       at 
> org.geotools.data.shapefile.ShapefileDataStore.readAttributes(ShapefileDataStore.java:326)
>       at 
> org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:312)
>       at 
> org.geotools.data.shapefile.ShapefileDataStore.getFeatureSource(ShapefileDataStore.java:837)

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



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to