desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: V4.0.0 - a folder, a subfolder with the same name as the parent folder is created

Open vagner-dias opened this issue 1 year ago • 94 comments

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

Bug description

In NC Client 4.0.0, in a fresh install, After proceeding with the the initial sync, if the user enters a folder, a subfolder with the same name as the parent folder is "created"

Steps to reproduce

  1. Install the desktop client V4.0.0 (it must be a fresh install)
  2. connect an account
  3. Start entering any folder structure. the issue will start to manifest

Expected behavior

No subfolder should be created.

Which files are affected by this bug

Folders only

Operating system

Windows

Which version of the operating system you are running.

Windows 11

Package

Official Windows MSI

Nextcloud Server version

31.0.8

Nextcloud Desktop Client version

4.0.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?

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

Nextcloud Server logs


Additional info

No response

vagner-dias avatar Oct 21 '25 21:10 vagner-dias

We are seeing this issue after upgrade from 3.17.3 Windows 11.

farhills avatar Oct 21 '25 23:10 farhills

Seeing this as well after the update on Windows 10. Also cool that the update starts even after dismissing the popup.

Eiernase avatar Oct 22 '25 00:10 Eiernase

same for me 😔

matix24 avatar Oct 22 '25 06:10 matix24

Yes, I also encountered this problem after updating to 4.0 today, but I didn't do a fresh installation; it was an automatic update to 4.0. I manually deleted the folder that was automatically created, but after a few hours the parent folder was automatically created again. I intend to temporarily downgrade.

July-12th avatar Oct 22 '25 06:10 July-12th

This bug is terrible. I think it would be good to pull release 4.0.0 from the update channels.

mayonezo avatar Oct 22 '25 10:10 mayonezo

I'm experiencing this too. Steps to reproduce (v4.0.0 on Windows 11):

  • Add a new file on the desktop client
  • Wait for the desktop client to sync
  • A new empty directory will appear, named after the parent directory

That directory is impossible to delete. Attempts to do so result in a "remote file not found" error. Attempting to create a directory with the same name via Web UI does not trigger a sync, but allows deleting the directory on the client. Sadly, the directory reappears almost immediately afterwards.

This should be fixed ASAP, as I don't feel confident in using Nextcloud as long as there's a risk this bug could mess with my data.

Nolonar avatar Oct 22 '25 10:10 Nolonar

same for me... on multiple instances/ mostly on Win11

typowyfacet avatar Oct 22 '25 12:10 typowyfacet

this is unbelievable ... how can sth. like this go live?! Every release i have less arguments to keep using NC for a productive environment.

subroutineox avatar Oct 22 '25 12:10 subroutineox

Same here even when i delete the folder it comes back again when i sync back up. This only happens on the PC Version not on the phone. on the phone it is normal

Ayush62 avatar Oct 22 '25 13:10 Ayush62

The same issue occurs here on Windows 11. I installed NC Client 4.0.0 over 3.17.3 this morning. I noticed that two identical subdirectories are created at each sync, up to three levels deep: my-new-dir > my-new-dir > my-new-dir. I rolled back immediately to avoid a major mess in my data.

BenoitLavergne avatar Oct 22 '25 15:10 BenoitLavergne

The same issue occurs here on Windows 11. I installed NC Client 4.0.0 over 3.17.3 this morning. I noticed that two identical subdirectories are created at each sync, up to three levels deep: my-new-dir > my-new-dir > my-new-dir. I rolled back immediately to avoid a major mess in my data.

Same problem, can you help me how to roll back, these ghost folders are extremely confusing..

mrAceT avatar Oct 23 '25 07:10 mrAceT

I confirm, for us that is append after automatic update to 4.0

ThomasAndreini avatar Oct 23 '25 08:10 ThomasAndreini

for the time being you may want to give a recent daily build >= 20251023 a try: https://download.nextcloud.com/desktop/daily/windows/

That build contains the merged PR from yesterday which should resolve the creation of these subfolders.

nilsding avatar Oct 23 '25 10:10 nilsding

for the time being you may want to give a recent daily build >= 20251023 a try: https://download.nextcloud.com/desktop/daily/windows/

That build contains the merged PR from yesterday which should resolve the creation of these subfolders.

Hello, I installed the new daily build and rebooted PC, but the issue still persists.

fsomenzi-ita avatar Oct 23 '25 11:10 fsomenzi-ita

@fsomenzi-ita do these folders disappear if you create a new file somewhere?

nilsding avatar Oct 23 '25 11:10 nilsding

Can confirm, this happened also for me

Simi5599 avatar Oct 23 '25 12:10 Simi5599

I think it would be safer to stop automatic updates to version 4.0 until this issue is fixed.

The bug can easily break the local folder structure by creating duplicate subfolders (same name as parent), which is confusing and potentially risky for end users.

Please freeze automatic updates on 4.0 and keep 3.13.x as the latest recommended stable version until a corrected 4.0.x is released.

SebjuFrab avatar Oct 23 '25 12:10 SebjuFrab

Can someone please explain to me how I roll back to the last (correctly working) 3.x version?

mrAceT avatar Oct 23 '25 12:10 mrAceT

Can someone please explain to me how I roll back to the last (correctly working) 3.x version?

I assume you can just download and install the latest release before 4.0.0, see here: https://github.com/nextcloud-releases/desktop/releases/tag/v3.17.3

kosli avatar Oct 23 '25 12:10 kosli

I think it would be safer to stop automatic updates to version 4.0 until this issue is fixed.

The bug can easily break the local folder structure by creating duplicate subfolders (same name as parent), which is confusing and potentially risky for end users.

Please freeze automatic updates on 4.0 and keep 3.13.x as the latest recommended stable version until a corrected 4.0.x is released.

Yeah, i was working on a C++ project and lost a lot of edits i made. Fortunately i had Git but this can be devastating

Simi5599 avatar Oct 23 '25 12:10 Simi5599