<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 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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-AU link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>wanted to followup with an update on an issue i had found in
January. hopefully, this will help isolate the problem<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoPlainText>I'm using jcifs 1.3.14<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>The problem happens whenever a folder name starts with a
' '. When smbfolder.listFiles(SmbFileFilter) is called on a folder
containing subfolders with leading spaces, the SmbFile[] list returned has the
leading space stripped off.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>e.g.<o:p></o:p></p>
<p class=MsoPlainText>actual > smb://mysrv/user/c/
foldername/<o:p></o:p></p>
<p class=MsoPlainText>returned > smb://mysrv/user/c/foldername/<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>I traced it down through the send stack <o:p></o:p></p>
<p class=MsoPlainText>(SmbFile.send(ServerMessageBlock request,
ServerMessageBlock response) <o:p></o:p></p>
<p class=MsoPlainText>-> SmbTransport.send(request, response)<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>beyond that, i think it may be caused by a String.trim()
further on in this code<o:p></o:p></p>
<p class=MsoNormal>(Handler.java > getDefaultStreamHandler : 114)<o:p></o:p></p>
<p class=MsoNormal> String provider =
tokenizer.nextToken().trim(); // Does this need to be trimmed?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>other files that have a call to trim, but i'm not sure are
relevant to this<o:p></o:p></p>
<p class=MsoNormal> src/jcifs/dcerpc/Dcerpc/DcerpcHandle >
parseBinding : 72,82,85<o:p></o:p></p>
<p class=MsoNormal> src/jcifs/UniAddress > constructor : 95<o:p></o:p></p>
<p class=MsoNormal> src/jcifs/http/NtlmHttpURLConnection >
attemptNegotiation : 511,520<o:p></o:p></p>
<p class=MsoNormal> src/jcifs/netbios/NameServiceClient >
constructor : 107<o:p></o:p></p>
<p class=MsoNormal> src/jcifs/netbios/Lmhosts > populate :
86,109<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>