[jcifs] DFS Links and Timeouts
Martin D. Pedersen
mdp at visanti.com
Mon Dec 19 11:38:03 GMT 2005
> -----Original Message-----
> From: Michael B Allen [mailto:mba2000 at ioplex.com]
> Sent: 17. december 2005 22:47
> To: Martin D. Pedersen
> Cc: jcifs at lists.samba.org
> Subject: Re: [jcifs] DFS Links and Timeouts
>
> On Fri, 16 Dec 2005 15:38:30 +0100
> "Martin D. Pedersen" <mdp at visanti.com> wrote:
>
> > But jcifs somehow timeouts when accessing files through dfs links.
> > If i traverse the files directly from //secondary/data there is no
> > problem!
>
> I *think* I have this fixed. Try the attached patch and let
> us know how it goes for you.
The patch fixes the (originally) problem, but there is still another
problem.
In my first test code I only used SmbFile.canRead(), this now works
fine.
If I extend the test code to also call SmbFile.length() it fails again,
but this time with an Exception.
Exception in thread "main" jcifs.smb.SmbException: The system cannot
find the path specified.
at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:503)
at jcifs.smb.SmbTransport.send(SmbTransport.java:580)
at jcifs.smb.SmbSession.send(SmbSession.java:229)
at jcifs.smb.SmbTree.send(SmbTree.java:102)
at jcifs.smb.SmbFile.send(SmbFile.java:688)
at jcifs.smb.SmbFile.queryPath(SmbFile.java:1196)
at jcifs.smb.SmbFile.length(SmbFile.java:2146)
at
visanti.crawler.samba.SmbTimeout.jcifsScan(SmbTimeout.java:19)
at visanti.crawler.samba.SmbTimeout.main(SmbTimeout.java:35)
If I only call SmbFile.length() this Exception doesn't occur!
I guess there are more path rebuilds to be found?
-- Martin
More information about the jcifs
mailing list