Bug to fix file.toURL() - not fixed
- http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4273532

Bug to deprecate file.toURL() with replacement file.toURI().toURL()
- http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6179468

So what is left? File.toURI().toURL() does not handle the wacka wacka paths from windows (ie networks share paths).

For the specific case of shapefile it looks like we may be able to hack around this stuff....

The debugger tells me that the data structure that gets inconsistent is "StorageFile".

Specifically:
storagefile.tempFile:
- /var/folders/xv/xvN1hpRQE-8KP+iyx3ETuU+++TI/-Tmp-/test- shp39037446236433098362540027388027692131.shp

storagefile.urls ends up with:
- file:/var/folders/xv/xvN1hpRQE-8KP iyx3ETuU TI/-Tmp-/test- shp3903744623643309836.fix - file:/var/folders/xv/xvN1hpRQE-8KP iyx3ETuU TI/-Tmp-/test- shp3903744623643309836.grx - file:/var/folders/xv/xvN1hpRQE-8KP iyx3ETuU TI/-Tmp-/test- shp3903744623643309836.qix - file:/var/folders/xv/xvN1hpRQE-8KP iyx3ETuU TI/-Tmp-/test- shp3903744623643309836.shp.xml - file:/var/folders/xv/xvN1hpRQE-8KP iyx3ETuU TI/-Tmp-/test- shp3903744623643309836.shx

So the "+" characters in the path are not being encoded as "%2B" when that crazy file is converted into a URL.

Jody
------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to