[Bug]: Sharing files to public via emails should not be displayed in UI if it is turned off in settings
⚠️ This issue respects the following points: ⚠️
- [x] This is a bug, not a question or a configuration/webserver/proxy issue.
- [x] This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- [x] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [x] I agree to follow Nextcloud's Code of Conduct.
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
- Go to File sapp. Click Details
- Go to section Share
- Observe External shares
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
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.
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?
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.