server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Sharing files to public via emails should not be displayed in UI if it is turned off in settings

Open oleua opened this issue 8 months ago • 3 comments

⚠️ This issue respects the following points: ⚠️

Bug description

After the last update in v32 I've found that the files sharing UI contains the section 'External shares', explaining "Share files with others outside your organization via public links and email addresses. You can also share to {productName} accounts on other instances using their federated cloud ID."

At the same time in sharing settings the option "Allow users to share via link and emails" and Federation is off.

Steps to reproduce

  1. Go to File sapp. Click Details
  2. Go to section Share
  3. Observe External shares
Image

Expected behavior

This section should be hidden if "Allow users to share via link and emails" is off.

Nextcloud Server version

32

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 32.0.1 to 32.0.2)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • [ ] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report


List of activated Apps


Nextcloud Signing status


Nextcloud Logs


Additional info

No response

oleua avatar Mar 19 '26 14:03 oleua

To make it easier for new users to understand the available external sharing method and keep a good overview, it may be useful to split up all external share methods over different sections. And then make them individually grayed out depending on server configuration, like you suggest.

The input field showing either the e-mail or federated share option does not verify the existence of a remote account, so a fallback email option does not have to be shown immediately.

koenbokern avatar Mar 19 '26 16:03 koenbokern

To make it easier for new users to understand the available external sharing method and keep a good overview, it may be useful to split up all external share methods over different sections. And then make them individually grayed out depending on server configuration, like you suggest.

The input field showing either the e-mail or federated share option does not verify the existence of a remote account, so a fallback email option does not have to be shown immediately.

Actually, I tried to place there email of existing users, non-existing users whatever and that didn't work. So, it is much confusing. How to get rid of it?

oleua avatar Mar 19 '26 18:03 oleua

Hi @oleua thanks for reporting the issue, depending on priorities we may consider developing a fix for the bug.

I agree that it is confusing to see the input in the section and that it would be better to hide it when sharing via link or mail is disabled. I think that the section should be hidden completely if no previous external shares were done for the file/folder in question, otherwise only the input field should be hidden.

salmart-dev avatar Mar 25 '26 15:03 salmart-dev