Conversation
|
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
5c2b084
Compare
5c2b084 to
d4e6a96
Compare
d4e6a96 to
fa60fee
Compare
apps/files_sharing/lib/Command/ShowFederatedSharesAsInternal.php
Outdated
Show resolved
Hide resolved
apps/files_sharing/lib/Command/ShowFederatedSharesAsInternal.php
Outdated
Show resolved
Hide resolved
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
084ed3c
Compare
|
/compile |
2629602 to
438f722
Compare
|
/compile |
|
II would move |
Signed-off-by: nfebe <[email protected]>
Signed-off-by: Maxence Lange <[email protected]>
…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 <[email protected]>
e439bdb to
f471bd2
Compare
|
/compile |
Signed-off-by: nextcloud-command <[email protected]>
|
@nfebe is the setting documented elsewhere than here ? |
|
|
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