From 8f3ae7a9f96eb060430bed96ca26a976edce8d58 Mon Sep 17 00:00:00 2001 From: Suhaha Date: Thu, 2 Sep 2021 21:16:50 +0800 Subject: [PATCH] Release 2021.09.02.2 (#999) [skip pd_pr] * fix lint & update v2021.09.02.2 --- pkg/apiserver/diagnose/diagnose.go | 3 ++- release-version | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/apiserver/diagnose/diagnose.go b/pkg/apiserver/diagnose/diagnose.go index 13997cacdf..7ded67d6c9 100644 --- a/pkg/apiserver/diagnose/diagnose.go +++ b/pkg/apiserver/diagnose/diagnose.go @@ -20,6 +20,7 @@ import ( "net/http" "net/url" "os" + "path/filepath" "sync" "time" @@ -172,7 +173,7 @@ func (s *Service) metricsRelationViewHandler(c *gin.Context) { return } - data, err := ioutil.ReadFile(path) + data, err := ioutil.ReadFile(filepath.Clean(path)) if err != nil { _ = c.Error(err) return diff --git a/release-version b/release-version index 8a24c3bb01..6ee75a5f30 100644 --- a/release-version +++ b/release-version @@ -1,3 +1,3 @@ # This file specifies the TiDB Dashboard internal version, which will be printed in `--version` # and UI. In release branch, changing this file will result in publishing a new version and tag. -2021.09.02.1 +2021.09.02.2