Claus Ibsen created CAMEL-26133:
-----------------------------------
Summary: camel-robotframework - the consumer fails on every poll,
and the producer fails on a null body or any null header or property
Key: CAMEL-26133
URL: https://issues.apache.org/jira/browse/CAMEL-26133
Project: Camel
Issue Type: Bug
Reporter: Claus Ibsen
Fix For: 4.24.0
Found while adding the catalog body types of mapstruct, robotframework, citrus
and spring-event (CAMEL-24961, PR #28417).
h4. 1. The consumer can never deliver
The polled exchange of the consumer has a null body, and
{{RobotFrameworkCamelUtils.createRobotVariablesFromCamelExchange}} (main
2a465aa4814c, line 53) converts the body with
{{mandatoryConvertTo(String.class, ...)}}, so every poll fails with
NoTypeConversionAvailableException and the consumer never runs a test. Checked
on 4.24.0-SNAPSHOT in-process.
Proposed: skip (or pass as empty) a null body when building the robot variables.
h4. 2. The producer fails on a null body or any null header or property value
The same {{mandatoryConvertTo}} is used for the body (main 2a465aa4814c, line
53) and for every header and exchange property (line 91), so a producer call
with a null body, or with any header or property whose value is null, fails.
The doc's examples that use only headers or only properties fail for this
reason. Checked on 4.24.0-SNAPSHOT in-process.
Proposed: skip null values (or map them to an empty value) when building the
robot variables.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)