Skip to content

[Bug]: Subfolders are recreated constantly #9036

@michel-thomas

Description

@michel-thomas

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

Bug description

Next to #8915 issue, I haven't clients with 4.0.0 version anymore. Clients are with 3.17.x or 4.0.1 version only.

I tried to clean folder structure to purge all duplicates empty folders. But these empty subfolders are recreated every day, by any user.

What I tries to cleanup in a bash script:

  1. list all empty folders with find /data/nextcloud/path -type d -empty
  2. keep only empty folders that have the same name as parent
  3. remove them

I tried 3 methods for removing:

  • rm -r subfolder in filesystem, followed by occ files:scan and occ maintenance:data-fingerprint
  • occ files:delete -f -q subfolder
  • delete manually some folders via web interface

No matter how I remove these folders, they are recreated later.

I asked users to upgrade to 4.0.1, but I also notice there are some empty subfolders that are recreated by users already in 4.0.1…

Not sure, but it seams that reconfigure totally the client (remove all sync config and then recreate conf in a new empty root folder) could solve the problem. But I have more than 1000 subfolders and more than 100 users, so I can't go on every desktop to do so! And users won't understand why.

Another "not sure", but I think recreating these folders is done only by Windows clients.

Steps to reproduce

  1. Instance with many empty subfolders named as their parents due to [Bug]: V4.0.0 - a folder, a subfolder with the same name as the parent folder is created #8915 issue
  2. Many users (>100), none with version 4.0.0
  3. Try to delete some or all subfolders created by the issue
  4. These folders comes back from a user

Expected behavior

Deleting these subfolders should be permanent.

Which files are affected by this bug

1000 subfolders

Operating system

Windows

Which version of the operating system you are running.

Mixed 10 and 11

Package

Official Windows MSI

Nextcloud Server version

31.0.8

Nextcloud Desktop Client version

3.17.x and 4.0.1

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

Updated from a minor version (ex. 3.16.1 to 3.16.2)

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

Additional info

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions