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: two rules with the same ID are accepted #8550

Closed
nhaustein opened this issue Nov 21, 2024 · 1 comment · Fixed by #8629
Closed

NSFS | S3 | Lifecycle: two rules with the same ID are accepted #8550

nhaustein opened this issue Nov 21, 2024 · 1 comment · Fixed by #8629

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. Two lifecycle rules with the same ID are accepted. Example of accepted lifecycle rule:
    {
    "Rules": [
    {
    "ID": "ID1",
    "Status": "Enabled",
    "Filter": {
    "Prefix": "small"
    },
    "Expiration": { "Days": 20 }
    },
    {
    "ID": "ID1",
    "Status": "Enabled",
    "Filter": {
    "Prefix": "large"
    },
    "Expiration": { "Days": 10 }
    }
    ]
    }

Expected behavior

  1. Rules with the same ID should be rejected.

Steps to reproduce

  1. Use the example above to PUT and get lifecycle configuration

More information - Screenshots / Logs / Other output

@achouhan09
Copy link
Member

@nhaustein added a fix for the issue and is ready for validation now. Thanks

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

Successfully merging a pull request may close this issue.

2 participants