Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create or upload a new file or folder when parent directory contains chinese characters #3499

Closed
DruidCode opened this issue May 26, 2013 · 8 comments
Labels

Comments

@DruidCode
Copy link

Actual behaviour

just can't create a new file or folder when parent directory contains chinese characters

Steps to reproduce

  1. create a new folder contains chinese characters.example: 中文 . At the moment there is a new folder names 51a1ce6e6293f
  2. but when you try to create or upload anything in the second-level directory, it is failed
  3. In the table oc_file_map, the physic_path is 'G:\soft\data/admin/files/51a1d4997291f/51a1d49972933'
  4. but the true path should be 'G:\soft\data/admin/files/51a1ce6e6293f'...
  5. it seems the path is wrong.

Server configuration

Operating system: windows server 2003 service pack 1

Web server: apache 2.2.22 mod_fcgid 2.3.6

Database: mysql 5.1.57

PHP version: php 5.3.5

ownCloud version: 5.0.6

Client configuration

Browser: Firefox

Operating system: windows 7

Logs

ownCloud log (data/owncloud.log)

{"app":"PHP","message":"filemtime(): stat failed for G:\soft\data/admin/files/51a1d4997291f/51a1d49972933 at G:\soft\www\owncloud\lib\files\storage\mappedlocal.php#113","level":2,"time":1369560290}
{"app":"hook","message":"error while running hook (\OC\Files\Cache\Updater::writeHook): SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'mtime' at row 1","level":3,"time":1369560290}

Browser log

{"data":{"message":"Error when creating the folder"},"status":"error"}

@DruidCode
Copy link
Author

owncloud 4.5.11
the php log

[26-May-2013 18:30:04] PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xE5\x94' for column 'name' at row 1' in G:\soft\www\owncloud\lib\db.php:745
Stack trace:
#0 G:\soft\www\owncloud\lib\db.php(745): PDOStatement->execute(Array)
#1 G:\soft\www\owncloud\lib\filecache.php(113): PDOStatementWrapper->execute(Array)
#2 G:\soft\www\owncloud\lib\filecache.php(467): OC_FileCache::put('/??', Array, false)
#3 G:\soft\www\owncloud\lib\filecache.php(411): OC_FileCache::scanFile('/??', false)
#4 G:\soft\www\owncloud\lib\filecache\update.php(171): OC_FileCache::scan('/??', NULL, 0, false)
#5 G:\soft\www\owncloud\lib\filecache\update.php(117): OC_FileCache_Update::update('/??')
#6 [internal function]: OC_FileCache_Update::fileSystemWatcherWrite(Array)
#7 G:\soft\www\owncloud\lib\hook.php(62): call_user_func(Array, Array)
#8 G:\soft\www\owncloud\lib\filecache\update.php(104): OC_Hook::emit('OC_Filesystem', 'post_write', Array)
#9 G:\soft\www\owncloud\lib\filecache\update.php(89): OC_F in G:\soft\www\owncloud\lib\db.php on line 745

@jancborchardt
Copy link
Member

I’m closing this issue because it has been inactive for a few months. This probably means that the issue is not reproducible or it has been fixed in a newer version.

Please reopen if you still encounter this issue with the latest stable version (currently ownCloud 5.0.9) and then please use the issue template. You an also contribute directly by providing a patch – see the developer manual. :)

Thank you!

@haobug
Copy link

haobug commented Oct 20, 2014

it can be reproduced on latest server(7.02) + latest client(1.6.2) on a windows 7 pc
with wamp 2.5(apache 2.49+php5.5.12+sqlite db).

@nickvergessen
Copy link
Contributor

Fixed in oC 8.0 with #10619
Issue is duplicate of #6722

@woeoio
Copy link

woeoio commented Feb 16, 2017

你好,请问你的中文问题解决了吗

@woeoio
Copy link

woeoio commented Feb 16, 2017

@ @ @ @DruidCode 请问问题解决了吗

@DruidCode
Copy link
Author

@woeoio 3年前的了。。。忘记了。

@lock
Copy link

lock bot commented Aug 3, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants