>> Seems to work for us.
>> Would be great if you could add it to trunk.
>>  
> 
> Just one thought: java.io.File behaves in exact the same manner as VFS
> do currently.

It does? AFAIR java.io.File does return null
if the directory does not exist while VFS is
returning an empty array.

> I am a little bit surprised about this, but now I am not sure if I
> really should change it in VFS as a user might expect the same behaviour
> as in javas File implementation.

What about returning null instead of the
exception then?

> So please give me an additional push ;-)

*push* ;-)

> Would be great if other VFS users could comment on it too.

Yepp

>> The traversal does not work correctly when there
>> are space (I assume special characters in general)
>> in the directory name / URI. Seems like the traversal
>> is missing a call to the URI encoder.
>>  
> 
> The encoding thing drives me crazy too.
> However, could you please try to change the following in
> WebdavFileNameParser
> 
> -        return super.encodeCharacter(ch) || ch < ' ';
> +        return super.encodeCharacter(ch) || ch <= ' ';
> 
> If it works I will commit it.

Unfortunately that does not solve it.
My patch does ;)

cheers
--
Torsten

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to