cancel
Showing results for 
Search instead for 
Did you mean: 

International file names in CIFS

tsirkin
Champ in-the-making
Champ in-the-making
Did anybody looked into saving file with international characters on the cifs ?
If i copy a file with international characters (Hebrew) on the shared drive
I am getting file name consisting from ??? and i can get (open,copy etc ) to the file anymore.
Alafresco 3.* ,both Enterprise & Community
Thanks
1 REPLY 1

tsirkin
Champ in-the-making
Champ in-the-making
OK,I have invested some time looking into it.
Namely : I have compiled the cmd version of jlan and run it.
Now while using the default jlan config that saves the files on the disk - everything works just fine.
But once i try to make it use a db for this - the names of International files are broken.
Here are the steps I have done:
[1] check out the source.
[2] cd HEAD/root/projects/alfresco-jlan/
[3] ant createJar
[4] Run the runsrv.sh
In this case the after mapping the Network Drive and coping the file the file with Hebrew name show just fine.

Now doing this:
[1] ant createJarDB,and coping the mysql driver to the directory.
[2] configuring jlanConfig.xml this way:
<shares>
     <diskshare name="JLAN" comment="MySQL virtual filesystem">
     <driver>
       <class>org.alfresco.jlan.server.filesys.db.DBDiskDriver</class>
       <CacheTime>300</CacheTime>
       <DatabaseInterface>
         <class>org.alfresco.jlan.server.filesys.db.mysql.MySQLDBInterface</class>
         <DSN>jdbc:mysql://localhost/jlan</DSN>
           <Username>whatever</Username>
           <Password>whatever</Password>
         <ConnectionPool>10:20</ConnectionPool>
       </DatabaseInterface>
       <FileLoader>
         <class>org.alfresco.jlan.server.filesys.db.DBFileLoader</class>
         <ThreadPoolSize>6:2</ThreadPoolSize>
         <TempDirectory>/tmp</TempDirectory>
         <MaximumFilesPerDirectory>1000</MaximumFilesPerDirectory>
         <SmallFileSize>100K</SmallFileSize>
         <FilesPerJar>500</FilesPerJar>
         <SizePerJar>1000K</SizePerJar>
         <JarCompressionLevel>9</JarCompressionLevel>
       </FileLoader>
     </driver>
   </diskshare>
 
  </shares>

[3] The server works but an attempt of putting a file with Hebrew name ends with ??? as a file name .
I have tried to use this as a connection string but the server crashes in that case:
jdbc:mysql://localhost/jlan?useUnicode=true

Now,I have even tried to debug the project but this seems to be a little hard to setup due to how the
eclipse project of jlan is organized .
Clearly the problem is in how the alfresco/jlan saves the files data in db - not the jlan server itself.
Any Guru please?
Thanks
Evgeny