server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Share with 'UserX' on remote server 'Y' message in federated share menu may show incorrect info.

Open koenbokern opened this issue 8 months ago • 4 comments

⚠️ This issue respects the following points: ⚠️

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.

Image

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

  1. External share
  2. Share with before1stat@[email protected] (not through e-mailing a public link).
  3. 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

koenbokern avatar Mar 19 '26 10:03 koenbokern

Agreed, showing the federated cloudid would be something useful 👍

provokateurin avatar Mar 23 '26 09:03 provokateurin

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

koenbokern avatar Mar 23 '26 10:03 koenbokern

you can enter an external id with only 1 @ (like a regular e-mail address)

This is intentional AFAIK.

provokateurin avatar Mar 23 '26 10:03 provokateurin

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

koenbokern avatar Mar 23 '26 11:03 koenbokern