circles icon indicating copy to clipboard operation
circles copied to clipboard

Files and folders shared with a team land at "/" (user root dir) instead of landing in the configured "/Shared with me" directory for incoming shares

Open maximelehericy opened this issue 9 months ago • 5 comments

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

  1. Alice sets her folder for incoming shares to /Shared with me
  2. Bob shares a file or a folder with a team Alice is member of

Expected behaviour

What Bob shared should land for Alice in her "/Shared with" me folder

Actual behaviour

Instead, it lands in "/"

Server configuration

Web server: Apache/Nginx

Database: MySQL/Maria/SQLite/PostgreSQL

PHP version: 8.1/8.2/8.3

Nextcloud version: (see Nextcloud admin page) 31.0.2

List of activated apps
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
Nextcloud configuration
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

Browser

Browser name: Firefox/Chrome/Safari/…

Browser version: 124/125/…

Operating system: Windows/Ubuntu/Mac/…

Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...

maximelehericy avatar Mar 31 '25 07:03 maximelehericy

2. Bob shares a file or a folder with a team Alice is member of

Is this team named as another user?

ShGKme avatar Apr 23 '25 17:04 ShGKme

Is this team named as another user?

@ShGKme no.

Alice configures its default folder for incoming shares to "/Shared with me". Bob creates Team B. Bob adds Alice to Team B. Bob shares a file/folder to Team B. Alice receives the share at its root directory ("/"), instead of "/Shared with me" directory.

maximelehericy avatar Apr 28 '25 13:04 maximelehericy

  • Might be fixed by https://github.com/nextcloud/server/pull/51602

ShGKme avatar Apr 28 '25 14:04 ShGKme

this did not fix it. I can reproduce it in NC31 & NC32

Rello avatar Dec 04 '25 07:12 Rello

This needs to be fixed on circles side. The PR touches DefaultShareProvider but circles uses its own ShareByCircleProvider. For groups core creates a subshare for each member of the group, and when doing so it sets the target to the default share folder. For circles it seems a subshare is only created if the share is moved.

It would need to be changed to create subshares for each member at creation, or on the first mount, at least for members which have set a default share folder.

come-nc avatar Dec 04 '25 15:12 come-nc