Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.19.0
-
None
-
None
-
Unknown
Description
As uncovered in CAMEL-10935 the change introduced in CAMEL-10928 failed two tests.
The root cause for the test failure was that the Endpoint created at RestletComponent::createConsumer is not started, which leads to NullPointerException at RestletConsumer:65 as the restletBinding of the RestletEndpoint is created on Endpoint start.
The reason tests originally passed is because both RestletConsumer and RestletProducer used the same Endpoint originally created and started by the RestletProducer.
CAMEL-10928 changed the Endpoint parameter restletMethods to restletMethod for the RestletProducer whilst the RestletConsumer is using restletMethods, this results in differing Endpoint URIs which results in not getting the same Endpoint in the RestletConsumer as in RestletProduicer.
Attachments
Issue Links
- is related to
-
CAMEL-10928 Restlet contract for RestProducerFactory wrongly configures request method
- Resolved
-
CAMEL-10935 camel-restlet - Two unit test fails
- Resolved