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

NSFS | S3 | Lifecycle: Invalid rule status returns http error 500 #8553

Open
nhaustein opened this issue Nov 21, 2024 · 0 comments
Open

NSFS | S3 | Lifecycle: Invalid rule status returns http error 500 #8553

nhaustein opened this issue Nov 21, 2024 · 0 comments
Assignees
Labels

Comments

@nhaustein
Copy link

Environment info

  • NooBaa Version: noobaa-core-5.17.1-20241104.el9.x86_64
  • Platform: RHEL 9.2 x86

Actual behavior

  1. When posting a lifecycle rule with Status=enabled instead of Status=Enabled, Noobaa returns status 500. Here is an example of the policy:

{
"Rules": [
{
"ID": "Expiration-simple",
"Status": "enabled",
"Filter": {
"Prefix": "small"
},
"Expiration": { "Days": 20 }
}
]
}

Here is the status code from the aws cli debug response
2024-11-21 17:25:40,746 - MainThread - botocore.parsers - DEBUG - Response body:
b'InternalErrorWe encountered an internal error. Please try again./files?lifecyclem3rixim4-hnhpv-1102'
2024-11-21 17:25:40,748 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.PutBucketLifecycleConfiguration: calling handler <botocore.retryhandler.RetryHandler object at 0x7fd7d7f07760>
2024-11-21 17:25:40,748 - MainThread - botocore.retryhandler - DEBUG - retry needed: retryable HTTP status code received: 500

Expected behavior

  1. Invalid status should return 400 (bad request) instead of 500 (internal server error)

Steps to reproduce

  1. Use the lifecycle rule above.

More information - Screenshots / Logs / Other output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants