From e51ee6d2299b10779d3b63f9f1eee100c9357ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Thu, 5 Mar 2026 09:24:21 +0100 Subject: [PATCH] Adapt to cs3api changes --- services/graph/pkg/identity/cs3.go | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/services/graph/pkg/identity/cs3.go b/services/graph/pkg/identity/cs3.go index e787a0ce5e..93de4ecb3d 100644 --- a/services/graph/pkg/identity/cs3.go +++ b/services/graph/pkg/identity/cs3.go @@ -111,7 +111,14 @@ func (i *CS3) GetUsers(ctx context.Context, oreq *godata.GoDataRequest) ([]*libr res, err := gatewayClient.FindUsers(ctx, &cs3user.FindUsersRequest{ // FIXME presence match is currently not implemented, an empty search currently leads to // Unwilling To Perform": Search Error: error parsing filter: (&(objectclass=posixAccount)(|(cn=*)(displayname=*)(mail=*))), error: Present filter match for cn not implemented - Query: search, + Filters: []*cs3user.Filter{ + { + Type: cs3user.Filter_TYPE_QUERY, + Term: &cs3user.Filter_Query{ + Query: search, + }, + }, + }, }) switch { case err != nil: @@ -162,7 +169,14 @@ func (i *CS3) GetGroups(ctx context.Context, oreq *godata.GoDataRequest) ([]*lib res, err := gatewayClient.FindGroups(ctx, &cs3group.FindGroupsRequest{ // FIXME presence match is currently not implemented, an empty search currently leads to // Unwilling To Perform": Search Error: error parsing filter: (&(objectclass=posixAccount)(|(cn=*)(displayname=*)(mail=*))), error: Present filter match for cn not implemented - Filter: search, + Filters: []*cs3group.Filter{ + { + Type: cs3group.Filter_TYPE_QUERY, + Term: &cs3group.Filter_Query{ + Query: search, + }, + }, + }, }) switch {