You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2017/05/15 09:09:04 UTC
[jira] [Created] (CAMEL-11280) camel-twitter : hard-coded component
scheme
Luca Burgazzoli created CAMEL-11280:
---------------------------------------
Summary: camel-twitter : hard-coded component scheme
Key: CAMEL-11280
URL: https://issues.apache.org/jira/browse/CAMEL-11280
Project: Camel
Issue Type: Bug
Components: camel-twitter
Reporter: Luca Burgazzoli
Assignee: Luca Burgazzoli
Fix For: 2.20.0
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:
{code:xml}
<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>
{code}
Relevant code:
- https://github.com/apache/camel/blob/master/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterHelper.java#L43-L44
- https://github.com/apache/camel/blob/master/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterHelper.java#L156-L161
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)