Bug 7872 - Problems with shares on Turkish PC (JCIFS 1.3.15)
Problems with shares on Turkish PC (JCIFS 1.3.15)
Status: NEW
Product: jCIFS
Classification: Unclassified
Component: core
1.2
x86 Windows XP
: P3 critical
: ---
Assigned To: Michael B. Allen
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-16 05:44 UTC by Andi
Modified: 2010-12-20 03:41 UTC (History)
0 users

See Also:


Attachments
The corrected class file (8.24 KB, application/octet-stream)
2010-12-16 05:46 UTC, Andi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andi 2010-12-16 05:44:15 UTC
With version 1.3.15 of JCIFS it isn't possible to download a file via SMB from a Turkish PC if the sharename contains an "i".

Reason for the problem is the used uppercase function in the constructor of class SmbTree. Because no location is set, the location settings of the client PC are taken. As a result on a turkish PC shares with a containing "i", e.g. masterdisk, can't be accessed.

Please fix the problem by just change following line:

class SmbTree {
...
  SmbTree( SmbSession session, String share, String service ) {
    ...
    this.share = share.toUpperCase(Locale.ENGLISH);
    ...
  }
...
}
Comment 1 Andi 2010-12-16 05:46:40 UTC
Created attachment 6137 [details]
The corrected class file