[jcifs] 答复: Jcifs bug

Theodore_Hu at asus.com Theodore_Hu at asus.com
Mon Jan 12 00:00:46 MST 2015

Dear Michael:
You can try it like this:

1)       Open an Android app which use jcifs。

2)       Change the language to Turkish on Device’s setting page.

3)       Try to get pc’s share folder and you will see that you can’t get share folder/file.If you change to other language ,it will work.

I have debug the source code of jcifs,And I found the error :
endpoint = val.toString().toLowerCase();//Here will cause a error. The character “I” of String “PIPE” will change to be a messy code And throw a exception when device’s launage is Turkish.

4)       You can also try app which include jcifs lib,like “RootExplorer” or “ES File Explorer”.

Thank you for your time
Theodore Hu(胡晓岽)
ASUS Technology Hangzhou software R & D
TEL: (86571) 28972525 ext 51072
Mobile: +86 - 18758185670
E-mail: theodore_hu at asus.com<mailto:Sun1_Li at asus.com>

发件人: Michael B Allen [mailto:ioplex at gmail.com]
发送时间: 2015年1月12日 11:49
收件人: Theodore Hu(胡曉崬 _華碩杭州)
抄送: jcifs at lists.samba.org
主题: Re: [jcifs] Jcifs bug

On Tue, Dec 9, 2014 at 10:40 PM, <Theodore_Hu at asus.com<mailto:Theodore_Hu at asus.com>> wrote:
Dear jcifs team:
I use the jcifs.jar on my Android app. And I have found a bug. When the device’ language is Turkish,it will throw a exception.

void setOption(String key, Object val) throws DcerpcException {
endpoint = val.toString().toLowerCase();//Here will cause a error. The character “I” of String “PIPE” will change 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.


This email and any attachments to it contain confidential information and are intended solely for the use of the individual to whom it 
is addressed.If you are not the intended recipient or receive it accidentally, please immediately notify the sender by e-mail and delete 
the message and any attachments from your computer system, and destroy all hard copies. If any, please be advised that any unauthorized 
disclosure, copying, distribution or any action taken or omitted in reliance on this, is illegal and prohibited. Furthermore, any views 
or opinions expressed are solely those of the author and do not represent those of ASUSTeK. Thank you for your cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20150112/d8f42cb6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 868 bytes
Desc: image001.gif
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20150112/d8f42cb6/attachment-0001.gif>

More information about the jCIFS mailing list