[jcifs] SmbFile.renameTo and ssnLimit=1

Michael B Allen mba2000 at ioplex.com
Sun Nov 12 04:05:25 GMT 2006


Patch applied.

On Tue, 31 Oct 2006 21:52:09 -0500
Michael B Allen <mba2000 at ioplex.com> wrote:

> On Fri, 27 Oct 2006 12:04:20 -0400
> Stéphane Bond <stephane.bond at crim.ca> wrote:
> 
> > We use jcifs with "jcifs.smb.client.ssnLimit=1" to avoid multithreading 
> > problems.
> > 
> > As discussed in a previous message, using this option broke the 
> > SmbFile.renameTo method.
> > 
> > http://lists.samba.org/archive/jcifs/2006-May/006129.html
> > 
> > Does somebody have a patch to fix that?
> 
> You could try just adding an equals method to src/jcifs/smb/SmbTree.java
> something like:
> 
> boolean equals(Object obj) {
> 	if (obj instanceof SmbTree) {
> 		SmbTree tree = (SmbTree)obj;
> 		return matches(tree.share, tree.service);
> 	}
> 	return false;
> }
> 
> and then change the if( tree != dest.tree ) { to if(
> !tree.equals(dest.tree) ) { in the code mentioned in the said message.
> 
> If it works, let us know.
> 
> Otherwise, it's still on The List (along with about 50 other things).
> 
> Mike
> 
> -- 
> Michael B Allen
> PHP Active Directory SSO
> http://www.ioplex.com/
> 


-- 
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/


More information about the jcifs mailing list