From 7d9df9964559d890afe946e6862b68f1b28fac04 Mon Sep 17 00:00:00 2001 From: Ishank Arora Date: Thu, 3 Sep 2020 15:27:09 +0200 Subject: [PATCH] Handle listing of expired shares --- internal/grpc/services/gateway/storageprovider.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/internal/grpc/services/gateway/storageprovider.go b/internal/grpc/services/gateway/storageprovider.go index 7a15d989dd0..5d92ca96b56 100644 --- a/internal/grpc/services/gateway/storageprovider.go +++ b/internal/grpc/services/gateway/storageprovider.go @@ -1318,11 +1318,10 @@ func (s *svc) ListContainer(ctx context.Context, req *provider.ListContainerRequ } if protocol == "webdav" { - info, err = s.webdavRefStat(ctx, ref.Target) - if err != nil { - return &provider.ListContainerResponse{ - Status: status.NewInternal(ctx, err, "gateway: error resolving webdav reference: "+ref.Target), - }, nil + webdavInfo, err := s.webdavRefStat(ctx, ref.Target) + if err == nil { + // Might be the case that the webdav token has expired. In that case, use the reference's info + info = webdavInfo } }