You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "priyeshkaratha (via GitHub)" <gi...@apache.org> on 2026/10/07 06:13:27 UTC
[PR] HDDS-16657. Reject lifecycle Transition actions in PutBucketLifecycleConfiguration [ozone]
priyeshkaratha opened a new pull request, #11430:
URL: https://github.com/apache/ozone/pull/11430
## What changes were proposed in this pull request?
Currently, PutBucketLifecycleConfiguration does not support the Transition field. If a request includes a Transition rule, the API silently ignores it and returns a 200 success response.
This change updates the behavior to reject requests that include a Transition rule, rather than silently dropping the unsupported field and returning a successful response.
## What is the link to the Apache JIRA
HDDS-16657
## How was this patch tested?
Tested using newly added testcase.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-16657. Reject lifecycle Transition actions in PutBucketLifecycleConfiguration [ozone]
Posted by "chungen0126 (via GitHub)" <gi...@apache.org>.
chungen0126 commented on PR #11430:
URL: https://github.com/apache/ozone/pull/11430#issuecomment-6042695168
Merged. Thanks @priyeshkaratha for working on this, @rich7420 for the review.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-16657. Reject lifecycle Transition actions in PutBucketLifecycleConfiguration [ozone]
Posted by "chungen0126 (via GitHub)" <gi...@apache.org>.
chungen0126 merged PR #11430:
URL: https://github.com/apache/ozone/pull/11430
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-16657. Reject lifecycle Transition actions in PutBucketLifecycleConfiguration [ozone]
Posted by "rich7420 (via GitHub)" <gi...@apache.org>.
rich7420 commented on code in PR #11430:
URL: https://github.com/apache/ozone/pull/11430#discussion_r4205372718
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/S3LifecycleConfiguration.java:
##########
@@ -181,6 +194,48 @@ public void setDaysAfterInitiation(Integer daysAfterInitiation) {
}
}
+ /**
+ * Transition entity for lifecycle rule. Ozone does not support lifecycle transition actions
+ * for any storage class; this is modeled only so a Transition element in the request is
+ * detected and rejected during conversion instead of being silently ignored.
+ */
+ @XmlAccessorType(XmlAccessType.FIELD)
+ @XmlRootElement(name = "Transition")
+ public static class Transition {
+ @XmlElement(name = "Days")
Review Comment:
nit: Could we omit `Days` and `Date` and their accessors? Transition actions are always rejected, so only `StorageClass` is needed for the error message.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org