Skip to content

Commit

Permalink
Handle listing of expired shares
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Sep 3, 2020
1 parent 6cfe5a9 commit cb6544d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/grpc/services/gateway/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit cb6544d

Please sign in to comment.