[jcifs] DFS with jCIFS 1.2.3 and w2k3 sp1

Michael B Allen mba2000 at ioplex.com
Sat Sep 10 16:07:19 GMT 2005


On Sat, 10 Sep 2005 14:17:42 +0200
Thomas Bley <thomas.bley at simple-groupware.de> wrote:

> Hi,
> 
> thanks for the great details,
> 
>   >>Then it gave me (no exception):
>   >>smb://testw2k3/temp
>   >
>   >
>   > This is wrong. There should be a trailing slash like 
> smb://testw2k3/temp/
> 
> in the code I found (smbfile.java):
> 
>       String unc;                      // Initially null; set by
> getUncPath; never ends with '/'
> 
> and (in getdfspath):
> 
>           return "smb:/" + (new String( dfsReferral.node + unc
> )).replace( '\\', '/' );
> 
> for me it is logical that the "/" is missing at the end, bug ?

Yeah, that's probably a bug. If the path is a directory a trailing slash should be added. But I'm not aware of any reason to actually use getDfsPath() for anything so it's not a terribly urgent bug.

> In more detail (is it ok that there is a
> "java.net.SocketTimeoutException: Receive timed out" ?):

Yes, it's fine. It looks like NetBIOS is not enabled on your network. After two tries to reverse resolve the name it gives up. You might want to change the resolveOrder property so you don't have to sit there for 6 seconds waiting for it to timeout though.

> (for the rest, see the ethereal dump attached)

Looks fine.

Mike

PS: Don't send packet captures to the mailing list. Send them directly to the people you want to see it.


More information about the jcifs mailing list