nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
2.99k stars 785 forks source link

[Bug]: File/folder renaming on Mac (slash "/" to colon ":") -> Sync error on Windows #4871

Open Ninos opened 2 years ago

Ninos commented 2 years ago

⚠️ Before submitting, please verify the following: ⚠️

Bug description

Files/folders with slashes in name got replaced with :, but this is not compatible with Windows (I think folder only) -> sync error.

Steps to reproduce

  1. On Mac create folder with / in name, e.g. abc/def
  2. Wait for sync
  3. Check sync on Windows device

Expected behavior

Replace / e.g. with -, _ or something like that instead of :.

Which files are affected by this bug

abc/def/example.file

Operating system

Mac OS

Which version of the operating system you are running.

Mac OS Monterey

Package

Official SNAP package

Nextcloud Server version

24.0.4

Nextcloud Desktop Client version

3.5.4

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

Are you using an external user-backend?

Nextcloud Server logs

No response

Additional info

No response

User65481 commented 2 years ago

That said we would love an option to block all incompatible characters and warn users that their files didn't got synced. Having multiple thousands clients results in specialists who try to use /*?|^ - which works fine on their system but just won't show up on some other devices (for obvious reasons).

While they technically work I also strongly dislike emojis in file/folder names.

trickysyntax commented 1 year ago

Bumping this. Running into big problems with S3 and external storage — slashes in filenames are being replaced with colons — which allows them to be seen in the NC web interface but not in macOS Finder.

Using dashes or underscores instead of colons would fix this issue.

huntervcx commented 1 year ago

Bump this, really annoying in enterprise File Access Control could have the basic option to block files uploaded containing a colon, and returning to the user an error messaging explaining this

joshtrichards commented 1 month ago

Current behavior:

Upcoming: