All tests pass; the evil the evil.

Michael I will try and send you a patch; it is not pretty but it
works. If you like it you can commit it tomorrow.

Jody

On Tue, Jun 30, 2009 at 1:39 AM, Jody Garnett<jody.garn...@gmail.com> wrote:
> Okay so I have started being able to patch these problems (and am
> getting more test cases to pass):
> 1. file.toURI()
> 2. check result; if it contains "+" symbols; unpack; replace; repack into URI
> 3. change to URL
>
> I am going to wrap this up in a DataUtilities method; this method
> should later take into account the windows \\host\share paths as well.
>
> Jody
>
> On Tue, Jun 30, 2009 at 1:11 AM, Jody Garnett<jody.garn...@gmail.com> wrote:
>> 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