Skip to content

[Bug]: client (at least macOS client) doesn't sync symbolic links #5509

@avibrazil

Description

@avibrazil

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

Bug description

I know this is being discussed in some forum.

Nextcloud must support Unix symbolic links, either storing them as a reference (the correct way of doing this, in my opinion) or de-referencing them (storing a copy of the content they are pointing to). Or let the user chose how to store.

Unix filesystem symbolic links have nothing to do with web links. Please let's not confuse these 2 different concepts in this discussion.

Unix filesystem symbolic links are an incredible practical OS feature.

Steps to reproduce

On my Mac, inside a folder synced and managed by Nextcloud, I do this:

$ touch a
$ ln -s a b
$ mkdir x
$ ln -s x y

Create a file named a and create a symbolic link named b pointing to a, all in the same folder.
Create a folder named x and create a symbolic link named y pointing to x, all in the same folder.

File a gets synced but file (symbolic link) b doesn't. Same for folders x and link y. I verified by going into the Nextcloud Linux server and checking which files appeared under /var/lib/nextcloud/data/USER/files/...

I don't get the symbolic links in the server.

Expected behavior

Expected behavior is to get the Nextcloud client handling and storing Unix symbolic links as symbolic links.

Then clients on other platforms, such as Windows, will convert the server-side Unix symbolic link into something that makes sense in Windows filesystems, which apparently already supports symbolic links.

When I mount my Nextcloud folder via WebDAV as a regular filesystem (using davfs2), I also expect to correctly see the synced symbolic links.

Which files are affected by this bug

I have no idea

Operating system

Mac OS

Which version of the operating system you are running.

Ventura 13.2.1

Package

Appimage

Nextcloud Server version

25.0.1

Nextcloud Desktop Client version

3.7.3

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 Disabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

No response

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions