[jcifs] Problem connecting to NetWare

Tony Thompson tony.thompson at stone-ware.com
Sun May 19 11:59:47 EST 2002


Mike,

Thanks for the fix.  It worked great.

I ran FileOps (with the new JAR) and the results are attached.  It looks like a couple of things failed (I guess some were supposed to).  The file length issue seems a little strange because the actual length of the file is 364.  If you need me to get you any other information, I would be happy to.

Thanks again,
Tony

O:\jcifs_0.6.2\examples>java FileOps smb://admin:testing@192.168.0.1/Share1
okay - delete smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir failed: Fil
e not found
okay - delete smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir successfull

okay - smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir does not exist
okay - mkdir smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir successfull
okay - smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir exists
okay - mkdir smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir failed: File
 exists
okay - created file smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/foo.t
xt
okay - canRead smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/foo.txt su
ccessfull
okay - canWrite smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/foo.txt s
uccessfull
Please change the file smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/fo
o.txt to read-only (hit return to continue)
^Z
okay - canWrite smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/foo.txt f
ailed
okay - correctly failed to open smb://admin:testing@192.168.0.1/Share1/JcifsTest
OpsDir/foo.txt for writing: Access denied
okay - renameTo smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/foo.txt t
o smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/bar.txt successfull eve
n with read-only
Please turn on the hidden attribute for smb://admin:testing@192.168.0.1/Share1/J
cifsTestOpsDir/foo.txt (hit return to continue)
^Z
okay - isHidden smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/foo.txt i
s hidden
okay - canRead smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/foo.txt wa
s successfull with read-only and hidden both on
okay - canWrite smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/foo.txt f
ailed as it should being that read-only is set
okay - isDirectory smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/foo.tx
t is not a directory
okay - isDirectory smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir is a d
irectory
okay - isFile smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/foo.txt is
a file
okay - isFile smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir is not a fi
le
okay - delete smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/foo.txt fai
led because it is read-only: Access denied
Flipp off both read-only and hidden flags for smb://admin:testing@192.168.0.1/Sh
are1/JcifsTestOpsDir/foo.txt (hit return to continue)
^Z
fail - length smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir/foo.txt is
wrong: 364
okay - delete smb://admin:testing@192.168.0.1/Share1/JcifsDeleteMe probably wasn
't there: File not found
okay - renameTo smb://admin:testing@192.168.0.1/Share1/JcifsTestOpsDir successfu
ll even though it is a directory
okay - delete smb://admin:testing@192.168.0.1/Share1/JcifsDeleteMe successfull

>>> "Michael B. Allen" <miallen at eskimo.com> 05/18/02 07:32PM >>>
I have fixed this problem and added the Node Status fix from the other day.
I  cannot access the auditorymodels.org site at the moment but I'll put the
jar here: 

  http://www.eskimo.com/~miallen/jcifs/jcifs-0.6.4.jar 

When the site's back up and everything is synced I'll do a real release.

Tony,

Please  let me know if this jar works for you. I would appreciate it if you
could  run  the FileOps.java example against your Netware server and let me
know how that goes too. If you have time.

Thanks,
Mike


On Sat, 18 May 2002 09:27:39 -0500
"Tony Thompson" <tony.thompson at stone-ware.com> wrote:

>  I  am attempting to connect to CIFS on a NetWare server and I am getting
"File  not  found"  exceptions.  I  can connect to CIFS on NetWare using my
Windows client and it works fine so, I don't think that it is a setup issue
in  my  environment.  I  used  the  SmbShell example application and I have
attached full debug of my session. Any advice would be appreciated. 

<snip>
> Share1> ls
> May 18 09:26:29.041 - smb find warning
>  find with path=\
> May 18 09:26:29.041 - smb sent
> Trans2FindFirst2[command=SMB_COM_TRANSACTION2,received=false,errorCode=0x0000000
> 0,flags=0x0018,flags2=0x0001,tid=14,pid=40042,uid=28,mid=7,wordCount=15,byteCoun
> t=17,totalParameterCount=16,totalDataCount=0,maxParameterCount=10,maxDataCount=1
> 200,maxSetupCount=0,flags=0x00,timeout=0,parameterCount=16,parameterOffset=66,pa
> rameterDisplacement=0,dataCount=0,dataOffset=82,dataDisplacement=0,setupCount=1,
> pad=1,pad1=0,searchAttributes=0x16,searchCount=15,flags=0x00,informationLevel=0x
> 104,searchStorageType=0,filename=\\*]

This is the problem. The filename parameter should be '\*' not
'\\*'. Fixed in jcifs-0.6.4.

> 
> May 18 09:26:29.051 - smb sent
> 00000: FF 53 4D 42 32 00 00 00 00 18 01 00 00 00 00 00  | SMB2...........|
> 00010: 00 00 00 00 00 00 00 00 0E 00 6A 9C 1C 00 07 00  |..........j.....|
> 00020: 0F 10 00 00 00 0A 00 B0 04 00 00 00 00 00 00 00  |....... ........|
> 00030: 00 00 00 10 00 42 00 00 00 00 00 01 00 01 00 11  |.....B..........|
> 00040: 00 00 16 00 0F 00 00 00 04 01 00 00 00 00 5C 5C  |..............\\|
> 00050: 2A 00                                            |*.              |

-- 
May The Source be with you.





More information about the jcifs mailing list