Uh oh!
There was an error while loading. Please reload this page.
feat(files_sharing): Add toggle to control display area for federated shares - #52511
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kesselb
commented
Apr 30, 2025
Hi, With sharing.federation.show_remote_shares_as_internal = true, is it possible to add such a share by entering the user's name in the internal shares section? I currently don't have a GS setup to validate this myself. Given that federation and GS are quite complex topics with various configuration options that can influence behavior, I think we should do another round of planning to adjust the new sharing sidebar to meet expectations. I'm concerned that a simple flag to move shares from one list to another might not be sufficient. |
Yes, that is the goal (or how it has been before the latest change). For a GS setup with this config flag (and it ultimately will do more than just this PR). In the end federated shared (in a GS setup/scenario) shall behave (from a user perspective) like local shares (while this will have its limitations or in other word won't be possible 100% given technical limitations). So another (the second aspect to come later) is to hide the (remote) info on the username on the share-item in the sidebar because "should behave local". @kesselb This PR is mandatory for the next release (!). |
4336802 to
5c2b084Compare5c2b084 to
d4e6a96Compared4e6a96 to
fa60feeCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kesselb
commented
May 2, 2025
Currently, the administrator has to set the configuration value to revert to the old behavior. I assume Ferdinand was referring to the following code. With GS enabled, the sharees API will query the lookup server regardless of the given share type, and therefore also return users from other nodes in the GS compound. While I don't fully understand how onlyInternalFederation (gs.federation true/false) influences this, we could use isGlobalScaleEnabled as the default value to revert to the old behavior for affected customers without requiring any additional actions on their end. However, we should keep the option to override it for those who might need it. server/apps/files_sharing/lib/Controller/ShareesAPIController.php Lines 179 to 180 in 9a16e4f Example: $this->initialState->provideInitialState(
'showFederatedSharesAsInternal',
$this->appConfig->getAppValueBool('show_federated_shares_as_internal', $this->globalScaleConfig->isGlobalScaleEnabled())
);Footnotes |
70ada64 to
084ed3cComparenfebe
commented
May 6, 2025
/compile |
2629602 to
438f722Comparenfebe
commented
May 6, 2025
/compile |
ArtificialOwl
commented
May 6, 2025
II would move |
Signed-off-by: nfebe <fenn25.fn@gmail.com>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
…g input - Fix autoloading for new `ConfigLexicon` - Ensure that sharing input in sharing tab respect `show-federated-shares-as-internal`: This is important, because when federated shares are shown as internal the users should add them from the internal shares section Signed-off-by: nfebe <fenn25.fn@gmail.com>
e439bdb to
f471bd2Comparenfebe
commented
May 6, 2025
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
maximelehericy
commented
May 19, 2025
@nfebe is the setting documented elsewhere than here ? |
nfebe
commented
Jun 25, 2025
|
skjnldsv
commented
Jun 25, 2025
Sorry, but that sounds a bit extreme to add a custom config for this, no? |
Add command to control display area for federated shares following : #52423
Usage:
occ config:app:set --value false --type boolean files_sharing show_federated_shares_as_internalScreencast
external-shares-control.mp4