Duplicated files and folders when moving from one shared folder to another (can reproduce it)
Steps to reproduce
through the web-ui:
- UserA creates FolderA and FolderB
- UserA shares FolderA and FolderB with UserB
on win7 desktop with client v2.2.4.2:
- UserB creates the folder FOO in FolderA
- UserB creates the folder BAR in FolderA/FOO
- Wait for the desktop client to sync these changes
- UserB perform a cut-paste to move FOO directly from FolderA to FolderB (moving FOO on the desktop and then into FolderB does not make the issue to occur)
- Wait for the desktop client to sync this change
- UserB creates the folder POOP in FolderB/FOO/BAR/
- Wait for the desktop client to sync this change
Expected behaviour
Moving content from one share to another should work smoothly
Actual behaviour
The following inconsistency has appeared on the server: through the web-ui UserB can see the BAR folder inexplicably duplicated.
Other Probable side-effects
If FolderA and FolderB is shared with several other users working on them, users keep getting the "Backup Detected" dialog asking wether to keep conflict files or to synchronize normally.
Probable related issues or discussions
https://help.nextcloud.com/t/duplicate-files-delete-not-possible/8869/7 https://github.com/nextcloud/server/issues/741
Server configuration
Operating system: Ubuntu 16.04
Web server: Apache 2.4
Database: Mysql 5.7
PHP version: v5.6
Nextcloud version: (see Nextcloud admin page) v10.0.3
Updated from an older Nextcloud/ownCloud or fresh install: updated from 10.0.0 -> ... -> 10.0.3
Where did you install Nextcloud from: official tarball
Signing status: No errors have been found.
List of activated apps: Enabled:
- activity: 2.3.2
- admin_audit: 1.0.0
- comments: 1.0.0
- dav: 1.0.1
- federatedfilesharing: 1.0.1
- federation: 1.0.1
- files: 1.5.2
- files_external: 1.0.2
- files_pdfviewer: 0.8.1
- files_sharing: 1.0.0
- files_texteditor: 2.1
- files_trashbin: 1.0.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1
- gallery: 15.0.1
- notifications: 0.3.0
- password_policy: 1.0.0
- provisioning_api: 1.0.0
- serverinfo: 1.1.1
- survey_client: 0.1.5
- systemtags: 1.0.2
- theming: 1.0.1
- updatenotification: 1.0.1
- workflowengine: 1.0.1 Disabled:
- encryption
- external
- files_accesscontrol
- files_automatedtagging
- files_retention
- files_versions
- templateeditor
- user_external
- user_ldap
- user_saml
The content of config/config.php:
{
"system": {
"instanceid": "ocq05beinini",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"aaa.bbb.net"
],
"datadirectory": "\/var\/www\/nextcloud-data",
"overwrite.cli.url": "http:\/\/aaa.bbb.net",
"dbtype": "mysql",
"version": "9.1.3.2",
"dbname": "nextcloud",
"dbhost": "localhost",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "UTC",
"installed": true,
"loglevel": 0,
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "localhost",
"port": 6379
},
"maintenance": false,
"updater.release.channel": "stable"
}
}
Are you using external storage, if yes which one: local/smb/sftp/... No
Are you using encryption: yes/no No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... No
Client configuration
Browser: Chrome 56
Operating system: Windows 7
+1 Nextcloud 11.0.1
Clearly locking related @icewind1991 see https://help.nextcloud.com/t/duplicate-files-delete-not-possible/8869/4
+1 had this Problem with Nextcloud 11.0.3 as well.
@icewind1991 Can you take a look? This has been reported again at https://help.nextcloud.com/t/files-and-folders-shown-twice-in-web-ui/12416
will the fix be backported to 10 and 11? thanks
will the fix be backported to 10 and 11?
First of all we need to fix it. But 10 is unlikely, because we plan to do a last release for 10 this month and then stop it (because two new mayor version are released and we plan to only support the last two mayor versions).
+1 11.0.2 (stable)
Trying again to summon @icewind1991 💯
Maybe it is Possible to set a Timeout for unlocking? After 10 hours or so it will automatically unlock?
Same Error here on Nextcloud 11.0.3 PHP 7.0.19-1~dotdeb+8.1 Debian 8
+1 Nextcloud 11.0.3 PHP 5.6.30-0+deb8u1 Debian 8
+1 Nextcloud 12.0.0
Is this related to this Bug? https://github.com/nextcloud/server/issues/1166
Nextcloud Log:
Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in /var/www/nextcloud/lib/private/Files/Filesystem.php:806 Stack trace: #0 /var/www/nextcloud/lib/private/Files/View.php(2018): OC\Files\Filesystem::normalizePath('/Henrik/files/K...') #1 /var/www/nextcloud/lib/private/Files/View.php(1156): OC\Files\View->unlockFile('/Kunden/Uniserv...', 1) #2 [internal function]: OC\Files\View->OC\Files\{closure}() #3 /var/www/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure)) #4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close() #5 {main} thrown at /var/www/nextcloud/lib/private/Files/Filesystem.php#806
+1 Nextcloud 11.0.3
+1 Nexcloud 12.0.0
Summoning @icewind1991 the fourth time 🙏
+1 Nexcloud 12.0.0
Summoning @icewind1991 the fifth time
In the meantime, is any workaround possible other than forbidding users to move folders from a share to another?
+1
Nextcloud 12.0
PHP 7
Can reproduce, looking into it