Zoran Regvart created CAMEL-10939:
-------------------------------------
Summary: Restlet contract for RestConsumerFactory does not start
the Endpoint
Key: CAMEL-10939
URL: https://issues.apache.org/jira/browse/CAMEL-10939
Project: Camel
Issue Type: Bug
Components: camel-restlet
Affects Versions: 2.19.0
Reporter: Zoran Regvart
Assignee: Zoran Regvart
Priority: Minor
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}}.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)