Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
1e9919f
fix: Fix space root handling in a graph sharedByMe
2403905 Jul 15, 2025
25534bb
test(acceptance): add missing blank line before scenario in sharedByM…
dragonchaser Nov 10, 2026
c292fc9
Merge pull request #3939 from dragonchaser/backport-wp2-746
butonic Nov 10, 2026
0e26528
fix(graph): reject empty and invisible drive names on update
pbleser-oc Nov 10, 2026
64a1ac8
feat(graph): add GET endpoints for single sharing permissions
asaah262 Nov 9, 2026
a2c2474
Merge branch 'main' into workpagages
butonic Nov 11, 2026
cb3a906
Merge pull request #3928 from asaah262/feat/899-get-single-sharing-pe…
asaah262 Nov 11, 2026
84c784a
feat(graph): improve logging and tracing for drive item permissions
asaah262 Nov 2, 2026
9c7ecc1
Merge pull request #3946 from pbleser-oc/fix/graph-reject-empty-drive…
butonic Nov 11, 2026
f12a02b
feat(graph): log error text and correlate gateway selection failures
asaah262 Nov 12, 2026
7ee5a8a
feat(frontend): add server managed spaces capability
kobergj May 20, 2025
9cb0728
docs(frontend): document the server managed spaces setting
mmattel May 21, 2025
ada4f0a
test(frontend): cover the server managed spaces capability
dragonchaser Nov 12, 2026
3999ed0
Merge pull request #3881 from asaah262/feat/895-improve-graph-logging…
asaah262 Nov 12, 2026
acb16b5
fix(graph): return the identities of the identity backend on /me
pbleser-oc Nov 12, 2026
498979b
Merge pull request #3976 from dragonchaser/backport-wp2-744
butonic Nov 13, 2026
21b48b9
Merge pull request #3981 from pbleser-oc/fix/graph-me-issuer-assigned-id
butonic Nov 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions services/frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,11 @@ For public accessible writable shares, a password can be enforced. To change the
Note that changing this environment variable only makes sense if\
`OC_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD`\
is set to `false`.

## Server Managed Spaces

The `frontend` service can announce that the membership of spaces is managed by the server instead of by users. To enable this, set the following environment variable to `true`:

`OC_CLAIM_MANAGED_SPACES_ENABLED`

When enabled, the `spaces` capability contains `server_managed: true`. Clients like the web UI evaluate this capability and block adding or removing users to or from spaces.
2 changes: 2 additions & 0 deletions services/frontend/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ type Config struct {

ConfigurableNotifications bool `yaml:"configurable_notifications" env:"FRONTEND_CONFIGURABLE_NOTIFICATIONS" desc:"Allow configuring notifications via web client." introductionVersion:"1.0.0"`

ServerManagedSpaces bool `yaml:"server_managed_spaces" env:"OC_CLAIM_MANAGED_SPACES_ENABLED" desc:"Mark spaces as managed by the server. Clients like the web UI then block adding or removing users to or from spaces. See the text description for more details." introductionVersion:"%%NEXT%%"`

Groupware Groupware `yaml:"groupware"`

Context context.Context `yaml:"-"`
Expand Down
13 changes: 7 additions & 6 deletions services/frontend/pkg/revaconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,13 @@ func FrontendConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string
},
},
"spaces": map[string]any{
"version": "1.0.0",
"enabled": true,
"projects": true,
"share_jail": true,
"max_quota": cfg.MaxQuota,
"default_quota": parseQuota(cfg.DefaultQuota),
"version": "1.0.0",
"enabled": true,
"projects": true,
"share_jail": true,
"max_quota": cfg.MaxQuota,
"default_quota": parseQuota(cfg.DefaultQuota),
"server_managed": cfg.ServerManagedSpaces,
},
"theme": capabilities.Default().Theme,
"search": map[string]any{
Expand Down
14 changes: 14 additions & 0 deletions services/frontend/pkg/revaconfig/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ func TestContentSearchCapabilityFollowsFullTextSearch(t *testing.T) {
}
}

func TestServerManagedCapabilityFollowsServerManagedSpaces(t *testing.T) {
for _, enabled := range []bool{true, false} {
cfg := defaults.FullDefaultConfig()
cfg.Commons = &shared.Commons{}
cfg.ServerManagedSpaces = enabled

rcfg, err := FrontendConfigFromStruct(cfg, log.NopLogger())
require.NoError(t, err)

got := dig(t, rcfg, "http", "services", "ocs", "capabilities", "capabilities", "spaces")["server_managed"]
require.Equal(t, enabled, got)
}
}

func dig(t *testing.T, m map[string]any, keys ...string) map[string]any {
t.Helper()
for _, k := range keys {
Expand Down
144 changes: 144 additions & 0 deletions services/graph/mocks/drive_item_permissions_provider.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading