Skip to content

Renaming folder doesn't sync to other users #2063

Open

Description

@apodosenin

Steps to reproduce

  1. Rename shared folder via Web interface
  2. Sync folder with other user
  3. 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>

Activity

  1. nickvergessen commented on Nov 9, 2016

    @nickvergessen
    Member

    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.

  2. apodosenin commented on Nov 9, 2016

    @apodosenin
    Author

    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?

  3. secure11 commented on Feb 16, 2017

    @secure11

    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)?

  4. JaredBoone commented on Feb 17, 2017

    @JaredBoone
    Contributor

    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.

  5. nickvergessen commented on Feb 20, 2017

    @nickvergessen
    Member

    @secure11 you seem to misunderstand. Only the most outer folder you shared with someone is not renamed.

    Example:

    1. UserA shares level1 with UserB
    2. UserB already has a folder level1
    3. UserB sees their level1 and level1 (2) from UserA
    4. UserA renames level1/level2/level3 to level1/level2/levelC
    5. UserB will see this rename and have the file level1 (2)/level2/levelC
    6. UserA renames level1 to levelA
    7. 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.

  6. JaredBoone commented on Mar 3, 2017

    @JaredBoone
    Contributor

    @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!

  7. nickvergessen commented on Mar 6, 2017

    @nickvergessen
    Member

    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)

  8. kjantin commented on Jun 2, 2017

    @kjantin

    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.

  9. secure11 commented on Jun 2, 2017

    @secure11
  10. jancborchardt commented on Jun 3, 2017

    @jancborchardt
    Member

    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. :)

  11. secure11 commented on Jun 4, 2017

    @secure11
  12. 47 remaining items

  13. agentlibre commented on Feb 11, 2020

    @agentlibre

    I read it too as an issue rather than a feature. I'm promoting FOSS to layperson users within my organization and this naming desync creates a lot of confusion and mistrust. I love NextCloud and would like to contribute further to its development to the best of my abilities; yet, this renaming issue is a hard blow for proper collaborative work.

    Another note: can't tell whether it is related or not, but it seems I cannot delete a "main" folder for the others without having it re-appear on their own web interface...

    Isn't there some sort of ownership's right attached to a folder you create? This could perhaps be a first lead to solve the issue.

  14. madhums commented on Feb 26, 2020

    @madhums

    It's not intuitive to ask each user to rename a folder or to get everyone on the same page for a folder name, especially if you are working in a big team with thousands of people. Could you please fix this?

  15. jospoortvliet commented on Feb 26, 2020

    @jospoortvliet
    Member

    I think that there are two cases here.

    Scenario one: shared workspace for a team or entire organization
    You want to share a folder with a team because it is to be a shared resource, a place where the team works in and with for an extended time. Say a Marketing folder, or the Engineering folder. You share because you are the manager or just put in charge of creating and distributing this resource. You might be an admin or sub-admin. As potentially many people have access to the shared resource, to keep everyone 'on the same page' it is easiest if the name stays under your control. You are essentially enforcing a way of working and organizing to facilitate smooth collaboration in a larger group.
    This is clearly what @madhums is talking about at #2063 (comment)

    Scenario two: a one-off share
    You uploaded a few docs you are working on with one or two colleagues. This is kind of a scratch space, something you work on for a week or maybe two. You share because you just happened to be the one who gathered or created the content, not because you have a special role, most certainly you're not an admin. As only a few people have access, it's best if the resource fits in everybody's own workflow. They can move the folder or, yes, even give it another name - if that's easier for them to remember what it was about. It is a temporary resource so your priority is to lower the barrier for the few ppl working on this and let them work how they prefer.
    This was described by #2063 (comment)

    So, I think we actually have a 'perfect' solution for this and should close this issue. But first I want to point out that this isn't much of a private user issue - we cover scenario 2 (which is a typical SMB/private user case) just fine, with the default.

    If you're a business and you had a subscription, as part of onboarding, you would have discussed how you work with us. And we'd have told you what the best way of dealing with such issues is: create a groupfolder. That does EXACTLY what you need, with a few added bonusses: people can't unshare it, you can set fine grained access control lists and more. If you work with 'thousands of people' like @madhums does then yes, this is your solution, don't just share a folder with everyone because that will get you in trouble.

    Consider this free advice - and consider the loss in productivity your thousands of people experienced because you didn't simply discuss this with the right experts earlier on in the setup of your instance.

  16. GillesMocellin commented on Feb 26, 2020

    @GillesMocellin

    Hi @jospoortvliet,

    Last time I checked, groupfolders do not work with encryption (server side). That's a blocker for some enterprises.

  17. nickvergessen commented on Feb 27, 2020

    @nickvergessen
    Member

    Since groupfolders can not be external storages atm, the argument of serverside encryption is invalid as per our explanation (warning box on https://docs.nextcloud.com/server/18/admin_manual/configuration_files/encryption_configuration.html )

  18. GillesMocellin commented on Feb 28, 2020

    @GillesMocellin

    Ok, another downside of groupfolders.
    So we should have a better way to share files with external storage and encryption.
    My use case needs scalability and big storage, so I aim to use external object storage via S3.

  19. joeltheukranian commented on Apr 1, 2020

    @joeltheukranian

    My client needs the rename to work as well. Each user does not want a name other than the original name given. Most of the people using it are non-techies, so having "labels" and names will likely confuse them. Please advise on your plan.

    They are looking seriously into paid support. Because we will need it.

    My suggestion would be an addon that forces rename across the board to all users. Or a configuration change (ofcourse) "force_rename_propagation = true".

  20. Excpt0r commented on Sep 9, 2021

    @Excpt0r

    @jospoortvliet
    Thanks for the free advice.

    • I definitively thought it's a bug that renaming a folder is not propagated to all users. And it left me with a bad feeling about the reliability of nextcloud. Maybe this feature should be more obvious, or the default should be group behaviour?
    • I would not agree that most non-professional users (family, sports club, etc) don't want group behaviour
    • Maybe instead having a separate groups app, integrate that feature in the default files app.
    • Deleting all access rights and share the renamed folder again solved the problem for my use case

    Just my free feedback, no complaint. I like OSS to succeed.

  21. handkerchief333 commented on Feb 5, 2023

    @handkerchief333
  22. EddyLB commented on Feb 16, 2023

    @EddyLB

    More detrimental is that the share is also lost if the user having shared the folder renames it afterwards. A really big issue.

  23. solracsf commented on May 12, 2023

    @solracsf
    Member

    To be clear here, ATM, the options are:

    • you're a family-like use case (some users, some friends...), for occasional shares, use the core Files sharing (no apps required).
    • you've a corporate use case, or have requirements to have a central point to your groups folders/files (naming, versions...) and fine-grained ACLs : use GroupFolders app: https://github.com/nextcloud/groupfolders

    If you're using GroupFolders, i could also recommend Workspace (requires GroupFolders): https://github.com/arawa/workspace

  24. kaffeeringe commented on Jul 22, 2024

    @kaffeeringe

    I spent half a day today trying to find out why a share can have a different name for me than for a colleague. I then came across this ancient thread and was initially horrified that this was supposed to be an intentional behavior of Nextcloud.

    However, it can be practical if people set up their Nextcloud in the way that suits them best.

    But you should really think about how organizations should work with Nextcloud. Creating a functional account that creates and shares all shared resources is an okay solution: Folders, address book, calendar, etc.

    It is inconsistent if you have to set up shared folders via an external app, but have to create and share other resources via a functional account.

    It would actually make sense if an admin could create a new workgroup including resources and assign the necessary accounts to this workgroup. Currently, you have to do all this manually: https://kaffeeringe.de/2024/07/02/projektmanagement-mit-nextcloud/

  25. timirons commented on Sep 6, 2024

    @timirons

    This is still a major problem for us. Maybe we could have a setting to fix folder names as it is a nightmare. All we can do is unshare and reshare.
    I can understand the two use cases, but for corporate file structures, it doesn't work very well at all.

  26. added
    needs reviewNeeds review to determine if still applicable or covered by other Issues
    on Sep 22, 2024
  27. Mathias-U1F596 commented on Oct 15, 2026

    @Mathias-U1F596

    The user who shares a folder should have the option to decide whether renaming the folder also changes its name for recipients. However, this behavior should not be hardcoded or enforced by the developers as the only possible option. It should be configurable, allowing users to choose the behavior that best fits their needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developAccepted and waiting to be taken care ofenhancementfeature: sharingneeds reviewNeeds review to determine if still applicable or covered by other IssuespapercutAnnoying recurring UX issue with possibly simple fix.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions