minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.88k stars 552 forks source link

Import bucket metadata must show CORS and general errors if any are found #5001

Closed marktheunissen closed 3 months ago

marktheunissen commented 4 months ago

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 license. By creating this pull request I represent that I have the right to license the contributions to the project maintainers under the Apache 2 license.

Description

Motivation and Context

How to test this PR?

Example of failed import errors, with this PR:

0/2 buckets were imported successfully.
Errors:

Name      : BADFORMAT/corsexporttest/cors.xml
  Error:  malformed zip - expecting format bucket/<config.json>

Name      : corsexporttest
  Notification:  ✔
  Quota:  ✔
  CORS:  ✗

Types of changes

Checklist:

marktheunissen commented 3 months ago

@harshavardhana please re-review and merge if happy, thanks.