From a113b2c3944997c8b803367b70a02d0f2dc1a015 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Thu, 25 Jan 2024 15:59:00 -0800 Subject: [PATCH] Fix inspect format.json exclusion (#18871) Right now the format.json is excluded if anything within `.minio.sys` is requested. I assume the check was meant to exclude only if it was actually requesting it. --- cmd/admin-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/admin-handlers.go b/cmd/admin-handlers.go index f6bca13f3..149970fe3 100644 --- a/cmd/admin-handlers.go +++ b/cmd/admin-handlers.go @@ -3092,7 +3092,7 @@ func (a adminAPIHandlers) InspectDataHandler(w http.ResponseWriter, r *http.Requ } // save the format.json as part of inspect by default - if volume != minioMetaBucket && file != formatConfigFile { + if !(volume == minioMetaBucket && file == formatConfigFile) { err = o.GetRawData(ctx, minioMetaBucket, formatConfigFile, rawDataFn) } if !errors.Is(err, errFileNotFound) {