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 efa843736ca3 CAMEL-24494: camel-ibm-cos - fix the typo in the 
CacheControl header name (#25751)
efa843736ca3 is described below

commit efa843736ca319868561218cf54fd030866dd4c3
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Aug 26 10:50:49 2026 +0200

    CAMEL-24494: camel-ibm-cos - fix the typo in the CacheControl header name 
(#25751)
    
    * CAMEL-24494: camel-ibm-cos - fix the typo in the CacheControl header name
    
    The CACHE_CONTROL header constant carried the misspelled value
    "CamelIBMCOSContentControl" (a copy/paste slip) instead of
    "CamelIBMCOSCacheControl", even though it holds the object's Cache-Control
    metadata. Correct the header name so it matches its purpose, regenerate the
    component descriptors, and document the change in the 4.23 upgrade guide.
    
    Co-Authored-By: Claude Opus 4.8 <[email protected]>
    Signed-off-by: Andrea Cosentino <[email protected]>
    
    * CAMEL-24494: call out the CacheControl header rename as a breaking change 
in the upgrade guide
    
    Addresses review feedback: explicitly note that renaming the header value 
is a
    breaking change for routes referencing the literal header name (trivial to 
adapt).
    
    Co-Authored-By: Claude Opus 4.8 <[email protected]>
    Signed-off-by: Andrea Cosentino <[email protected]>
    
    ---------
    
    Signed-off-by: Andrea Cosentino <[email protected]>
    Co-authored-by: Claude Opus 4.8 <[email protected]>
---
 .../resources/org/apache/camel/catalog/components/ibm-cos.json    | 2 +-
 .../META-INF/org/apache/camel/component/ibm/cos/ibm-cos.json      | 2 +-
 .../java/org/apache/camel/component/ibm/cos/IBMCOSConstants.java  | 2 +-
 .../modules/ROOT/pages/camel-4x-upgrade-guide-4_23.adoc           | 8 ++++++++
 .../camel/builder/endpoint/dsl/IBMCOSEndpointBuilderFactory.java  | 6 +++---
 5 files changed, 14 insertions(+), 6 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-cos.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-cos.json
index 9cb43c11c57e..519c547b61bc 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-cos.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-cos.json
@@ -57,7 +57,7 @@
   "headers": {
     "CamelIBMCOSBucketName": { "index": 0, "kind": "header", "displayName": 
"", "group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The bucket Name which this object will be stored or 
which will be used for the current operation", "constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#BUCKET_NAME" },
     "CamelIBMCOSBucketDestinationName": { "index": 1, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The bucket Destination Name which will 
be used for the current operation", "constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#BUCKET_DESTINATION_NAME" },
-    "CamelIBMCOSContentControl": { "index": 2, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The optional Cache-Control HTTP header 
which allows the user to specify caching behavior", "constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#CACHE_CONTROL" },
+    "CamelIBMCOSCacheControl": { "index": 2, "kind": "header", "displayName": 
"", "group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The optional Cache-Control HTTP header which allows the 
user to specify caching behavior", "constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#CACHE_CONTROL" },
     "CamelIBMCOSContentDisposition": { "index": 3, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The optional Content-Disposition HTTP 
header, which specifies presentational information such as the recommended 
filename", "constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#CONTENT_DISPOSITION" },
     "CamelIBMCOSContentEncoding": { "index": 4, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The optional Content-Encoding HTTP 
header specifying what content encodings have been applied to the object", 
"constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#CONTENT_ENCODING" },
     "CamelIBMCOSContentLength": { "index": 5, "kind": "header", "displayName": 
"", "group": "common", "label": "", "required": false, "javaType": "Long", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The Content-Length HTTP header indicating the size of 
the associated object in bytes", "constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#CONTENT_LENGTH" },
diff --git 
a/components/camel-ibm/camel-ibm-cos/src/generated/resources/META-INF/org/apache/camel/component/ibm/cos/ibm-cos.json
 
b/components/camel-ibm/camel-ibm-cos/src/generated/resources/META-INF/org/apache/camel/component/ibm/cos/ibm-cos.json
index 9cb43c11c57e..519c547b61bc 100644
--- 
a/components/camel-ibm/camel-ibm-cos/src/generated/resources/META-INF/org/apache/camel/component/ibm/cos/ibm-cos.json
+++ 
b/components/camel-ibm/camel-ibm-cos/src/generated/resources/META-INF/org/apache/camel/component/ibm/cos/ibm-cos.json
@@ -57,7 +57,7 @@
   "headers": {
     "CamelIBMCOSBucketName": { "index": 0, "kind": "header", "displayName": 
"", "group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The bucket Name which this object will be stored or 
which will be used for the current operation", "constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#BUCKET_NAME" },
     "CamelIBMCOSBucketDestinationName": { "index": 1, "kind": "header", 
"displayName": "", "group": "producer", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The bucket Destination Name which will 
be used for the current operation", "constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#BUCKET_DESTINATION_NAME" },
-    "CamelIBMCOSContentControl": { "index": 2, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The optional Cache-Control HTTP header 
which allows the user to specify caching behavior", "constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#CACHE_CONTROL" },
+    "CamelIBMCOSCacheControl": { "index": 2, "kind": "header", "displayName": 
"", "group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The optional Cache-Control HTTP header which allows the 
user to specify caching behavior", "constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#CACHE_CONTROL" },
     "CamelIBMCOSContentDisposition": { "index": 3, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The optional Content-Disposition HTTP 
header, which specifies presentational information such as the recommended 
filename", "constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#CONTENT_DISPOSITION" },
     "CamelIBMCOSContentEncoding": { "index": 4, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The optional Content-Encoding HTTP 
header specifying what content encodings have been applied to the object", 
"constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#CONTENT_ENCODING" },
     "CamelIBMCOSContentLength": { "index": 5, "kind": "header", "displayName": 
"", "group": "common", "label": "", "required": false, "javaType": "Long", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The Content-Length HTTP header indicating the size of 
the associated object in bytes", "constantName": 
"org.apache.camel.component.ibm.cos.IBMCOSConstants#CONTENT_LENGTH" },
diff --git 
a/components/camel-ibm/camel-ibm-cos/src/main/java/org/apache/camel/component/ibm/cos/IBMCOSConstants.java
 
b/components/camel-ibm/camel-ibm-cos/src/main/java/org/apache/camel/component/ibm/cos/IBMCOSConstants.java
index 008058bdd73a..0ef269037b7f 100644
--- 
a/components/camel-ibm/camel-ibm-cos/src/main/java/org/apache/camel/component/ibm/cos/IBMCOSConstants.java
+++ 
b/components/camel-ibm/camel-ibm-cos/src/main/java/org/apache/camel/component/ibm/cos/IBMCOSConstants.java
@@ -32,7 +32,7 @@ public interface IBMCOSConstants {
     String BUCKET_DESTINATION_NAME = "CamelIBMCOSBucketDestinationName";
     @Metadata(description = "The *optional* Cache-Control HTTP header which 
allows the user to specify caching behavior",
               javaType = "String")
-    String CACHE_CONTROL = "CamelIBMCOSContentControl";
+    String CACHE_CONTROL = "CamelIBMCOSCacheControl";
     @Metadata(description = "The *optional* Content-Disposition HTTP header, 
which specifies presentational information such as the recommended filename",
               javaType = "String")
     String CONTENT_DISPOSITION = "CamelIBMCOSContentDisposition";
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_23.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_23.adoc
index 42b14caf6e92..2f308e1c2c6e 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_23.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_23.adoc
@@ -313,3 +313,11 @@ Two further checks are applied to the delivery address 
regardless of the option:
 `https` address was never actually delivered over TLS — the request was 
written in cleartext to the TLS
 port and the peer reset the connection. Such an address is now refused 
outright rather than attempted, and
 TLS delivery of asynchronous MDNs remains unsupported.
+
+=== camel-ibm-cos
+
+The `CACHE_CONTROL` header constant's value has been corrected from the 
misspelled `CamelIBMCOSContentControl`
+to `CamelIBMCOSCacheControl`, so the header name matches the Cache-Control 
metadata it carries. This is a
+breaking change for routes that reference the header by its literal string 
name: they must switch to
+`CamelIBMCOSCacheControl`, although the change is trivial to adapt. Routes 
using the
+`IBMCOSConstants.CACHE_CONTROL` constant are unaffected.
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/IBMCOSEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/IBMCOSEndpointBuilderFactory.java
index 8a0fcf6ef2f4..5c16a8379963 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/IBMCOSEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/IBMCOSEndpointBuilderFactory.java
@@ -1754,10 +1754,10 @@ public interface IBMCOSEndpointBuilderFactory {
          * 
          * Group: common
          * 
-         * @return the name of the header {@code IBMCOSContentControl}.
+         * @return the name of the header {@code IBMCOSCacheControl}.
          */
-        public String iBMCOSContentControl() {
-            return "CamelIBMCOSContentControl";
+        public String iBMCOSCacheControl() {
+            return "CamelIBMCOSCacheControl";
         }
         /**
          * The optional Content-Disposition HTTP header, which specifies

Reply via email to