nextcloud / nextcloud/server

Federation resharing not working as expected

Open
#11,126 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 25-feedback bug feature: federation feature: sharing
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Please use the 👍 reaction to show that you are also in favor of this feature - we are using this information to decide which features to include in upcoming Nextcloud versions. Please don't comment if you have no relevant information to add!


Steps to reproduce
  1. Share via federation to user@nextcloudserver.com
  2. Uncheck "can reshare"
  3. Person receives and accepts share.
Expected behaviour

Tell us what should happen
The person with whom the file or folder was shared should not be able to further share the file or folder. The share link and share options under share should not be visible or grayed out thereby disallowing the person from further sharing the file or folder.

Actual behaviour

Tell us what happens instead
The person shared can select share options like "share link" or share with others via email or federated.

Server configuration

Operating system: Rasperian Stretch

Web server: Nginx

Database: MarionDB

PHP version: 7.0

Nextcloud version: (see Nextcloud admin page) 14

Updated from an older Nextcloud/ownCloud or fresh install: Update from 13.0.6

Where did you install Nextcloud from: Nextcloud servers

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

Nextcloud configuration:

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. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the federation-sharing flow described: share with can-reshare disabled, accept the share, and check whether link and sharing options remain available. No files, tests, or entry points are named in the issue, so the relevant sharing and federation implementation must first be located. Done means the recipient cannot reshare the file or folder through links, email, or federation.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.