[jcifs] SmbURL's with @'s in the path portion
conrad at apple.com
Thu Nov 15 12:06:40 EST 2001
At 4:45 PM -0800 11/14/01, rjw wrote:
>Just found something else... if I have a url that looks like the following:
>smb://rob:password@hostname/sharename/foo/Mom @ Cannes/lotr.jpg
>jCIFS balks with a hostname not found exception. I believe I found the
>Line 176 of SmbURL does a lastIndexOf ("@") to get the index of the @.
>It then looks after the @ for the hostname. So, in this case, it's
>trying to find a server named " Cannes", I think.
>Is there any issue that I am unaware of with making this an indexOf
>instead of lastIndexOf()?
AFAIK all "@" must be escaped (using the "%" digit digit URL syntax),
except for the one which precedes the hostname. Note an "@" could be part
of someone's password too.
Conrad Minshall ... conrad at apple.com ... 408 974-2749
Alternative email addresses: rad at acm.org and conrad at mac.com.
More information about the jcifs