[jcifs] getName weirdness...
rjw
rob at wygand.com
Tue Feb 5 13:30:10 EST 2002
Really? That's very odd... I'm using an unadulterated jCIFS dist. Hm.
Two things.. (1) I may only be seeing against Samba, and (2) here's my
test proggie:
import jcifs.smb.*;
public class Test
{
public static void main (String[] args)
{
SmbFile x = null;
try
{
x = new SmbFile ("smb://DOMAIN;rob:password@10.1.3.75");
System.out.println ("server = " + x.getName());
}
catch (Exception e)
{
System.out.println ("Caught exception: " + e.toString());
}
}
}
Allen, Michael B (RSCH) wrote:
>>-----Original Message-----
>>From: rjw [SMTP:rob at wygand.com]
>>Sent: Monday, February 04, 2002 6:23 PM
>>To: jcifs at samba.org
>>Subject: [jcifs] getName weirdness...
>>
>>Mike,
>>
>>If you attempt to list the shares on a server without a trailing slash
>>on the URL ("smb://10.1.3.1" vs. "smb://10.1.3.1/"), jCIFS returns
>>everything after the "smb://" as the name name of the requested file
>>when you call getName().
>>
>>
> I don't understand. I'm not seeing this. The examples/ListFiles.java
> program doesn't show this behavior anyway.
>
>
>> If you use the trailing slash (which is
>>correct), jCIFS returns "smb://" when you call getName(). Really neither
>>of these behaviors are correct, IMO.
>>
>>
> I'm not seeing this either.
>
> Mike
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3229 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.samba.org/archive/jcifs/attachments/20020204/e2c5fcd7/smime.bin
More information about the jcifs
mailing list