Skip to content

[Bug]: renaming not empty ignored folder trigger its content to be removed #6720

Open
@mgallien

Description

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

Bug description

if a local folder is ignored (i.e. the name matches ignore patterns), the desktop files client will not sync it to the server.
in files explorer, the status icon will be empty (i.e. no status icon)
once you rename it such that it will be synced to the server, the content of the folder will be deleted

Steps to reproduce

  1. Create a new folder
  2. Rename it to testIgnore
  3. Add some files inside it
  4. Wait for sync to happen
  5. Free up storage such that the new not empty folder gets a cloud status icon
  6. Add a rule to ignore all items with pattern: *.msg
  7. Rename testIgnore to testIgnore.msg
  8. Wait for sync to happen
  9. Rename testIgnore.msg to testIgnore
  10. Wait for sync to happen
  11. Checks the content of the folder

Expected behavior

Files stored in this folder (or in its sub-folders) are not deleted

Which files are affected by this bug

n/a

Operating system

Windows

Which version of the operating system you are running.

windows 10

Package

Other

Nextcloud Server version

28.0.3

Nextcloud Desktop Client version

master branch

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

Updated from a minor version (ex. 3.4.2 to 3.4.4)

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

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions