From 73ab1c2f9f516eccf0be58432d11711b84efbeda Mon Sep 17 00:00:00 2001 From: Gianmaria Del Monte Date: Tue, 7 Nov 2023 14:28:31 +0100 Subject: [PATCH] fix space discoverY --- internal/http/services/owncloud/ocgraph/drives.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/http/services/owncloud/ocgraph/drives.go b/internal/http/services/owncloud/ocgraph/drives.go index 4c30db8cba..25e76ba3e7 100644 --- a/internal/http/services/owncloud/ocgraph/drives.go +++ b/internal/http/services/owncloud/ocgraph/drives.go @@ -113,12 +113,12 @@ func generateCs3Filters(request *godata.GoDataRequest) ([]*providerpb.ListStorag func (s *svc) cs3StorageSpaceToDrive(user *userpb.User, space *providerpb.StorageSpace) *libregraph.Drive { drive := &libregraph.Drive{ - DriveAlias: libregraph.PtrString(space.RootInfo.Path), - Id: libregraph.PtrString(space.Id.OpaqueId), + DriveAlias: libregraph.PtrString(space.RootInfo.Path[1:]), + Id: libregraph.PtrString(space.RootInfo.Path), Name: space.Name, DriveType: libregraph.PtrString(space.SpaceType), Root: &libregraph.DriveItem{ - Id: libregraph.PtrString(space.Id.OpaqueId), + Id: libregraph.PtrString(space.RootInfo.Path), Permissions: cs3PermissionsToLibreGraph(user, space.RootInfo.PermissionSet), }, }