client icon indicating copy to clipboard operation
client copied to clipboard

Sync path/file is limited to 260 character

Open MTRichards opened this issue 13 years ago • 7 comments

Transferred from bug genie: http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-1470

Description: I have some long path and files names in the share. There seams to be a limit in characters until which the client is able to sync. It looks like the GET command supports only max 260 characters. Found in the access.log of the apache2. All characters above 260 will be cut and it will result in an HTTP 404.

Server: ownCloud Version 4.0.6 with apache2 on Ubuntu 12.04 Client: ownCloud 1.0.3 on Win XP

Reproduction steps:

  • create a folder tree with long file names (more than 20 character for a folder) - create a long file name - the filename in the complete folder tree will be cut after 260 characters

The GET command will cut the file name after 260 characters. Therefore it will result in an HTTP 404 GET http://IPAdressOwnCloud/ownCloud/files/webdav.php/VeryVeryVeryVeryVeryLongPathToAFileInTheShare/VeryVeryVeryVeryVeryLongPathToAFileInTheShare/VeryVeryVeryVeryVeryLongPathToAFileInTheShare/VeryVeryVeryVeryVeryLongPathToAFileInTheShare/ThisIsALongFileNameInTheLongPath.txt

GET http://IPAdressOwnCloud/ownCloud/files/webdav.php/VeryVeryVeryVeryVeryLongPathToAFileInTheShare/VeryVeryVeryVeryVeryLongPathToAFileInTheShare/VeryVeryVeryVeryVeryLongPathToAFileInTheShare/VeryVeryVeryVeryVeryLongPathToAFileInTheShare/ThisIsALongFileNameInTheL <- cut after 260 character. The client is not be able to sync this file. HTTP 404 in access.log of the apache2 webserver.

MTRichards avatar Dec 12 '12 23:12 MTRichards

#60 is related.

danimo avatar Dec 13 '12 22:12 danimo

Ah, this bug is probably the reason for the sync problems I am having.

I have very have long file/path names because I use encfs to encrypt the files I sync, and the encrypted file/path names are several times the length of the unencrypted names.

Not being able to sync those encrypted files has been keeping me from using owncloud the way I would like to, so fixing this issues would by very much appreciated,

lasselasse avatar Dec 14 '12 01:12 lasselasse

@lassi Unlikely, the path length limit to 260 chars only applies to Windows. The Unix limit is somewhere in the 4k

danimo avatar Dec 14 '12 10:12 danimo

This was also the case on linux, but is likely to be fixed by http://git.csync.org/users/freitag/csync.git/commit/?h=dav&id=89241013c3925547e02ac267e2b4950a05980b13

ogoffart avatar Dec 14 '12 12:12 ogoffart

Has anyone tried with later versions of csync and Windows? @ogoffart?

danimo avatar Jan 24 '13 17:01 danimo

Closed as this is covered by #60.

danimo avatar Jul 08 '13 00:07 danimo

erm , it path is too long .. it will delete all our data if we try to rename it

hoho508 avatar May 10 '15 14:05 hoho508