Add APIs to import/export IAM data (#15014)

This commit is contained in:
Poorna
2022-06-23 09:25:15 -07:00
committed by GitHub
parent 42e2fd35d8
commit 580d9db85e
6 changed files with 696 additions and 5 deletions

View File

@@ -804,7 +804,7 @@ func (a adminAPIHandlers) ImportBucketMetadataHandler(w http.ResponseWriter, r *
for _, file := range zr.File {
reader, err := file.Open()
if err != nil {
writeErrorResponse(ctx, w, importError(ctx, err, file.Name, bucket), r.URL)
writeErrorResponse(ctx, w, importError(ctx, err, file.Name, ""), r.URL)
return
}
sz := file.FileInfo().Size()