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

camel-twitter : hard-coded component scheme

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.19.1, 2.20.0
    • Component/s: camel-twitter
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The camel twitter component parses the uri assuming the component has twitter as as scheme which is correct in most of the cases but could fail if one would pre-configure a number of twitter components:

      <bean id="tw-account-1" class="rg.apache.camel.component.twitter.TwitterComponent">
        <property name="accessToken" value="tokenForAccount1"/>
      </bean>
      
      <bean id="tw-account-2" class="rg.apache.camel.component.twitter.TwitterComponent">
        <property name="accessToken" value="tokenForAccount2"/>
      </bean>
      
      <camelContext>
        <route>
          <from uri="tw-account-1:search"/>  
          ...
        </rute>
        <route>
          <from uri="tw-account-2:timeline/mentions"/>  
          ...
        </rute>
      <camelContext/>
      

      Relevant code:

        Attachments

          Activity

            People

            • Assignee:
              lb Luca Burgazzoli
              Reporter:
              lb Luca Burgazzoli
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: