From 4f0949dd8a01dfe1e7f8590922207362ee2dfe73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Wed, 27 Oct 2021 09:55:35 +0200 Subject: [PATCH] WIP: Fix restoring recycle items --- internal/grpc/services/gateway/storageprovider.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/grpc/services/gateway/storageprovider.go b/internal/grpc/services/gateway/storageprovider.go index 01babe3c91..30c40bf12f 100644 --- a/internal/grpc/services/gateway/storageprovider.go +++ b/internal/grpc/services/gateway/storageprovider.go @@ -1071,6 +1071,8 @@ func (s *svc) RestoreRecycleItem(ctx context.Context, req *provider.RestoreRecyc }, nil } + // TODO: HELP?!? + req.RestoreRef.Path = strings.TrimPrefix(req.RestoreRef.Path, destinationProviderInfo[0].ProviderPath) res, err := c.RestoreRecycleItem(ctx, req) if err != nil { return nil, errors.Wrap(err, "gateway: error calling RestoreRecycleItem")