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: Bucket lifecycle configuration accepts long rule ID #8549

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

NSFS | S3 | Lifecycle: Bucket lifecycle configuration accepts long rule ID #8549

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

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. Bucket lifecycle rule accepts 512 character ID. Example
    {
    "Rules": [
    {
    "ID": "JiLekqcxZ6q0W0kKmiCLtVUYgyurIKmmUixcgHrkVKHyo6MfRU3EwPDD4NFBNWfA1Ej4qnuqSwS1NPRBvIn2x11aEf5kCK1GOjwp6SdTi17wivc9f7Zt44vaXkf73mME0PG1HwI8vGhzHfo9EptdWwdqG9J7mUYcGTbh63aUShPbjRAtLgIHYs2MyTTocohssHQ2cSnQiZjtLXi1j8h4AzFNFx5PzaPInmWqCiMrQPY6npbnbZrNKv7scXcLd0zkszxktHmgoPLLimJYHwaH0a2GRZqw6icnXUmSY4oXMzU1XAYBSJwQ3S3n42RlrVQK11JnZvKYYpKcB1cHz5oYNrGyRczopsgRvn6vPZ8TK9JfxTrDkwMB5o7vfQoXynZPkjeH4uX0N3TLqmEBUUcFGBPJND6vOMgfTiZDtMsBQPTtAepimZCbcRAmJ8F5GPj4ZQtjaXPgEFrEHWRpeEXknZBaBKZYaf8CQpi8WF3fHbnFbZK1G6x1oYG2gtn1MgHU",
    "Status": "Enabled",
    "Filter": {
    "Prefix": "small"
    },
    "Expiration": { "Days": 20 }
    }
    ]
    }

Expected behavior

  1. ID length on AWS S3 is limited to 255 characters

Steps to reproduce

1.Use the lifecycle rule above and PUT and GET bucket 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
2 participants