diff --git a/internal/grpc/services/gateway/storageprovider.go b/internal/grpc/services/gateway/storageprovider.go index 7a15d989dd..128c5cc6e5 100644 --- a/internal/grpc/services/gateway/storageprovider.go +++ b/internal/grpc/services/gateway/storageprovider.go @@ -1320,9 +1320,8 @@ 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 + // Might be the case that the webdav token has expired. In that case, use the reference's info + info = ref } }