Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9121

[came-twilio] password/username/accountSid endpoint parameters does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.1
    • None
    • Camel
    • None
    • % %
    • Fuse 7.1 Sprint 31

    Description

      I use camel-twilio endpoint:

      twilio:account/fetch?password=xxxx&accountSid=xxxx
      

      Password and accountSid parameters are not used because twilio REST client is initialized on Component start but credentials are set on Endpoint.

      This results in:

      Caused by: com.twilio.exception.ApiException: The requested resource /2010-04-01/Accounts/null.json was not found
              at com.twilio.rest.api.v2010.AccountFetcher.fetch(AccountFetcher.java:69)
              ... 15 more
      

      Workaround is set credentials on Component:

      TwilioComponent twilioComponent = getContext().getComponent("twilio", TwilioComponent.class);
      twilioComponent.getConfiguration().setUsername("xxx");
      twilioComponent.getConfiguration().setPassword("xxx");
      

      Attachments

        Issue Links

          Activity

            People

              acosenti Andrea Cosentino
              jbouska@redhat.com Jan Bouska
              Jan Bouska Jan Bouska
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: