[jcifs] CIFS oddities: Novell/jCIFS/smbclient

Michael B. Allen miallen at eskimo.com
Fri Dec 27 10:13:48 EST 2002

On Thu, 26 Dec 2002 16:52:53 -0600
"Christopher R. Hertel" <crh at ubiqx.mn.org> wrote:

> Jim
> I'm doing some testing of jCIFS 0.7.0b11 against a Novell CIFS server and
> I've found a few oddities.  Chief among them is that jCIFS has no problem
> at all getting a good NetShareEnum response from the Novell server, but
> Samba's smbclient does.  The response from the Novell server is filled
> with nul bytes.  The smbclient tool is in wide use, and doesn't seem to
> have a problem (as far as I know) against any other server.  If I get
> time, I will look into this some more.  My guess is that there's a
> subtlety here that is making the two products incompatible.
> Another oddity is that I can use the jCIFS 'List' utility to list the 
> shares, and list the contents of a file or subdirectory, but I cannot list 
> the root of the share:
> $ java List smb://domain\;crh:p%40ssw0rd@server/
> 4 files in 342ms

The below URLs need a trailing slash.

> $ 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
> It would be nice to be able to work out these issues, to ensure that the
> Novell CIFS server is compatible with as many clients as possible.  I have 
> some captures.  I just haven't had time to look at them yet.
> Chris -)-----
> -- 
> 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

A  program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes  the  potential  for it to be applied to tasks that are
conceptually  similar and, more important, to tasks that have not
yet been conceived. 

More information about the jcifs mailing list