Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10939

Restlet contract for RestConsumerFactory does not start the Endpoint

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.19.0
    • Fix Version/s: None
    • Component/s: camel-restlet
    • Labels:
      None
    • Estimated Complexity:
      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

            Activity

              People

              • Assignee:
                zregvart Zoran Regvart
                Reporter:
                zregvart Zoran Regvart
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: