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

   ## What changes were proposed in this pull request?
   A lifecycle rule whose Tag filter has no Value, or no Key, is saved with an 
empty filter. However, AWS S3 rejects such a body with 400 MalformedXML.
   
   This patch:
   - Rejects incomplete Tag filters set through S3G with `400 MalformedXML`.
   - Also rejects incomplete Tag filters set through the Java client (i.e., by 
directly calling `ozoneBucket.setLifecycleConfiguration()`).
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-17703
   
   ## How was this patch tested?
   
   Added tests for Tag filters with missing Keys or Values, and with empty 
Values, for both S3G and the Java client.


-- 
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