oscerd commented on code in PR #28553:
URL: https://github.com/apache/camel/pull/28553#discussion_r4386692747


##########
components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioProducer.java:
##########
@@ -196,6 +196,11 @@ private void doPutObject(
                 .object(objectName)
                 .userMetadata(objectMetadata);
 
+        MinioChecks.checkIfConfigIsNotEmptyAndSetAndConfig(
+                getConfiguration()::getServerSideEncryption, 
putObjectRequest::sse);
+        MinioChecks.checkIfConfigIsNotEmptyAndSetAndConfig(
+                getConfiguration()::getServerSideEncryptionCustomerKey, 
putObjectRequest::sse);

Review Comment:
   Added explicit mutual exclusion guard: configuring both 
`serverSideEncryption` and `serverSideEncryptionCustomerKey` now throws an 
`IllegalArgumentException`.



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

Reply via email to