[jcifs] SmbURL's with @'s in the path portion
rjw
rob at wygand.com
Thu Nov 15 11:45:53 EST 2001
Mike,
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
reason, though.
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()?
rjw
--
"They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety."
More information about the jcifs
mailing list