<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi JCIFS support,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Do you think there is any way to release a fix? Or we can do our own fork?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="line-height:11.0pt"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">_____</span><i><span style="font-size:9.0pt;font-family:Consolas;color:#999988"><o:p></o:p></span></i></p>
<p class="MsoNormal" style="line-height:11.0pt"><i><span style="font-size:9.0pt;font-family:Consolas;color:#999988">// Filename: signature.js</span></i><span style="font-size:9.0pt;font-family:Consolas;color:#333333"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.0pt"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">define([<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.0pt"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">  </span><span style="font-size:9.0pt;font-family:Consolas;color:#DD1144">'signature'</span><span style="font-size:9.0pt;font-family:Consolas;color:#333333"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.0pt"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">],
<b>function</b> (_) {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.0pt"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">  <b>return</b> {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.0pt"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">    name<b>:</b>    
</span><span style="font-size:9.0pt;font-family:Consolas;color:#DD1144">'Sean Xie'</span><span style="font-size:9.0pt;font-family:Consolas;color:#333333;background:white">,</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.0pt"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">    phone<b>:</b>   
</span><span style="font-size:9.0pt;font-family:Consolas;color:#DD1144">'240-386-6304'</span><span style="font-size:9.0pt;font-family:Consolas;color:#333333;background:white">,</span><span style="font-size:9.0pt;font-family:Consolas;color:#333333"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.0pt"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">    location<b>:</b>
</span><span style="font-size:9.0pt;font-family:Consolas;color:#DD1144">'4A/2'</span><span style="font-size:9.0pt;font-family:Consolas;color:#333333;background:white">,</span><span style="font-size:9.0pt;font-family:Consolas;color:#333333"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.0pt"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">  };<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.0pt"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">});</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>

<pre>
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