owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.39k stars 2.05k forks source link

Renaming a file in Desktop Client external storage folder, duplicates the file with a very specific configuration #27001

Closed davitol closed 6 years ago

davitol commented 7 years ago

Steps to reproduce

1- As Admin, setup 2 mountPoints that connects to the same backend 2 - With the same Desktop client, configure 2 accounts with different users that have access to the external storage mountpoints 3 - From the Desktop Client of one of these users, rename a file

Expected behaviour

The file should be renamed

Actual behaviour

The file is duplicated, and it appears two files (oldname and newname)

Logs

{"reqId":"PdPLY3rsRvFsF4f9Nj76","remoteAddr":"82.159.139.58","app":"admin_audit","message":"Read \"\/admin\/files\/SFTP\/config.php\" by user admin, owner: admin [CLIENT_IP: 82.159.139.58] [USER_AGENT: Mozilla\/5.0 (Macintosh) mirall\/2.3.0-nightly20160929 (build 3715) (testpilotcloud)]","level":1,"time":"2017-01-23T08:49:25+00:00","method":"GET","url":"\/remote.php\/webdav\/SFTP\/config.php","user":"admin"}
{"reqId":"OOnoaDeeHNsvfRpJcukF","remoteAddr":"82.159.139.58","app":"admin_audit","message":"Read \"\/admin\/files\/SFTP1\/config.sample.php\" by user admin, owner: admin [CLIENT_IP: 82.159.139.58] [USER_AGENT: Mozilla\/5.0 (Macintosh) mirall\/2.3.0-nightly20160929 (build 3715) (testpilotcloud)]","level":1,"time":"2017-01-23T08:49:25+00:00","method":"GET","url":"\/remote.php\/webdav\/SFTP1\/config.sample.php","user":"admin"}
{"reqId":"XhvBgKkAA68nBn1NWVdY","remoteAddr":"82.159.139.58","app":"admin_audit","message":"Rename \"\/admin\/files\/SFTP\/config.sample.php\" to \"\/admin\/files\/SFTP\/config.sample1.php\" by user admin, owner: admin [CLIENT_IP: 82.159.139.58] [USER_AGENT: Mozilla\/5.0 (Macintosh) mirall\/2.3.0-nightly20160929 (build 3715) (testpilotcloud)]","level":1,"time":"2017-01-23T08:49:55+00:00","method":"MOVE","url":"\/remote.php\/webdav\/SFTP\/config.sample.php","user":"admin"}
{"reqId":"BJtGY3wLTOF4FFMZpg6V","remoteAddr":"82.159.139.58","app":"admin_audit","message":"Create \"\/SAlexander\/files\/SFTP\/config.sample.php\" by user SAlexander, owner: SAlexander [CLIENT_IP: 82.159.139.58] [USER_AGENT: Mozilla\/5.0 (Macintosh) mirall\/2.3.0-nightly20160929 (build 3715) (testpilotcloud)]","level":1,"time":"2017-01-23T08:50:01+00:00","method":"PUT","url":"\/remote.php\/webdav\/SFTP\/config.sample.php","user":"SAlexander"}
{"reqId":"oaN3qbajlB06B94aSGWy","remoteAddr":"82.159.139.58","app":"admin_audit","message":"Read \"\/admin\/files\/SFTP\/config.sample.php\" by user admin, owner: admin [CLIENT_IP: 82.159.139.58] [USER_AGENT: Mozilla\/5.0 (Macintosh) mirall\/2.3.0-nightly20160929 (build 3715) (testpilotcloud)]","level":1,"time":"2017-01-23T08:50:29+00:00","method":"GET","url":"\/remote.php\/webdav\/SFTP\/config.sample.php","user":"admin"}
{"reqId":"xYhyOs\/MH+BKQFtu2hOs","remoteAddr":"82.159.139.58","app":"admin_audit","message":"Read \"\/admin\/files\/SFTP1\/config.sample1.php\" by user admin, owner: admin [CLIENT_IP: 82.159.139.58] [USER_AGENT: Mozilla\/5.0 (Macintosh) mirall\/2.3.0-nightly20160929 (build 3715) (testpilotcloud)]","level":1,"time":"2017-01-23T08:50:29+00:00","method":"GET","url":"\/remote.php\/webdav\/SFTP1\/config.sample1.php","user":"admin"}
{"reqId":"a7aFM05Ddxe9uSTA1Jhc","remoteAddr":"82.159.139.58","app":"admin_audit","message":"Read \"\/admin\/files\/SFTP1\/config.sample.php\" by user admin, owner: admin [CLIENT_IP: 82.159.139.58] [USER_AGENT: Mozilla\/5.0 (Macintosh) mirall\/2.3.0-nightly20160929 (build 3715) (testpilotcloud)]","level":1,"time":"2017-01-23T08:50:29+00:00","method":"GET","url":"\/remote.php\/webdav\/SFTP1\/config.sample.php","user":"admin"}
{"reqId":"NtCiYFmPe2tGBY5jaJe0","remoteAddr":"82.159.139.58","app":"admin_audit","message":"Read \"\/SAlexander\/files\/SFTP\/config.sample1.php\" by user SAlexander, owner: SAlexander [CLIENT_IP: 82.159.139.58] [USER_AGENT: Mozilla\/5.0 (Macintosh) mirall\/2.3.0-nightly20160929 (build 3715) (testpilotcloud)]","level":1,"time":"2017-01-23T08:50:59+00:00","method":"GET","url":"\/remote.php\/webdav\/SFTP\/config.sample1.php","user":"SAlexander"}
{"reqId":"faol6Ag5EUyW\/SOpyajE","remoteAddr":"82.159.139.58","app":"admin_audit","message":"Read \"\/SAlexander\/files\/SFTP1\/config.sample.php\" by user SAlexander, owner: SAlexander [CLIENT_IP: 82.159.139.58] [USER_AGENT: Mozilla\/5.0 (Macintosh) mirall\/2.3.0-nightly20160929 (build 3715) (testpilotcloud)]","level":1,"time":"2017-01-23T08:50:59+00:00","method":"GET","url":"\/remote.php\/webdav\/SFTP1\/config.sample.php","user":"SAlexander"}
{"reqId":"lzGNR\/xx\/UdqOGNR0YLM","remoteAddr":"82.159.139.58","app":"admin_audit","message":"Read \"\/SAlexander\/files\/SFTP1\/config.sample1.php\" by user SAlexander, owner: SAlexander [CLIENT_IP: 82.159.139.58] [USER_AGENT: Mozilla\/5.0 (Macintosh) mirall\/2.3.0-nightly20160929 (build 3715) (testpilotcloud)]","level":1,"time":"2017-01-23T08:50:59+00:00","method":"GET","url":"\/remote.php\/webdav\/SFTP1\/config.sample1.php","user":"SAlexander"}
PVince81 commented 6 years ago

Depends how it's connected to the same backend, mount: is it pointing to the same oc_storages entry or is it using different credentials ? Depending on the setup, if the result is two oc_storages entries then it is likely that remote update detection cannot work correctly as OC doesn't know both storages point to the same remote folder.

ownclouders commented 6 years ago

Hey, this issue has been closed because the label needs info is set and there were no updates for 14 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.