Skip to content

CAMEL-23279: fix SamplingDefinition.description() NumberFormatException with property placeholders (backport 4.18.x)#22441

Open
Croway wants to merge 1 commit intoapache:camel-4.18.xfrom
Croway:ci-issue-CAMEL-23279-4.18.x
Open

CAMEL-23279: fix SamplingDefinition.description() NumberFormatException with property placeholders (backport 4.18.x)#22441
Croway wants to merge 1 commit intoapache:camel-4.18.xfrom
Croway:ci-issue-CAMEL-23279-4.18.x

Conversation

@Croway
Copy link
Copy Markdown
Contributor

@Croway Croway commented Apr 3, 2026

Backport of #22440 to camel-4.18.x

Avoid premature parsing of samplePeriod through TimeUtils.toDuration() in description(), which fails when the value contains unresolved property placeholders.

…on with property placeholders

Avoid premature parsing of samplePeriod through TimeUtils.toDuration()
in description(), which fails when the value contains unresolved
property placeholders like {{sample.period}}. Return the raw string
value instead, consistent with ThrottleDefinition.description().
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.

1 participant