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

   _Claude Code on behalf of davsclaus_
   
   JIRA: [CAMEL-27185](https://issues.apache.org/jira/browse/CAMEL-27185), 
[CAMEL-27186](https://issues.apache.org/jira/browse/CAMEL-27186)
   
   ## Problem
   
   - `scheduledEnqueueTime` is an `OffsetDateTime`. There is no String -> 
`OffsetDateTime` converter, so the option cannot be set in an endpoint URI or 
as a property. The endpoint fails to start. The description also does not say 
that the option is used only by `producerOperation=scheduleMessages`.
   - The `enableDeadLettering` description talks about "deadletter related 
headers" and subscriptions only. That is not what the consumer does.
   
   ## Changes
   
   - `ServiceBusTypeConverter`: new String -> `OffsetDateTime` converter 
(`OffsetDateTime.parse`, ISO-8601). In a URI the `+` of `+01:00` is decoded to 
a space, so the converter reads a space as `+`. `RAW(...)` and `%2B` also work. 
An ISO-8601 date-time never contains a space.
   - The converter also lets the `CamelAzureServiceBusScheduledEnqueueTime` 
header be a string.
   - `scheduledEnqueueTime` option and header: say they are used only by 
`scheduleMessages`, and give the format.
   - `enableDeadLettering`: new description, checked against 
`ServiceBusConsumer.ConsumerOnCompletion.onFailure`. A failed message is 
dead-lettered instead of abandoned. The exception is the reason and the stack 
trace the description. It goes to the dead-letter queue of the queue or 
subscription. Only in `PEEK_LOCK`, and not when `subQueue` is set.
   - Component doc: a short paragraph and a URI example for `scheduleMessages`.
   - Regenerated: component JSON, catalog copies (JSON and doc), endpoint DSL 
and component DSL.
   
   ## Tests
   
   - `ServiceBusTypeConverterTest`: 6 new tests (offset, `Z`, decoded `+`, 
empty string, invalid string, string header through the options proxy).
   - `ServiceBusEndpointTest`: 1 new test. Endpoint URIs with 
`scheduledEnqueueTime` resolve with a plain `+`, `%2B`, `RAW(...)` and `Z`. 
Without the space handling the plain `+` URI fails with "could not be parsed at 
index 19".
   - `mvn package` in the module: 1088 tests run, 1088 passed.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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