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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: fuse-7.1
    • Component/s: Camel
    • Labels:
      None
    • Sprint:
      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");
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  oscerd Andrea Cosentino
                  Reporter:
                  jbouska Jan Bouska
                  Tester:
                  Jan Bouska
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: