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), }, }