Page 1 of 1

A little bug of "import documents"

PostPosted:Tue Apr 29, 2008 2:22 am
by thuper
Hi

I just tested the \"import documents\" function. It seems like when I upload a archive file, if I select \"import documents\".Then all files in that archive will be extracted to server. Right?

It\'s a really exciting function.

But there is a little bug. When the files in that archive have non-latin names, like chinese names. After extraction, these files\'names become \"???\".

Hope you fix this.

Thanks.

Re:A little bug of "import documents"

PostPosted:Tue Apr 29, 2008 5:40 am
by jllort
On which OS are you testing it ?

Re:A little bug of "import documents"

PostPosted:Tue Apr 29, 2008 6:44 am
by thuper
I just tested in different OSs. It seems zip files made by different programs have different problems.

1). For zip file made by \"zip -r\" command in debian linux.

when import this file in an IE7 in windowsXP or in a firefox in debian linux. Chinese named files\'names become ???.

When open this file use 7zip in windowsXP, the chinese names are become chaotic charaters.

2). For zip file made by 7zip in windowsXP.

Both in an IE7 in windowsXP or in a firefox in debian linux. OpenKM give an error:
Exception: java.lang.IllegalArgumentException

And, when unzip this file in linux, the chines names also become chaotic charaters.

It\'s apparently a file-name-encoding problem. I found that in OpenKM I can correctly upload and download files with no-latin names in different browsers in different systems. I tested several DMSs, and OpenKM is the only on can do this. So I think you can solve this importing problem.

thanks.

Re:A little bug of "import documents"

PostPosted:Tue Apr 29, 2008 6:51 am
by thuper
Here I uploaded the zip files I made in linux: [file name=linux_zip.zip size=7050]http://www.openkm.com/images/fbfiles/fi ... ux_zip.zip[/file]

Re:A little bug of "import documents"

PostPosted:Tue Apr 29, 2008 6:52 am
by thuper
And the zip file I made in Windows by 7zip: [file name=windows_7zip.zip size=6649]http://www.openkm.com/images/fbfiles/fi ... s_7zip.zip[/file]

Re:A little bug of "import documents"

PostPosted:Tue Apr 29, 2008 9:31 pm
by pavila
When I run OpenKM in Ubuntu Linux, I can import linux_zip.zip without problems.