Re: Jcifs bug

Michael B Allen <[email protected]> Sun, 11 Jan 2015 22:48:33 -0500
Newsgroups gmane.network.samba.java
Message-ID <CAGMFw4j7bs-srpU1ARdP=ok_d73UebPOM1wuPrUfRjNH6ZXgdg@mail.gmail.com>
--089e013d06e86526a9050c6c61a5
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Tue, Dec 9, 2014 at 10:40 PM, <[email protected]> wrote:

>  Dear jcifs team:
>
> I use the jcifs.jar on my Android app. And I have found a bug. When the
> device=E2=80=99 language is Turkish,it will throw a exception.
>
>
>
> DcerpcBinding.java
>
> void setOption(String key, Object val) throws DcerpcException {
>
> =E2=80=A6..
>
> endpoint =3D val.toString().toLowerCase();//Here will cause a error. The
> character =E2=80=9CI=E2=80=9D of String =E2=80=9CPIPE=E2=80=9D will chang=
e to be a messy code And throw a
> exception.And this will cause the app can not get share folders.
>

Hi Theodore,

When reporting a problem that triggers an exception, it is customary to
post the full stack trace of the exception. Please post the stack trace.

However, I don't see whay the line in question would trigger any error. The
lowercase character for ASCII letter 'I' is always the ASCII letter 'i'
regardless of what locale the code runs under.

Mike

--089e013d06e86526a9050c6c61a5
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Tue, Dec 9, 2014 at 10:40 PM,  <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
m</a>&gt;</span> wrote:<br><div class=3D"gmail_extra"><div class=3D"gmail_q=
uote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex">





<div link=3D"blue" vlink=3D"purple" lang=3D"ZH-CN">
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Dear jcifs team:<u></u><u></u><=
/span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">I use the jcifs.jar on my Andro=
id app. And I have found a bug. When the device=E2=80=99 language is Turkis=
h,it will throw a exception.<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">DcerpcBinding.java<u></u><u></u=
></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">void setOption(String key, Obje=
ct val) throws DcerpcException {<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">=E2=80=A6..<u></u><u></u></span=
></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">endpoint =3D val.toString().toL=
owerCase();//Here will cause a error. The character =E2=80=9CI=E2=80=9D of =
String =E2=80=9CPIPE=E2=80=9D will change to be a messy code And throw a ex=
ception.And this will cause the app can not get share folders.</span></p></=
div></div></blockquote><div><br></div><div>Hi Theodore,<br><br></div><div>W=
hen reporting a problem that triggers an exception, it is customary to post=
 the full stack trace of the exception. Please post the stack trace.<br><br=
>However, I don&#39;t see whay the line in question would trigger any error=
. The lowercase character for ASCII letter &#39;I&#39; is always the ASCII =
letter &#39;i&#39; regardless of what locale the code runs under.<br><br>Mi=
ke<br></div></div></div></div>

--089e013d06e86526a9050c6c61a5--