gnodet opened a new pull request, #31257: URL: https://github.com/apache/camel/pull/31257
## Summary Three bugs fixed in `camel-quartz`: one in the dev console and two in the route policy metadata. ## Root Cause & Fix **1. `QuartzConsole` — endpoint URI gated on `cron != null` instead of `uri != null`** In both `doCallText` (text output) and `doCallJson` (JSON output), the endpoint URI was only shown when a cron expression was present. This meant jobs without a cron expression (e.g. simple-trigger consumers with `scheduler=quartz`) never showed their URI. Fixed to fetch the URI unconditionally and gate the display on `uri != null`. **2. `CronScheduledRoutePolicy` — `timeZoneString` field inaccessible to catalog binder** The field `timeZoneString` carried `@Metadata` but its getter/setter were named `getTimeZone()` / `setTimeZone()`. The catalog binder resolves properties by field name, so it could not bind `timeZoneString` at all. Fixed by renaming the accessor pair to `getTimeZoneString()` / `setTimeZoneString()` to match the field name. The generated configurer now correctly dispatches on `"timeZoneString"`. **3. `SimpleScheduledRoutePolicy` — date fields missing `@Metadata`** The four `Date` fields (`routeStartDate`, `routeStopDate`, `routeSuspendDate`, `routeResumeDate`) had no `@Metadata` annotation, so they were invisible to catalog tooling and could not be configured via property binding. Fixed by adding `@Metadata` with descriptions on all four fields. The generated configurer and bean JSON now include all date fields. ## Tests Existing test suite: 139 tests, 0 failures (`mvn test -pl components/camel-quartz`). --- _Hermes Agent (Claude Sonnet 4.6) on behalf of Guillaume Nodet_ -- 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]
