Andrea Cosentino created CAMEL-23586:
----------------------------------------
Summary: camel-mongodb-gridfs - align Exchange header constant
names with Camel naming convention
Key: CAMEL-23586
URL: https://issues.apache.org/jira/browse/CAMEL-23586
Project: Camel
Issue Type: Improvement
Components: camel-mongodb-gridfs
Reporter: Andrea Cosentino
Assignee: Andrea Cosentino
Fix For: 4.21.0
{{GridFsEndpoint}} reads constants from {{GridFsConstants}} with dotted
lowercase values:
* {{GRIDFS_OPERATION = "gridfs.operation"}} - dispatch (create / remove /
findOne / listAll / count)
* {{GRIDFS_OBJECT_ID = "gridfs.objectid"}} - target file for delete / findOne
* {{GRIDFS_METADATA = "gridfs.metadata"}} - JSON metadata on create
* {{GRIDFS_CHUNKSIZE = "gridfs.chunksize"}} - chunk size on upload
Rename to {{CamelMongoGridFs<Name>}}.
h3. Fix shape
Rename the *string value* of each producer-read header constant to
{{Camel<Component><Name>}}; keep the Java field name unchanged so routes that
reference the constants symbolically continue to compile and run. Update tests
that use the literal string values; regenerate component catalog JSON and docs;
add an upgrade-guide entry in {{camel-4x-upgrade-guide-4_21.adoc}} (and
matching 4_18 / 4_14 for backports where the component existed in those
branches).
h3. References
* Tracker: CAMEL-23577
* Precedent (rename pattern): CAMEL-23526 (camel-cxf)
* Alternative pattern (HeaderFilterStrategy approach): CAMEL-23532
(camel-vertx-websocket / camel-atmosphere-websocket / camel-iggy)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)