diff --git a/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go b/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go index b56a99c45a..7ae2f34792 100644 --- a/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go +++ b/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go @@ -368,7 +368,7 @@ func (s *service) ListStorageSpaces(ctx context.Context, req *provider.ListStora switch k { case "virtual": virtualRootID := &provider.ResourceId{ - StorageId: storagespace.FormatStorageID(utils.ShareStorageProviderID, utils.ShareStorageProviderID), + StorageId: storagespace.FormatStorageID(utils.ShareStorageProviderID, utils.ShareStorageSpaceID), OpaqueId: utils.ShareStorageProviderID, } if spaceID == nil || isShareJailRoot(spaceID) { diff --git a/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go b/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go index 3fc1936c77..f66c22c3b9 100644 --- a/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go +++ b/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go @@ -864,7 +864,7 @@ func (h *Handler) listSharesWithMe(w http.ResponseWriter, r *http.Request) { // first stat mount point, but the shares storage provider only handles accepted shares so we send the try to make the requests for only those if rs.State == collaboration.ShareState_SHARE_STATE_ACCEPTED { mountID := &provider.ResourceId{ - StorageId: storagespace.FormatStorageID(utils.ShareStorageProviderID, utils.ShareStorageProviderID), + StorageId: storagespace.FormatStorageID(utils.ShareStorageProviderID, utils.ShareStorageSpaceID), OpaqueId: rs.Share.Id.OpaqueId, } info, status, err = h.getResourceInfoByID(ctx, client, mountID)