Claus Ibsen created CAMEL-27983:
-----------------------------------
Summary: camel-core - small bugs found while checking the catalog
descriptions
Key: CAMEL-27983
URL: https://issues.apache.org/jira/browse/CAMEL-27983
Project: Camel
Issue Type: Bug
Components: camel-core
Reporter: Claus Ibsen
Fix For: 4.25.0
h4. 1. DefaultHeaderFilterStrategy.setInFilter(String) / setOutFilter(String)
(camel-support)
Set.of(value.split(",")) does not trim, so "a, b" filters " b", and Set.of
throws IllegalArgumentException on a duplicate name. Proposed change: split,
trim, drop empty names, collect into a set.
h4. 2. DefaultBacklogDebugger: includeException is never read
(camel-base-engine)
camel.debug.includeException is stored but never read: the exception is always
attached at the end step (msg.setException(cause)). Proposed change: guard it
with isIncludeException(), as BacklogTracer does.
h4. 3. text-plain transformer leaves CamelCharsetName=UTF-8 on the exchange
(camel-core-processor)
StringDataTypeTransformer always sets the exchange property CamelCharsetName to
UTF-8. The property stays after the transformer and replaces any charset the
route set before. Proposed change: use UTF-8 only for this conversion, or
restore the previous value.
h4. 4. seda: queueFactory is a working endpoint parameter but not in the
catalog (camel-seda)
SedaComponent.createEndpoint reads queueFactory with
resolveAndRemoveReferenceParameter, and the doc shows
seda:priority?queueFactory=#..., but SedaEndpoint.queueFactory has no
@UriParam, so the catalog does not list it and validators flag the documented
example. Proposed change: add @UriParam(label = "advanced") and regenerate.
h4. 5. KeyValueAggregationRepository / KeyValueIdempotentRepository /
NamespacedKeyValueRepository: settable properties missing from the catalog
(camel-support)
repository, useRecovery, recoveryInterval, deadLetterUri, maximumRedeliveries,
allowSerializedHeaders (aggregation), repository (idempotent) and
delegate/namespace have no @Metadata, so the bean catalog cannot configure
these beans. Proposed change: add @Metadata.
Found while checking the option and console descriptions of CAMEL-27980.
----
_Filed by Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)