[jcifs] CIFS oddities: Novell/jCIFS/smbclient

Christopher R. Hertel crh at ubiqx.mn.org
Fri Dec 27 12:22:19 EST 2002


On Thu, Dec 26, 2002 at 06:13:48PM -0500, Michael B. Allen wrote:
:
> The below URLs need a trailing slash.

Tried both ways, no difference in either case.  The first one causes the 
exception with or without the slash.  The second lists files and 
directories...with or without.

Against a Samba server, I can perform the same types of actions and--once 
again--the trailing slash doesn't make any practical difference.  Against 
Samba, however, the general form

  java List smb://userinfo@hostport/share[/]

works just fine.

I'll have to look at the RFCs again.  I'm not sure what they have to say 
about the placement of trailing slashes.  Hmmm...

Chris -)-----

> > $ java List smb://domain\;crh:p%40ssw0rd@server/USERS
> > Exception in thread "main" jcifs.smb.SmbException: File not found
> >         at jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:630)
> >         at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:78)
> >         at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:66)
> >         at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:443)
> >         at jcifs.smb.SmbFile.list(SmbFile.java:1129)
> >         at jcifs.smb.SmbFile.list(SmbFile.java:1117)
> >         at List.main(List.java:31)
> > 
> > $ java List smb://domain\;crh:p%40ssw0rd@server/USERS/CRH
> >  Created_on_MAC foo.txt Novell_NetShareEnum.cap.gz resource.frk
> > 4 files in 376ms

-- 
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org



More information about the jcifs mailing list