This is an automated email from the ASF dual-hosted git repository.

oscerd pushed a commit to branch camel-4.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.14.x by this push:
     new 9915ad461dad [backport camel-4.14.x] CAMEL-23575: camel-mongodb-gridfs 
- align Exchange header constant names with Camel naming convention (#23486)
9915ad461dad is described below

commit 9915ad461dad8f5073782f643557bf1e7ae3bc31
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon May 25 09:57:43 2026 +0200

    [backport camel-4.14.x] CAMEL-23575: camel-mongodb-gridfs - align Exchange 
header constant names with Camel naming convention (#23486)
    
    Cherry-pick of #23413 (CAMEL-23575) onto the 4.14.x maintenance branch
    for the 4.14.8 release line. The GridFsConstants header-name values were
    byte-identical on main, camel-4.18.x and camel-4.14.x, so the rename
    applies cleanly.
    
    The Java field names are unchanged so routes/code referencing the
    constants symbolically continue to work as-is:
    
      gridfs.operation -> CamelGridFsOperation
      gridfs.metadata  -> CamelGridFsMetadata
      gridfs.chunksize -> CamelGridFsChunkSize
      gridfs.objectid  -> CamelGridFsObjectId
      gridfs.fileid    -> CamelGridFsFileId
    
    Includes the cascading regen of the component catalog and the
    GridFsHeaderNameBuilder Endpoint DSL accessors. Per the backport
    upgrade-guide policy, the 4.14 upgrade-guide entry is added on main
    via a separate doc-sync PR (#23487).
    
    Reported by Claude Code on behalf of Andrea Cosentino.
---
 .../camel/catalog/components/mongodb-gridfs.json   | 10 ++++----
 .../component/mongodb/gridfs/mongodb-gridfs.json   | 10 ++++----
 .../component/mongodb/gridfs/GridFsConstants.java  | 10 ++++----
 .../endpoint/dsl/GridFsEndpointBuilderFactory.java | 30 +++++++++++-----------
 4 files changed, 30 insertions(+), 30 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mongodb-gridfs.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mongodb-gridfs.json
index b90caa820528..ba39721d7a7a 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mongodb-gridfs.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mongodb-gridfs.json
@@ -35,11 +35,11 @@
     "CamelFileName": { "index": 3, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The name of the file.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#FILE_NAME" },
     "Content-Type": { "index": 4, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The content type of the file.", 
"constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#CONTENT_TYPE" },
     "CamelFileNameProduced": { "index": 5, "kind": "header", "displayName": 
"", "group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The file name produced.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#FILE_NAME_PRODUCED" 
},
-    "gridfs.metadata": { "index": 6, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "Any additional metadata stored along with the file in 
JSON format.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_METADATA" },
-    "gridfs.operation": { "index": 7, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The operation to perform.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_OPERATION" },
-    "gridfs.chunksize": { "index": 8, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"Integer", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The number of bytes per chunk for the uploaded 
file.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_CHUNKSIZE" },
-    "gridfs.fileid": { "index": 9, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"org.bson.types.ObjectId", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The ObjectId of the file 
produced", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_FILE_ID_PRODUCED"
 },
-    "gridfs.objectid": { "index": 10, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"org.bson.types.ObjectId", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The ObjectId of the 
file.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_OBJECT_ID" }
+    "CamelGridFsMetadata": { "index": 6, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "Any additional metadata stored along with the file in 
JSON format.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_METADATA" },
+    "CamelGridFsOperation": { "index": 7, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The operation to perform.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_OPERATION" },
+    "CamelGridFsChunkSize": { "index": 8, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"Integer", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The number of bytes per chunk for the uploaded 
file.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_CHUNKSIZE" },
+    "CamelGridFsFileId": { "index": 9, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"org.bson.types.ObjectId", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The ObjectId of the file 
produced", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_FILE_ID_PRODUCED"
 },
+    "CamelGridFsObjectId": { "index": 10, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"org.bson.types.ObjectId", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The ObjectId of the 
file.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_OBJECT_ID" }
   },
   "properties": {
     "connectionBean": { "index": 0, "kind": "path", "displayName": "Connection 
Bean", "group": "common", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "Name of 
com.mongodb.client.MongoClient to use." },
diff --git 
a/components/camel-mongodb-gridfs/src/generated/resources/META-INF/org/apache/camel/component/mongodb/gridfs/mongodb-gridfs.json
 
b/components/camel-mongodb-gridfs/src/generated/resources/META-INF/org/apache/camel/component/mongodb/gridfs/mongodb-gridfs.json
index b90caa820528..ba39721d7a7a 100644
--- 
a/components/camel-mongodb-gridfs/src/generated/resources/META-INF/org/apache/camel/component/mongodb/gridfs/mongodb-gridfs.json
+++ 
b/components/camel-mongodb-gridfs/src/generated/resources/META-INF/org/apache/camel/component/mongodb/gridfs/mongodb-gridfs.json
@@ -35,11 +35,11 @@
     "CamelFileName": { "index": 3, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The name of the file.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#FILE_NAME" },
     "Content-Type": { "index": 4, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The content type of the file.", 
"constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#CONTENT_TYPE" },
     "CamelFileNameProduced": { "index": 5, "kind": "header", "displayName": 
"", "group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The file name produced.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#FILE_NAME_PRODUCED" 
},
-    "gridfs.metadata": { "index": 6, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "Any additional metadata stored along with the file in 
JSON format.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_METADATA" },
-    "gridfs.operation": { "index": 7, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The operation to perform.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_OPERATION" },
-    "gridfs.chunksize": { "index": 8, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"Integer", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The number of bytes per chunk for the uploaded 
file.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_CHUNKSIZE" },
-    "gridfs.fileid": { "index": 9, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"org.bson.types.ObjectId", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The ObjectId of the file 
produced", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_FILE_ID_PRODUCED"
 },
-    "gridfs.objectid": { "index": 10, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"org.bson.types.ObjectId", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The ObjectId of the 
file.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_OBJECT_ID" }
+    "CamelGridFsMetadata": { "index": 6, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "Any additional metadata stored along with the file in 
JSON format.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_METADATA" },
+    "CamelGridFsOperation": { "index": 7, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"String", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The operation to perform.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_OPERATION" },
+    "CamelGridFsChunkSize": { "index": 8, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"Integer", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The number of bytes per chunk for the uploaded 
file.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_CHUNKSIZE" },
+    "CamelGridFsFileId": { "index": 9, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"org.bson.types.ObjectId", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The ObjectId of the file 
produced", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_FILE_ID_PRODUCED"
 },
+    "CamelGridFsObjectId": { "index": 10, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"org.bson.types.ObjectId", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The ObjectId of the 
file.", "constantName": 
"org.apache.camel.component.mongodb.gridfs.GridFsConstants#GRIDFS_OBJECT_ID" }
   },
   "properties": {
     "connectionBean": { "index": 0, "kind": "path", "displayName": "Connection 
Bean", "group": "common", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "Name of 
com.mongodb.client.MongoClient to use." },
diff --git 
a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/mongodb/gridfs/GridFsConstants.java
 
b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/mongodb/gridfs/GridFsConstants.java
index f05dde5fd811..674fa58a6207 100644
--- 
a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/mongodb/gridfs/GridFsConstants.java
+++ 
b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/mongodb/gridfs/GridFsConstants.java
@@ -41,15 +41,15 @@ public final class GridFsConstants {
     public static final String GRIDFS_FILE_KEY_UPLOAD_DATE = "uploadDate";
     public static final String PERSISTENT_TIMESTAMP_KEY = "timestamp";
     @Metadata(description = "Any additional metadata stored along with the 
file in JSON format.", javaType = "String")
-    public static final String GRIDFS_METADATA = "gridfs.metadata";
+    public static final String GRIDFS_METADATA = "CamelGridFsMetadata";
     @Metadata(label = "producer", description = "The operation to perform.", 
javaType = "String")
-    public static final String GRIDFS_OPERATION = "gridfs.operation";
+    public static final String GRIDFS_OPERATION = "CamelGridFsOperation";
     @Metadata(label = "producer", description = "The number of bytes per chunk 
for the uploaded file.", javaType = "Integer")
-    public static final String GRIDFS_CHUNKSIZE = "gridfs.chunksize";
+    public static final String GRIDFS_CHUNKSIZE = "CamelGridFsChunkSize";
     @Metadata(label = "producer", description = "The ObjectId of the file 
produced", javaType = "org.bson.types.ObjectId")
-    public static final String GRIDFS_FILE_ID_PRODUCED = "gridfs.fileid";
+    public static final String GRIDFS_FILE_ID_PRODUCED = "CamelGridFsFileId";
     @Metadata(label = "producer", description = "The ObjectId of the file.", 
javaType = "org.bson.types.ObjectId")
-    public static final String GRIDFS_OBJECT_ID = "gridfs.objectid";
+    public static final String GRIDFS_OBJECT_ID = "CamelGridFsObjectId";
 
     private GridFsConstants() {
     }
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GridFsEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GridFsEndpointBuilderFactory.java
index ab77c905474c..20d3c62225a2 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GridFsEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GridFsEndpointBuilderFactory.java
@@ -896,10 +896,10 @@ public interface GridFsEndpointBuilderFactory {
          * 
          * Group: common
          * 
-         * @return the name of the header {@code gridfs.metadata}.
+         * @return the name of the header {@code GridFsMetadata}.
          */
-        public String gridfsMetadata() {
-            return "gridfs.metadata";
+        public String gridFsMetadata() {
+            return "CamelGridFsMetadata";
         }
         /**
          * The operation to perform.
@@ -908,10 +908,10 @@ public interface GridFsEndpointBuilderFactory {
          * 
          * Group: producer
          * 
-         * @return the name of the header {@code gridfs.operation}.
+         * @return the name of the header {@code GridFsOperation}.
          */
-        public String gridfsOperation() {
-            return "gridfs.operation";
+        public String gridFsOperation() {
+            return "CamelGridFsOperation";
         }
         /**
          * The number of bytes per chunk for the uploaded file.
@@ -920,10 +920,10 @@ public interface GridFsEndpointBuilderFactory {
          * 
          * Group: producer
          * 
-         * @return the name of the header {@code gridfs.chunksize}.
+         * @return the name of the header {@code GridFsChunkSize}.
          */
-        public String gridfsChunksize() {
-            return "gridfs.chunksize";
+        public String gridFsChunkSize() {
+            return "CamelGridFsChunkSize";
         }
         /**
          * The ObjectId of the file produced.
@@ -932,10 +932,10 @@ public interface GridFsEndpointBuilderFactory {
          * 
          * Group: producer
          * 
-         * @return the name of the header {@code gridfs.fileid}.
+         * @return the name of the header {@code GridFsFileId}.
          */
-        public String gridfsFileid() {
-            return "gridfs.fileid";
+        public String gridFsFileId() {
+            return "CamelGridFsFileId";
         }
         /**
          * The ObjectId of the file.
@@ -944,10 +944,10 @@ public interface GridFsEndpointBuilderFactory {
          * 
          * Group: producer
          * 
-         * @return the name of the header {@code gridfs.objectid}.
+         * @return the name of the header {@code GridFsObjectId}.
          */
-        public String gridfsObjectid() {
-            return "gridfs.objectid";
+        public String gridFsObjectId() {
+            return "CamelGridFsObjectId";
         }
     }
     static GridFsEndpointBuilder endpointBuilder(String componentName, String 
path) {

Reply via email to