You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2026/05/20 16:38:00 UTC
[jira] [Work started] (CAMEL-23575) camel-mongodb-gridfs: align Exchange header constant names with Camel naming convention
[ https://issues.apache.org/jira/browse/CAMEL-23575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-23575 started by Andrea Cosentino.
------------------------------------------------
> camel-mongodb-gridfs: align Exchange header constant names with Camel naming convention
> ---------------------------------------------------------------------------------------
>
> Key: CAMEL-23575
> URL: https://issues.apache.org/jira/browse/CAMEL-23575
> Project: Camel
> Issue Type: Improvement
> Components: camel-mongodb-gridfs
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 4.14.8, 4.18.3, 4.21.0
>
>
> The Exchange header constants in {{GridFsConstants}} ({{camel-mongodb-gridfs}}) use raw string values that do not follow the {{Camel<Component><Field>}} naming convention used across the rest of the component catalog — notably the parent {{camel-mongodb}} component, where {{MongoDbConstants.OPERATION_HEADER}} is {{CamelMongoDbOperation}}. Rename the string *values* only — keep the Java field names unchanged so routes/code referencing the constants symbolically continue to work:
> * {{GridFsConstants.GRIDFS_OPERATION}}: {{gridfs.operation}} -> {{CamelGridFsOperation}}
> * {{GridFsConstants.GRIDFS_METADATA}}: {{gridfs.metadata}} -> {{CamelGridFsMetadata}}
> * {{GridFsConstants.GRIDFS_CHUNKSIZE}}: {{gridfs.chunksize}} -> {{CamelGridFsChunkSize}}
> * {{GridFsConstants.GRIDFS_OBJECT_ID}}: {{gridfs.objectid}} -> {{CamelGridFsObjectId}}
> * {{GridFsConstants.GRIDFS_FILE_ID_PRODUCED}}: {{gridfs.fileid}} -> {{CamelGridFsFileId}}
> Consistent with the same alignment applied to camel-lucene (CAMEL-23509), camel-jgroups (CAMEL-23510), camel-jgroups-raft (CAMEL-23511), and camel-cxf (CAMEL-23526). Affects 4.21.0 (current main), 4.18.x, and 4.14.x — the constants are identical on all three branches.
> h4. Tasks
> * Change the five constant string values in {{GridFsConstants}}; keep Java field names.
> * Audit usages of the literal string values across {{camel-mongodb-gridfs}} and tests for consistency.
> * Regenerate component metadata, catalog, and endpoint DSL.
> * Add a {{=== camel-mongodb-gridfs}} entry to {{docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc}} (and the matching 4.18 / 4.14 upgrade-guide files when backporting), mirroring the camel-cxf entry (symbolic references unaffected; routes using the literal string keys must be updated).
> _Reported by Claude Code on behalf of Andrea Cosentino._
--
This message was sent by Atlassian Jira
(v8.20.10#820010)