Skip to content

Commit 1d4f542

Browse files
committed
propogate a storege id
1 parent b4cd50a commit 1d4f542

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/grpc/services/storageprovider/storageprovider.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import (
3333
rpc "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
3434
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
3535
typesv1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
36+
"github.com/mitchellh/mapstructure"
3637
"github.com/owncloud/reva/v2/pkg/appctx"
3738
"github.com/owncloud/reva/v2/pkg/conversions"
3839
ctxpkg "github.com/owncloud/reva/v2/pkg/ctx"
@@ -47,7 +48,6 @@ import (
4748
"github.com/owncloud/reva/v2/pkg/storage/fs/registry"
4849
"github.com/owncloud/reva/v2/pkg/storagespace"
4950
"github.com/owncloud/reva/v2/pkg/utils"
50-
"github.com/mitchellh/mapstructure"
5151
"github.com/pkg/errors"
5252
"github.com/rs/zerolog"
5353
"go.opentelemetry.io/otel/attribute"
@@ -787,6 +787,7 @@ func (s *Service) Stat(ctx context.Context, req *provider.StatRequest) (*provide
787787
s.addMissingStorageProviderID(md.GetId(), nil)
788788
s.addMissingStorageProviderID(md.GetParentId(), nil)
789789
s.addMissingStorageProviderID(md.GetSpace().GetRoot(), nil)
790+
s.addMissingStorageProviderID(md.GetSpace().GetRootInfo().GetId(), nil)
790791

791792
return &provider.StatResponse{
792793
Status: status.NewOK(ctx),

0 commit comments

Comments
 (0)