Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NC | S3 flow | Put-Bucket-Policy Invalid Body error fix #8026

Merged

Conversation

romayalon
Copy link
Contributor

@romayalon romayalon commented May 8, 2024

Explain the changes

  1. Added invalid_body error to S3 put-bucket-policy - S3Error.MalformedPolicyNotAJSON

Issues: Fixed #xxx / Gap #xxx

  1. Fixed put-bucket-policy : An error message is not appropriate when an invalid JSON file is used. #7870
  2. Gaps - open an issue for other scenarios in which we throw incorrect error msg.

Testing Instructions:

  1. Auto -
    sudo NC_CORETEST=true node --trace-warnings ./node_modules/mocha/bin/mocha /Users/romy/github/noobaa-core/src/test/unit_tests/test_s3_bucket_policy.js
  2. Manual -
  • Doc added/updated
  • Tests added

@romayalon romayalon requested a review from guymguym May 8, 2024 11:24
Signed-off-by: Romy <35330373+romayalon@users.noreply.github.com>
@romayalon romayalon force-pushed the romy-put-bucket-policy-invalid-body-err branch from 21ef7d4 to 224894e Compare May 8, 2024 13:42
@romayalon romayalon merged commit e29767b into noobaa:master May 8, 2024
10 checks passed
@guymguym guymguym added this to the 5.15.3 milestone May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

put-bucket-policy : An error message is not appropriate when an invalid JSON file is used.
2 participants