[jcifs] A bug when looping through IPs

Xie, Sean Sean.Xie at finra.org
Thu Feb 20 06:43:42 MST 2014


Hi JCIFS support,

We are using latest jcifs lib for our internal app and there was randomly an error "A duplicate name ..." happened. After tracing into the code, I found there is a private method doConnect() in SmbFile class. It is called by a loop if there are multiple addresses obtained from the name.  And at SmbFile.java line 894 - 899, the code is checking if tree is null, if not it will re-use the tree.session, so every loop it is using the first address because the tree.session is alive. Therefore, in the case if the first one from list of the addresses is failed, the loop will not get the next address.

Do you think there is any way to release a fix? Or we can do our own fork?

Thanks.


_____
// Filename: signature.js
define([
  'signature'
], function (_) {
  return {
    name:     'Sean Xie',
    phone:    '240-386-6304',
    location: '4A/2',
  };
});



Confidentiality Notice:  This email, including attachments, may include non-public, proprietary, confidential or legally privileged information.  If you are not an intended recipient or an authorized agent of an intended recipient, you are hereby notified that any dissemination, distribution or copying of the information contained in or transmitted with this e-mail is unauthorized and strictly prohibited.  If you have received this email in error, please notify the sender by replying to this message and permanently delete this e-mail, its attachments, and any copies of it immediately.  You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20140220/26b2c58d/attachment-0001.html>


More information about the jCIFS mailing list