This is an automated email from the ASF dual-hosted git repository.
oscerd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new c340fecab914 CAMEL-24517: camel-ibm-cos - set the BucketExists header
in the headBucket operation (#25784)
c340fecab914 is described below
commit c340fecab914bc5ad50eb185c2e9a4fd85c789f8
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu Aug 27 11:19:51 2026 +0200
CAMEL-24517: camel-ibm-cos - set the BucketExists header in the headBucket
operation (#25784)
headBucket set the result only as the message body; also set the declared
CamelIBMCOSBucketExists producer header so routes can read it.
Signed-off-by: Andrea Cosentino <[email protected]>
Co-authored-by: Claude Opus 4.8 <[email protected]>
---
.../src/main/java/org/apache/camel/component/ibm/cos/IBMCOSProducer.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/components/camel-ibm/camel-ibm-cos/src/main/java/org/apache/camel/component/ibm/cos/IBMCOSProducer.java
b/components/camel-ibm/camel-ibm-cos/src/main/java/org/apache/camel/component/ibm/cos/IBMCOSProducer.java
index c4e105af2e00..81d472d76d7a 100644
---
a/components/camel-ibm/camel-ibm-cos/src/main/java/org/apache/camel/component/ibm/cos/IBMCOSProducer.java
+++
b/components/camel-ibm/camel-ibm-cos/src/main/java/org/apache/camel/component/ibm/cos/IBMCOSProducer.java
@@ -348,6 +348,7 @@ public class IBMCOSProducer extends DefaultProducer {
Message message = getMessageForResponse(exchange);
message.setBody(exists);
+ message.setHeader(IBMCOSConstants.BUCKET_EXISTS, exists);
}
private String determineBucketName(Exchange exchange) {