gnodet opened a new pull request, #31282:
URL: https://github.com/apache/camel/pull/31282

   ## Summary
   
   Fixes five independent catalog/configurer correctness bugs found in 
CAMEL-27983.
   
   ### Bug 1 — `DefaultHeaderFilterStrategy.setInFilter(String)` / 
`setOutFilter(String)` broken
   
   The string-accepting overloads split on commas but did not trim whitespace 
and used `Set.of(...)` which throws on duplicate tokens. Fixed to use a 
`HashSet` built from trimmed tokens.
   
   **Tests added:** `testSetInFilterFromStringWithTrimAndDuplicates` / 
`testSetOutFilterFromStringWithTrimAndDuplicates` in 
`DefaultHeaderFilterStrategyTest`
   
   ### Bug 2 — `DefaultBacklogDebugger`: `includeException` flag ignored in 
`doCompleted()`
   
   `doCompleted()` always set the exception on the suspended message regardless 
of `isIncludeException()`. Fixed with a guard.
   
   **Test added:** `testIncludeExceptionFalseDoesNotCaptureException` in 
`BacklogDebuggerEdgeCasesTest`
   
   ### Bug 3 — `StringDataTypeTransformer` clobbers `CamelCharsetName` exchange 
property
   
   The transformer unconditionally set `CamelCharsetName=UTF-8` on the exchange 
and never restored it, overwriting any charset set by the user or a prior 
transformer. Fixed to save/restore (or remove if absent) the original value.
   
   **Tests added:** `shouldNotClobberCharsetNameExchangeProperty` / 
`shouldClearCharsetNameWhenNotSetBeforeTransform` in 
`StringDataTypeTransformerTest`
   
   ### Bug 4 — `SedaEndpoint.queueFactory` missing from catalog / configurer
   
   The `queueFactory` field lacked `@UriParam` and a public getter, so it was 
invisible to the catalog and to property configurers. Added the annotation, a 
public getter, and regenerated the configurer and `seda.json`.
   
   ### Bug 5 — `KeyValueAggregationRepository`, `KeyValueIdempotentRepository`, 
`NamespacedKeyValueRepository` configurers were empty stubs
   
   Fields lacked `@Metadata` annotations, so the annotation processor generated 
stubs with no-op `configure()` / `getOptionType()` / `getOptionValue()` 
methods. Added `@Metadata` to all configurable fields and regenerated the three 
configurers and their bean JSON descriptors.
   
   ---
   
   _Hermès on behalf of gnodet_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to