Renaming folder doesn't sync to other users
Steps to reproduce
- Rename shared folder via Web interface
- Sync folder with other user
- Second user doesn't see new folder name
Expected behaviour
All users should see the same new folder name
Actual behaviour
Every user got his own folder name
Server configuration
Operating system: CentOS 7
**Web server: Apache/2.4.6 (CentOS)
**Database: mysql 5.5.38
**PHP version: 5.5.38
**Nextcloud version:10.0.1 (stable)
**Updated from an older Nextcloud/ownCloud or fresh install:updated from old ownCloud
Where did you install Nextcloud from:
Signing status:
Signing status
Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
List of activated apps:
App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
The content of config/config.php:
Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
or
Insert your config.php content here
(Without the database password, passwordsalt and secret)
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
Client configuration
Browser:
Operating system:
Logs
Web server error log
Web server error log
``` Insert your webserver log here ```Nextcloud log (data/nextcloud.log)
Nextcloud log
``` Insert your Nextcloud log here ```Browser log
Browser log
``` Insert your browser log here, this could for example include:a) The javascript console log b) The network log c) ...
</details>
This is actually the expected behaviour, because the name might be different for each user and the users can rename the folder on their end.
Ok, not very good for centrally managed shared folders. Perhaps I'm not using your product in correct way. Any options to change this behaviour? I've got another issue, if someone is editing file and other user renames it at the same time than file is duplicated after first user saves changes. Looks like this is by design too. Am I correct?
Commenting on this as for a centrally managed share folders/file system, if User 1 renames a file, ALL users should see it as renamed. Not following this behavior would be a big show stopper for any company thinking of migrating from sharepoint or dropbox to NextCloud? If two users are trying to make changes to 1 file and 1 user renames (not copies) it, both users are now working on different documents, and the other user doesn't even see (in the web or a synced version) the NEW file name??? What use case in a shared environment are you thinking the users should be able to have the same files/folders only give them different names without other users seeing the changed names? I can't even think of a use case where that is helpful, and doesn't end in a bad situation of identical files with different names not seen by all users who supposedly have access to the file(s)?
Please consider reopening this. In my opinion, it is a valid bug. A shared file or folder that is renamed should still be properly shared.
@secure11 you seem to misunderstand. Only the most outer folder you shared with someone is not renamed.
Example:
- UserA shares
level1with UserB - UserB already has a folder
level1 - UserB sees their
level1andlevel1 (2)from UserA - UserA renames
level1/level2/level3tolevel1/level2/levelC - UserB will see this rename and have the file
level1 (2)/level2/levelC - UserA renames
level1tolevelA - UserB will still see the files in
level1 (2)
The problem is that UserB could rename the level1 (2) at any point (e.g. to level1 (UserA)) at which point we shouldn't automatically rename the stuff any more.
A shared file or folder that is renamed should still be properly shared.
That is also a misunderstanding. Renaming a file does not remove or corrupt shares.
@nickvergessen I don't mean that the share is removed or corrupted. I mean that if UserA shares a file1.jpeg with UserB, then UserA renames the file to file1.jpg then the file rename does not propagate to UserB. In the specific case reported to me by a user, he shared a file with a large number of users then realized that the file extension was wrong and wanted to correct it, but the new filename did not propagate to the other users. To work around this he renamed the file and then unshared and reshared it with each of the users. I got the impression from the user that he found this process inconvenient. Perhaps it's worth considering a way to make this more convenient? Thanks!
I guess it makes some sense. Maybe @jancborchardt can comment on it.
Maybe we could/should rename mounts that use the same name or same name (%d)
I am also configuring NextCloud to be used as a centrally managed share folders/file system and am running into the same kinds of issues shared in this thread. It would be ideal if a file that is renamed, is then renamed for all other users it is shared with.
Was this addressed by chance in the nextcloud 12 release? Seems to me this is a show stopper for many users and organizations?
What are your takes here @karlitschek @schiessle @nickvergessen?
If I remember correctly we deliberately chose this path because lots of people mentioned they wanted to use their own ordering.
If however most other solutions do it in the way as described here, and our way results in confusion, we should adjust it. :)
For comparison, file/subdirectory synchronization in seafile and pydio work as we have described here. Also with Dropbox and office365. I used to use owncloud way back when and I don't recall this behavior so that is why I thought it was a bug in nextcloud?
@secure11 it was definitely that behavior all along.
So @nextcloud/sharing @karlitschek @LukasReschke @MorrisJobke since others are doing it differently, do we want to adjust to avoid confusion?
no strong opinions here. What do the others think?
We maybe should do some research on how others handle the corner case like: owner renames to a name that the recipient already uses for another folder, but beside that I'm open to adjust to the "rename for others" approach
I would only rename when the name is the "same" or "same (1)"
Our company utilizes Nextcloud as a central hub for our documents, and we have also found this current behavior of Nextcloud to be detrimental. We would greatly appreciate changing the sync protocol to what has been outlined here.
If the example @nickvergessen described earlier is still a concern, or if local naming/ordering is something that others want to preserve, perhaps a system combining both methods could be created. For example, having a local name and a shared name, I.E. local-name.txt (shared-name.txt).
Hi, We also use the NC in our company. This bug is very difficult to work with.
I like the current approach. If somebody shares a folder images with me I should be free to rename that to whatever I want.
Also I would find it weird that if somebody shares a folder with me. It can change name without me knowing about it at any time. This can lead to weird things.
Also note that propagating renames of single shared files won't solve the issue. If that would be the case imagine
User a shares a file Foo to user b User b uses the sync client User b starts editing Foo User a renames Foo to Bar Now user B saves the file. And the program they use will most likely just write it to Foo Bam. There are now two version of the file.
I do not share these folders