nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.34k stars 4.06k forks source link

[feature] Allow to enforce case insensitive filenames #45130

Open digimbyte opened 6 months ago

digimbyte commented 6 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

due to a case sensitivity on the server, it'll accept one version over another, soft locking the desktop from downloading or merging the files. example: Misc vs MISC both can co exist in the server rather than being merged or aggregated

Steps to reproduce

  1. client A creates a folder with an upper case name
  2. client B creates a folder with a camel case name
  3. desktop app will only download one due to OS restrictions, some file merging may be present but files will not be visible to the desktop client image

Expected behavior

folders will merge, OR at least warn the desktop client that folder names are duplicated and should be resolved, throwing an error. would like an aggregation function on the server

Installation method

Official All-in-One appliance

Nextcloud Server version

27

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

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

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

n/a

List of activated Apps

n/a

Nextcloud Signing status

n/a

Nextcloud Logs

n/a

Additional info

we are renting our server from an official partner. no technical details known. I tried renaming folders locally but it causes the desktop app to crash on sync

joshtrichards commented 6 months ago

Related: #44963

susnux commented 6 months ago

This is current expected behavior. Nextcloud will handle case insensitivity if the storage used does not support it (e.g. external samba storage).

digimbyte commented 6 months ago

it's actually causing crashes on the desktop client so.. No, it's not "working" for us as we use the system to develop and share production assets. we were missing 2.4gb of content due to this 'feature'. it's not optimal or user friendly no matter which way you slice it. I've had to uninstall the desktop and aggregate files manually to merge them because it causes an instant crash on the desktop client.

On Wed, May 1, 2024 at 10:09 AM Ferdinand Thiessen @.***> wrote:

This is current expected behavior. Nextcloud will handle case insensitivity if the storage used does not support it (e.g. external samba storage).

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/45130#issuecomment-2087748632, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSWNFEXQNVOOD5FYTNFP2DZAAXCRAVCNFSM6AAAAABHBCJHOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBXG42DQNRTGI . You are receiving this because you authored the thread.Message ID: @.***>

susnux commented 6 months ago

it's actually causing crashes on the desktop client so..

Then it seems to be a Desktop Client bug, you can report here: https://github.com/nextcloud/desktop/issues

Maybe it is related to this report here: https://github.com/nextcloud/desktop/issues/6011

You can also enable case sensitivity for the sync folders on your windows system: https://learn.microsoft.com/en-us/windows/wsl/case-sensitivity#change-the-case-sensitivity-of-files-and-directories

digimbyte commented 6 months ago

Can we instead enable case insensativity on the server side as a feature or setting? And no, I cannot enable case sensative names as it's local drives only, not external media.

I do need to now hunt down all similar folder names on the server and rename them all. This seems daunting as we have over 50gb of resources uploaded by multiple clients.

Could be a feature request

susnux commented 6 months ago

Can we instead enable case insensativity on the server side as a feature or setting?

This is currently not possible, but is a planned feature for Nextcloud 30.

Currently case insensitivity checks are only performed if the external Nextcloud storage does not support this (e.g. some Samba configurations).