[Bug]: Share with 'UserX' on remote server 'Y' message in federated share menu may show incorrect info.
⚠️ 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
When initiating a federated / remote share the following is shown on screen. "Share with 'userX' on remote server 'Y'"
UserX shows the part of the federated cloud id before the first @ of the federated cloud id. Y shows the part of the federated cloud id between the first @ and the second @ of the federated cloud id.
Would it not be better if: UserX shows the part before the first @ + the part before the 2nd @, for instance the e-mail address or any other e-mail address like string that is used to identify users on the remote server. Y shows the server address.
See below screenshot to see what happens if you share with: before1stat@[email protected] Where before1stat@before2ndat is the user specific id on the remote server and after2ndat.com is the remote server address.
Since federated sharing is relatively complex it would help both the user and support if this message were to reflect the entered federated cloud id and correctly describe the remote server name. When someone sends an error message screenshot it would be clearly visible which id was entered.
The remote server name may be reflected in all full remote user names (from start to 2nd @), but this may not always be the case.
Steps to reproduce
- External share
- Share with before1stat@[email protected] (not through e-mailing a public link).
- See info message
Expected behavior
Like above:
UserX shows the part before the first @ + the part before the 2nd @, for instance the e-mail address or any other e-mail address like string that is used to identify users on the remote server. Y shows the server address.
Nextcloud Server version
32
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
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
Agreed, showing the federated cloudid would be something useful 👍
@provokateurin Ah, just showing the full input (the federated cloud id, if done correctly) instead would be a simple solution. Only pressing the Save Share button will show whether the remote user and remote server exist. Stating that there is a remote server may be premature.
Also, you can enter an external id with only 1 @ (like a regular e-mail address) and continue to the federated sharing menu. If the invalid input would be shown in the message (share with userX on remote server Y) with an error message, that would help people with the correct use of federated cloud ids in the federated sharing menu.
you can enter an external id with only 1 @ (like a regular e-mail address)
This is intentional AFAIK.
you can enter an external id with only 1 @ (like a regular e-mail address)
This is intentional AFAIK.
I did not realize some users may not have have an e-mailaddress in their username. Then it may be hard to check for correct useage.
Maybe this screen could show: Share with [Federated cloud id]: UserX on remote server Y
This last line would then use the federated cloud id and split into these elements after the last @ instead of the first @.