-
Notifications
You must be signed in to change notification settings - Fork 288
Delete trailing whitespaces on rename and mkdir #1253
base: develop
Are you sure you want to change the base?
Conversation
c2aa1de
to
0ae4217
Compare
Whitespace at end of filename cause errors while accessing those files and dirs via WebDAV (e.g. Nautilus, Caja, etc). This patch tries to avoid creation of such nodes.
0ae4217
to
7cbf214
Compare
Windows can't handle files and dirs with trailing whitespace in name
Hi @sespivak thanks for your PR, welcome on board! |
Hi, Charles! |
Hi, Silently renaming them makes the Sync impossible. However trimming the names in JS is ok. |
Hi, @7omate
Maybe. It's must be tested, but problem should be solved. |
If you unzip the files locally and on your server you would end up with a different result. |
Yes, you are right. But now if I download folder as zip and folder contains any files with unicode chars in their names, they will recoded by iconv to selected codepage, making filenames different from server version. If filenames will be additionally rtrimmed, it's make files usable in windows. |
Hi again,
|
Hi, @7omate ! The problem not only in WebDAV, but in handling files and dirs with trailing whitespaces in Windows too. |
@7omate retesting this use case with my Windows 7, I have a sync with jpg file set up. If I rename the file with a trailing space after the jpg extension, it then just... disappear from the local folder on windows!! |
…reating a content instead of path in some case (trailing spaces). See #1253
…elop * 'develop' of http://github.com/pydio/pydio-core: Initiate release note and dist resources for 7.0.2 RolesManager loading role data : Make sure to remove invalid repos on error from shared repositories list. i18n new prompt exception mechanism Update trigger as mysql automatically pads varchars when comparing, creating a content instead of path in some case (trailing spaces). See #1253 Manual merge of #1292 (put encoding call directly inside win-dedicated function. Auth.ldap: add starttsl support. See #1248, should fix it. Fix zip operation when child drivers are remote (inc. smb) - Fix #1287 Fix base detection for archive Fix SMB access driver and custom smbclient path. Close #1290 Rewire ALLOWED_EXTENSIONS configs - Fix #1283 Fix #1288 Fix Imap & EML plugins - Warning php7 requires Mail_mimeDecode 1.5.6 - Fix #1282
Not fully fixed yet, but at least we fixed an issue with the SQL trigger that would create an invalid change (content instead of path) with mysql when renaming a file with a trailing space. |
Whitespace at end of filename cause errors while accessing those files
and dirs via WebDAV (e.g. Nautilus, Caja, etc). This patch tries to
avoid creation of such nodes.