Skip to content

[camel-4.18.x] Fix transformer name normalization for catalog lookup during export#23782

Merged
davsclaus merged 1 commit into
apache:camel-4.18.xfrom
smongiar:fix/transformer-name-resolution-4.18.x
Jun 5, 2026
Merged

[camel-4.18.x] Fix transformer name normalization for catalog lookup during export#23782
davsclaus merged 1 commit into
apache:camel-4.18.xfrom
smongiar:fix/transformer-name-resolution-4.18.x

Conversation

@smongiar
Copy link
Copy Markdown
Contributor

@smongiar smongiar commented Jun 5, 2026

Cherry-pick of #23780 to camel-4.18.x.

Summary

  • Normalize transformer names before catalog lookup in DependencyDownloaderTransformerResolver
  • Transformer names use colon-separated format (aws2-ddb:application-json) but the catalog stores them in dash-separated format (aws2-ddb-application-json)
  • The normalize(key) method from TransformerResolver already handles this conversion — it just wasn't being called before the catalog lookup

Test plan

  • Added catalogLookupShouldNormalizeColonSeparatedNames() test
  • Existing stubTransformerShouldHaveNameSet() test still passes

Transformer names use colon-separated format (e.g., aws2-ddb:application-json)
but the catalog stores them in dash-separated format (aws2-ddb-application-json).
Normalize the name before catalog lookup using the existing normalize() method.

This fixes camel export failing with "Cannot find transformer with name:
aws2-ddb:application-json. Did you mean: aws2-ddb-application-json" when
exporting routes that use kamelets with data type transformers.
@davsclaus davsclaus merged commit cd5af11 into apache:camel-4.18.x Jun 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants