owncloud / client

🖥️ Desktop Syncing Client for ownCloud
GNU General Public License v2.0
1.4k stars 667 forks source link

Chinese filename not sync correctly over desktop client #1301

Closed zhiyuanlee closed 10 years ago

zhiyuanlee commented 10 years ago

Expected behaviour

Filename uploaded using sync client to be same on the web page.

Actual behaviour

Chinese character file saved into the sync folder, example "文件.doc", the file than automatically sync into OC Server, after 5 sec, it deleted itself and gave an error saying invalid character on the desktop client (version 1.4.2) Filename with chinese character changed after sync to OC and being renamed to "??.docx" on OC web. under filesystem, the filename become ".docx" without the ?? in the filesystem.

Steps to reproduce

  1. Save a document or file with chinese character "文件.docx"
  2. File sync and delete from desktop but available in OC Web
  3. file name showing correctly if upload from OC Web and sync down to desktop without issue.

    Server configuration

Operating system: Windows Server 2008 R2

Web server: IIS 7.5

Database: MySql5.6

PHP version: 5.3.27

ownCloud version: 6.0a (upgraded from 5.0.13, tested same before, upgraded to 6.0a, same result)

Storage backend: Local harddisk D drive

Client configuration

Client version: 1.4.2

Operating system: windows 7 Pro

OS language: English

Installation path of client: Default

Logs

Attach logs later, having problem with server now.

zhiyuanlee commented 10 years ago

