xichen01 opened a new pull request, #9593:
URL: https://github.com/apache/ozone/pull/9593

   ## What changes were proposed in this pull request?
   
   Add additional validations for Lifecycle Rules based on AWS S3's Lifecycle 
features and Ozone's inherent characteristics:
   1.  Validate that the prefix length in the Rule is less than 1024 bytes [1]
   2.  Validate that Tag keys within the same Rule are unique [2]
   3. Verify that the length of a tag key within a rule is less than 128 bytes. 
[2]
   4. Verify that the length of a tag value within a rule is less than 256 
bytes. [2]
   5. Verify that the prefix within a rule cannot be the Trash Root directory 
or any of its subdirectories.
   
   
   
   Ref: 
   [1] https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
   [2] https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-tagging.html
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-12794
   
   ## How was this patch tested?
   unit test.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to