nextcloud / desktop

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

[Bug]: .sync-exclude.lst is ignored on initial sync #6786

Open albert-a opened 4 weeks ago

albert-a commented 4 weeks ago

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

Bug description

File .sync-exclude.lst is ignored on initial sync, it resides in the root user directory on Nextcloud server

Steps to reproduce

  1. When I bind my desktop client to the server account, I presented with the dialog:

    • Synchronise everything from server
    • Choose what to sync
  2. When I choose Synchronise everything from server the Initial sync synchronises literally everything, even files listed in .sync-exclude.lst in the root folder. It Is synced and then lit yellow:

image

BACKUP folder is excluded here, but synced anyway. This folder could be very big. I have to delete it and then it is not synced. But this initial sync looks like a bug to me.

  1. If I choose Choose what to sync, then it seems .sync-exclude.lst is ignored completely, and the folder BACKUP is displayed in the settings where you pick folders to sync.

Expected behavior

The excluded items (such as BACKUP folder in the example) should not be synced during initial sync.

Which files are affected by this bug

BACKUP

Operating system

Mac OS

Which version of the operating system you are running.

13.6.6 (22G630)

Package

Appimage

Nextcloud Server version

29.0.1

Nextcloud Desktop Client version

3.13.0

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?

Nextcloud Server logs

Nextcloud server with default settings does not produce log when following the steps above.

Additional info

I use local External storage for users root directories.

Client log included: nc.log