Attached Logs on Server

Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:11:41+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:11:41+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:11:09+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:11:41+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:11:41+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:11:09+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:11:09+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:10:39+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:10:39+00:00 Debug core OC_Image->fixOrientation() Orientation: -1 2013-12-18T05:10:08+00:00 Debug core Generating preview for "/南昌.pdf" with "OC\Preview\Unknown" 2013-12-18T05:10:08+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:10:08+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:10:08+00:00 Debug OC\Files\Cache\Scanner !!! No reuse of etag for 'files_trashbin/files' !!! cache: Array ( [fileid] => 40611 [storage] => local::D:\owncloud\data/cloudadmin/ [path] => files_trashbin/files [parent] => 40610 [name] => files [mimetype] => httpd/unix-directory [mimepart] => httpd [size] => 3000939 [mtime] => 1387343341 [storage_mtime] => 1387343341 [encrypted] => [unencrypted_size] => 0 [etag] => 52b12dee18a23 ) data: Array ( [mimetype] => httpd/unix-directory [mtime] => 1387343395 [size] => -1 [etag] => 52b12e235c99c [storage_mtime] => 1387343395 ) 2013-12-18T05:09:55+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files_versions' is not readable !!! 2013-12-18T05:09:55+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files_versions' is not readable !!! 2013-12-18T05:09:55+00:00 Debug search_lucene adding /??.png 2013-12-18T05:09:50+00:00 Debug search_lucene found 0 hits 2013-12-18T05:09:50+00:00 Debug search_lucene searching hits for pk:81f4cf11befef671b35758be8e125aa4 2013-12-18T05:09:50+00:00 Debug core OC_Image->fixOrientation() Orientation: -1 2013-12-18T05:09:50+00:00 Debug core Generating preview for "//??.png" with "OC\Preview\Unknown" 2013-12-18T05:09:50+00:00 Debug core OC_Image->loadFromFile, couldn't load: D:\owncloud\data/cloudadmin/files/-0.png 2013-12-18T05:09:50+00:00 Debug core Generating preview for "//??.png" with "OC\Preview\Image" 2013-12-18T05:09:49+00:00 Debug OC\Files\Cache\Scanner !!! No reuse of etag for 'files/??.png' !!! cache: Array ( [fileid] => 40963 [storage] => local::D:\owncloud\data/cloudadmin/ [path] => files/??.png [parent] => 5 [name] => ??.png [mimetype] => image/png [mimepart] => image [size] => 79436 [mtime] => 1387343378 [storage_mtime] => 1387343378 [encrypted] => [unencrypted_size] => 0 [etag] => 52b12e124b0d8 ) data: Array ( [mimetype] => image/png [mtime] => 1385703887 [size] => 79436 [etag] => 52b12e124b806 [storage_mtime] => 1385703887 ) 2013-12-18T05:09:38+00:00 Warning PHP imagepng(): Unable to open 'D:\owncloud\data/cloudadmin/gallery/cloudadmin//??.png' for writing: Invalid argument at C:\inetpub\wwwroot\lib\private\image.php#208 2013-12-18T05:09:38+00:00 Debug core OC_Image->fixOrientation() Orientation: -1 2013-12-18T05:09:38+00:00 Debug core OC_Image->fixOrientation() No readable file path set. 2013-12-18T05:09:38+00:00 Debug core OC_Image::loadFromFileHandle(): Trying 2013-12-18T05:09:38+00:00 Debug search_lucene found 0 hits 2013-12-18T05:09:07+00:00 Debug search_lucene searching hits for pk:7b8660f1f240cabff9ab45aa1680efbe 2013-12-18T05:09:07+00:00 Debug OC\Files\Cache\Scanner !!! No reuse of etag for 'files_trashbin/files' !!! cache: Array ( [fileid] => 40611 [storage] => local::D:\owncloud\data/cloudadmin/ [path] => files_trashbin/files [parent] => 40610 [name] => files [mimetype] => httpd/unix-directory [mimepart] => httpd [size] => 1740013 [mtime] => 1387343184 [storage_mtime] => 1387343184 [encrypted] => [unencrypted_size] => 0 [etag] => 52b12d50d011d ) data: Array ( [mimetype] => httpd/unix-directory [mtime] => 1387343341 [size] => -1 [etag] => 52b12dee18a23 [storage_mtime] => 1387343341 ) 2013-12-18T05:09:02+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files_versions' is not readable !!! 2013-12-18T05:09:01+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files_versions' is not readable !!! 2013-12-18T05:09:01+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/calendar at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:08:59+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/lib/fileproxy/fileoperations.php at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:08:59+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/lib/log at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:08:54+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/files-texteditor/l10n/cs-cz.php at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:08:54+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/user-migrate/l10n at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:08:44+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/calendar/l10n/sk-sk.php at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:08:44+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/user-migrate at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:08:40+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/media/appinfo/database.xml at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:08:40+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/it1/files at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:08:17+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/contacts/lib/share/contact.php at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:08:17+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/files-videoviewer/mediaelement/src/compiler.jar at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:08:07+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/lib/connector/sabre at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:07:49+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/contacts/img/inactive-star.svg at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:07:49+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/_apps_media_css_music.css-982a234801f61f57bcf29b8cdb53aafc.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/_apps_gallery_css_styles.css-8258b13b63414d9fe2464cd0aced1cf9.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/_apps_files_sharing_css_public.css-3482819f9f821d45a507245bf7aaad58.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/_apps_files_pdfviewer_3rdparty_pdfjs_viewer.css-8851335d47cbb94b4dc5836d1377f1fd.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/_apps_files_css_files.css-ab393a52201bce59a7acf492c2051c80.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/_apps_contacts_css_jquery.Jcrop.css-0593804a3d4fad5ae8f8328230a728d7.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/_apps_contacts_css_jquery.combobox.css-79d5954b3f78afff4ac22d0791bf7653.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/_apps_contacts_css_font-awesome.css-ca4683edf8f7c2ec799c4343c649de93.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/_apps_contacts_css_contacts.css-8f58e97ddfe14994923eeb1e5ef535a4.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/_apps_calendar_css_style.css-b030b30efcf3c7d522c018f200148215.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/core.js-a5190f7a4ad5f57fe8b4a4dbab0f3709.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/core.js-224f1d202d5c44cbe5b0240c82373a3a.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP unlink(C:\Windows\Temp/owncloud-52173778836a4/core.css-64ab1d22479fd25ea00758740ba4888c.gz): Permission denied at C:\inetpub\wwwroot\lib\private\cache\fileglobal.php#99 2013-12-18T05:07:45+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/lib/connector at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:07:42+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/files-texteditor/js/aceeditor/mode-liquid.js at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:07:42+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/lib at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:07:03+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/shared/public-folder/shared.zip at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:07:03+00:00 Debug search_lucene file vanished, ignoring 2013-12-18T05:07:01+00:00 Debug OC\Files\Cache\Scanner !!! No reuse of etag for 'files/??.pdf' !!! cache: Array ( [fileid] => 40961 [storage] => local::D:\owncloud\data/cloudadmin/ [path] => files/??.pdf [parent] => 5 [name] => ??.pdf [mimetype] => application/pdf [mimepart] => application [size] => 1260926 [mtime] => 1387343206 [storage_mtime] => 1387343206 [encrypted] => [unencrypted_size] => 0 [etag] => 52b12d66cef8f ) data: Array ( [mimetype] => application/pdf [mtime] => 1387340797 [size] => 1260926 [etag] => 52b12d66cf7b6 [storage_mtime] => 1387340797 ) 2013-12-18T05:06:46+00:00 Debug OC\Files\Cache\Scanner !!! No reuse of etag for 'files_trashbin/files' !!! cache: Array ( [fileid] => 40611 [storage] => local::D:\owncloud\data/cloudadmin/ [path] => files_trashbin/files [parent] => 40610 [name] => files [mimetype] => httpd/unix-directory [mimepart] => httpd [size] => 479087 [mtime] => 1387343107 [storage_mtime] => 1387343107 [encrypted] => [unencrypted_size] => 0 [etag] => 52b12d0ddc13f ) data: Array ( [mimetype] => httpd/unix-directory [mtime] => 1387343184 [size] => -1 [etag] => 52b12d50d011d [storage_mtime] => 1387343184 ) 2013-12-18T05:06:24+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files_versions' is not readable !!! 2013-12-18T05:06:24+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files_versions' is not readable !!! 2013-12-18T05:06:24+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:24+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:24+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:20+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:20+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:20+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:20+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:19+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:19+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:18+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:18+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:18+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:18+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:17+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:17+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:17+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:17+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:16+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:16+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:15+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:15+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:14+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:14+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:13+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:13+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:13+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:13+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:12+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:12+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:08+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/??.pdf' is not readable !!! 2013-12-18T05:06:08+00:00 Debug core OC_Image->fixOrientation() Orientation: -1 2013-12-18T05:05:45+00:00 Debug core Generating preview for "/南昌.pdf" with "OC\Preview\Unknown" 2013-12-18T05:05:45+00:00 Debug search_lucene removing 0:/Public from index 2013-12-18T05:05:19+00:00 Debug search_lucene found 1 hits 2013-12-18T05:05:19+00:00 Debug search_lucene searching hits for pk:399230b26c26fe453c5697f7cd90463f 2013-12-18T05:05:19+00:00 Debug OC\Files\Cache\Scanner !!! No reuse of etag for 'files_trashbin/files' !!! cache: Array ( [fileid] => 40611 [storage] => local::D:\owncloud\data/cloudadmin/ [path] => files_trashbin/files [parent] => 40610 [name] => files [mimetype] => httpd/unix-directory [mimepart] => httpd [size] => 0 [mtime] => 1377743669 [storage_mtime] => 1377743669 [encrypted] => [unencrypted_size] => 0 [etag] => 52b1060682ef2 ) data: Array ( [mimetype] => httpd/unix-directory [mtime] => 1387343107 [size] => -1 [etag] => 52b12d0ddc13f [storage_mtime] => 1387343107 ) 2013-12-18T05:05:17+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files_versions' is not readable !!! 2013-12-18T05:05:07+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files_versions' is not readable !!! 2013-12-18T05:05:07+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files_versions' is not readable !!! 2013-12-18T05:05:07+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files_versions' is not readable !!! 2013-12-18T05:05:07+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files_versions' is not readable !!! 2013-12-18T05:05:07+00:00 Info files_trashbin remove "abc" fom trash bin because it is older than 30 2013-12-18T05:05:07+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files/files_trashbin/files/abc.d1377743669' is not readable !!! 2013-12-18T05:05:07+00:00 Debug OC\Files\Cache\Scanner !!! Path 'files_versions' is not readable !!! 2013-12-18T05:05:07+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/files-texteditor/l10n at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:04:08+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/contacts/l10n/de-de.php at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:04:08+00:00 Debug core OC_Image->fixOrientation() Orientation: -1 2013-12-18T05:04:07+00:00 Debug core OC_Image->fixOrientation() No readable file path set. 2013-12-18T05:04:07+00:00 Debug core OC_Image->loadFromBase64, couldn't load 2013-12-18T05:04:07+00:00 Debug core null 2013-12-18T05:04:07+00:00 Warning PHP json_encode(): Invalid UTF-8 sequence in argument at C:\inetpub\wwwroot\lib\private\log\owncloud.php#74 2013-12-18T05:04:07+00:00 Debug core OC_Image->fixOrientation() Orientation: -1 2013-12-18T05:04:07+00:00 Debug core OC_Image->fixOrientation() No readable file path set. 2013-12-18T05:04:07+00:00 Debug core OC_Image->loadFromBase64, couldn't load 2013-12-18T05:04:07+00:00 Debug core null 2013-12-18T05:04:07+00:00 Warning PHP json_encode(): Invalid UTF-8 sequence in argument at C:\inetpub\wwwroot\lib\private\log\owncloud.php#74 2013-12-18T05:04:07+00:00 Debug core redirectToDefaultPage: https://localhost:4343/index.php/apps/files 2013-12-18T05:04:06+00:00 Debug core OC_Image->fixOrientation() Orientation: -1 2013-12-18T05:04:06+00:00 Debug core OC_Image->fixOrientation() No readable file path set. 2013-12-18T05:04:06+00:00 Debug core OC_Image->loadFromBase64, couldn't load 2013-12-18T05:04:06+00:00 Debug core null 2013-12-18T05:04:06+00:00 Warning PHP json_encode(): Invalid UTF-8 sequence in argument at C:\inetpub\wwwroot\lib\private\log\owncloud.php#74 2013-12-18T05:04:06+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/files-texteditor/js at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:03:59+00:00 Warning PHP filemtime(): stat failed for D:\owncloud\data/user1/files/owncloud/apps/files-texteditor/js/aceeditor/mode-mushcode.js at C:\inetpub\wwwroot\lib\private\files\storage\mappedlocal.php#135 2013-12-18T05:03:59+00:00 Debug core OC_Image->fixOrientation() Orientation: -1 2013-12-18T05:03:48+00:00

zhiyuanlee commented 10 years ago

here are some information which i was doing the testing, the file name in the windows filesystem is not showing the file correctly. it has been changed to "-0.pdf", on the web OC, it is showing "??.pdf", on the client, it is asking if i would like to delete the file to resync. if yes, file will be deleted and the chinese character file will not sync to desktop and it is showing,

1:18:27 PM??.pdf ownCloud File contains invalid characters that can not be synced cross platform.
1:18:45 PM南昌.pdf ownCloud deleted 1.2 MB
1:17:57 PM南昌.pdf ownCloud Upload 1.2 MB
1:10:08 PM特别.png ownCloud deleted 78 kB
1:09:38 PM特别.png ownCloud Upload 78 kB

any help would be great.

smikulski commented 10 years ago

I'm new in ownCloud. I don't know if I could write somethere in different place (? pls link me somethere)

For the developers. If it possible to store files in storage on the server in different way than actually ? Last system I wrote keep filenames build from md5sum function. In database was written oryginal name and md5name. Md5FileName was written into the storage. No problems with creazzy filenames at all. All was in database. Maybe it will fix problems like this, problems with loing filenames etc Example: FileName: linux-3.2.27.tar.gz On the storage: 95920f0e8584c2004611b67be4e079e8.gz

Or smth like this. In additional the structure of the directory could be more efficiently. Like divide original directory to subirectory etc

Sorry if it sould be put somethre in diffent place.

Best Sylwester

zhiyuanlee commented 10 years ago

You we're right. My previous company wrote a dms solution with something similar as well. It was being renamed to least cheesy file name. Improve in security without having people to see the actual file name in the file server which I think it's not safe all you probably need is to have right file being link in the SQL to ensure it is not wrongly pointed.

smikulski commented 10 years ago

Yap. This is one of the things to improve in ownCloud in my opinion. Where can I put this suggestions ?

Best

zhiyuanlee commented 10 years ago

i think the reason why they do not want to have the cheesy file naming was to enable access for webdav support. i think changing it to least cheesy filename may not work for this case.

PVince81 commented 10 years ago

Have you tried with OC 6.0.2 and the sync client 1.5.3 ?

There might be encoding issues on Windows Server, see https://github.com/owncloud/core/issues/5650

PVince81 commented 10 years ago

Note: syncing with special characters works fine in OC 6.0.2 and sync client 1.5.3 with Apache

XueSheng-GIT commented 10 years ago

I'm trying to sync files with chinese characters (owncloud 6.0.3 on ubuntu 14.04, client 1.5.3 on ubuntu 13.10). When creating the file (e.g. "你好.txt", I get a "500 internal server error". Is this related to this bug report or something different?

zhiyuanlee commented 10 years ago

definitely is a windows iis issue... i tried on apache and it works perfectly ...

XueSheng-GIT commented 10 years ago

I'm not using windows iis. As written I'm using ubuntu 14.04. I did not change any locale configs (default apache2). Any special changes to apache config necessary?

PVince81 commented 10 years ago

@XueSheng-GIT can you raise a separate issue as you're running on Ubuntu ? Would be good to see your logs. Chinese file names works correctly for me with a Linux server (openSUSE 13.1) and Apache.

PVince81 commented 10 years ago

@XueSheng-GIT also to answer your comment: the default Apache settings should work, there is no locale setting needed. Are you using an UTF-8 LOCALE on the client side ? Let's discuss this in your report.

XueSheng-GIT commented 10 years ago

@PVince81 thanks for your quick reply. I've realized that mysql is the issue in my case. Half of the database was set to characterset "latin1_swedish_ci". The reason could be the conversion from sqlite to mysql (which I did already while running owncloud 5 with ubuntu 12.04). After converting the whole database to utf8, chinese characters do work as expected.

dragotin commented 10 years ago

Thanks for letting us know. Oh yes, mysql encodings are a tricky thing...