core icon indicating copy to clipboard operation
core copied to clipboard

OC 5.0.3 Non-ASCII chars on file rename->fail

Open Vodochnik opened this issue 13 years ago • 6 comments

Upload test.txt file. rename it to test_я.txt ('я' is russian char) now, on file system it's correct renamed, in web interface it still appears as test.txt (unable to download or delete).

Server: Debian

locale

LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=

I did not used Rescan since it's not standart app and is not a solution.

Best regards Vod

Vodochnik avatar Apr 10 '13 08:04 Vodochnik

Please see the contribution guidelines and provide more details ;)

@blizzz @icewind1991 @DeepDiver1975

BernhardPosselt avatar Apr 10 '13 12:04 BernhardPosselt

http://owncloud.org/dev/contribute, no guidelines for bugreport :-) But i'll try :))

Expected behaviour

Rename file from test.txt to test_я.txt without errors.

Actual behaviour

File is renamed in file system but still appears in web interface with old name "test.txt" and cannot be deleted or renamed.

Steps to reproduce

Install 5.0.3
upload file (can be empty) with filename test.txt
rename file, just add "_я", so test.txt beсomes test_я.txt
file is not renamed, now try to delete it. Check filesystem, file is renamed.

Server configuration

Operating system: Debian GNU/Linux 6.0

Web server: apache2-mpm-itk 2.2.16-6+squeeze11

Database: MySQL

PHP version: libapache2-mod-php5 5.3.3-7+squeeze15

ownCloud version: 5.0.3

Client configuration

Browser: Firefox 20

Operating system: WinXP

Logs

Web server error log n/a ownCloud log (data/owncloud.log) {"app":"PHP","message":"filesize(): stat failed for /data/admin/files/test.txt at /public_html/lib/files/storage/local.php#74","level":2,"time":1365604879} {"app":"PHP","message":"filesize(): stat failed for /data/admin/files/test.txt at /public_html/lib/files/storage/local.php#74","level":2,"time":1365604879} {"app":"PHP","message":"copy(/data/admin/files/test.txt): failed to open stream: No such file or directory at /public_html/lib/files/storage/local.php#140","level":2,"time":1365604879} {"app":"PHP","message":"filemtime(): stat failed for /data/admin/files/test.txt at /public_html/lib/files/storage/local.php#92","level":2,"time":1365604879} {"app":"PHP","message":"Undefined variable: collectionTypes at /public_html/lib/public/share.php#918","level":2,"time":1365604879}

Vodochnik avatar Apr 10 '13 14:04 Vodochnik

Related to https://github.com/owncloud/core/issues/2795 ?

VicDeo avatar Apr 10 '13 15:04 VicDeo

Thanks, i've seen this issue but was thinking the prob is cyrillic chars related.

Now, i have tried to create folder and to rename it (test->test1). Same behavior.

Vodochnik avatar Apr 10 '13 15:04 Vodochnik

seems to be duplicate of #2170, such serious error since v5.0? O_o

Vodochnik avatar Apr 11 '13 17:04 Vodochnik

Seems to be fixed in 5.0.4

Vodochnik avatar Apr 15 '13 14:04 Vodochnik