Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transferring ownership of groupfolder should not be possible #1967

Closed
vanpertsch opened this issue Apr 21, 2022 · 4 comments
Closed

Transferring ownership of groupfolder should not be possible #1967

vanpertsch opened this issue Apr 21, 2022 · 4 comments
Labels
1. to develop Issues that are ready for development bug

Comments

@vanpertsch
Copy link

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  • create group1
  • create user1 und user2 users as members of group1
  • create group folder gf1 with sharing rights for group1
  • login as user1
  • go to settings -> sharing
  • select transfer ownership, select gf1 and user2

Expected behaviour

group folder should not be selectable because per definition group folders have no specific owner

Actual behaviour

ownership transferral is offered and partially (?) successful. User2 received acceptance request, and after accepting a folder "transferred - xyz" is created - albeit empty (?, not checked further wether later on files will be copied). The original groupfolder still does exist.

Server configuration

Nextcloud version: 23.0.3

@vanpertsch vanpertsch added bug 0. Needs triage Issues that need to be triaged labels Apr 21, 2022
@fschrempf fschrempf added 1. to develop Issues that are ready for development and removed 0. Needs triage Issues that need to be triaged labels Apr 21, 2022
@vanpertsch vanpertsch changed the title Transferring ownershop of groupfolder should not be possible Transferring ownership of groupfolder should not be possible Apr 21, 2022
@vanpertsch
Copy link
Author

@icewind1991 do you have an idea how to disable the possibility of select a group folder?

Maybe a condition in here:
https://github.com/nextcloud/server/blob/215aef3cbdc1963be1bb6bca5218ee0a4b7f1665/apps/files/lib/Controller/TransferOwnershipController.php#L100-L102

@icewind1991
Copy link
Member

it could check if the file is from the user's home storage

$node->getStorage()->instanceOfStorage(IHomeStorage::class)

@unteem
Copy link

unteem commented May 20, 2022

Hi

So now it seems that with nextcloud/server#32149 it is not possible to transfer a group folder to a user.

It would be actually quite nice if we could transfer a group folder to a user. It was actually broken, transfer was working but the folder had 0 in size. https://help.nextcloud.com/t/folder-ownership-transfer-does-not-transfer-folder-size/120231

To be honest group folder has been unusable for us, too many bugs, fixing those look like quite some work so we had to revert back to using normal users. Being able to transfer a group folder is a nice feature.

I guess that instead of not allowing we could check if the user making the transfer is either a system admin or a sub-admin of the group. That seems trivial ?

Fixing the 0 size issue that I don't know where its coming from 🙃

I can have a look or if you have ideas @icewind1991 ?

I'm up for the task but I need directions as I'm not a php expert neither I know how transfer works. I want this features upstream and not make a custom script on my side as we have been doing so far with sql queries. I'll do my homework but yep help is always appreciated.

Should we close this issue and create a new one ?

@pierreozoux
Copy link
Member

This seems fixed upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Issues that are ready for development bug
Projects
None yet
Development

No branches or pull requests

5 participants