atiaomar1978-hub opened a new pull request, #25635: URL: https://github.com/apache/camel/pull/25635
## Summary Fixes [CAMEL-24410](https://issues.apache.org/jira/browse/CAMEL-24410): `camel export` fails when YAML `routeConfiguration` error handlers use a quoted string `redeliveryDelay` (e.g. `"500"`), while `camel run` works. ## Root cause During export, `KameletMain.setupExport()` registers `ExportTypeConverter` with `TypeConverterExists.Override` for `Duration.class` ← `String.class`. The converter handled numeric and boolean types but returned `null` for `Duration`, effectively replacing the default `DurationConverter` and causing: ``` NoTypeConversionAvailableException: No type converter available to convert from type: java.lang.String to the required type: java.time.Duration ``` ## Fix Add `Duration` handling to `ExportTypeConverter` using `TimeUtils.toDuration(s)`, matching Camel's standard duration parsing (milliseconds as plain numbers, or values like `500ms`, `2s`). ## Tests - `ExportTypeConverterTest` — unit tests for string/`500ms`/`2s` Duration conversion - `ExportTest.shouldExportRouteConfigurationWithStringRedeliveryDelay` — integration test using the JIRA reproduction YAML across main, Spring Boot, and Quarkus export runtimes ## Verification ``` ./mvnw -pl dsl/camel-kamelet-main -Dtest=ExportTypeConverterTest test ./mvnw -pl dsl/camel-jbang/camel-jbang-core -am -Dtest=ExportTest#shouldExportRouteConfigurationWithStringRedeliveryDelay test ``` --- _AI-generated PR description on behalf of atiaomar1978-hub_ -- 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]
