Jiri Ondrusek created CAMEL-14013:
-------------------------------------
Summary: Camel-irc: Route irc->irc cycles the message because of
"irc.target" header
Key: CAMEL-14013
URL: https://issues.apache.org/jira/browse/CAMEL-14013
Project: Camel
Issue Type: Bug
Components: camel-irc
Affects Versions: 3.0.0
Reporter: Jiri Ondrusek
Using this route (sending private message to "priv" user that should be sent to
channel "test2" via "chan" user):
{code}
from("irc://priv@localhost:6667/test1")
.log("${headers}")
.to("irc://chan@localhost:6667/test2");
{code}
The user "chan" never sends the message to the channel test2.
Message is sent to test1 again and again.
{code}
[ Thread-3] route1 INFO
{breadcrumbId=ID-fakefrog-1546849878466-0-1, irc.messageType=PRIVMSG,
irc.target=priv, irc.user.host=172.17.0.1, irc.user.nick=avano,
irc.user.servername=avano, irc.user.username=avano}
[ Thread-3] SendProcessor DEBUG >>>>
irc://chan@localhost:6667?channel=test2 Exchange[ID-fakefrog-1546849878466-0-1]
[ Thread-3] IrcProducer DEBUG Sending
to: priv message: hi
[ Thread-3] IrcComponent DEBUG Server:
localhost - onPrivmsg target=priv user=avano msg="hi"
[ Thread-3] route1 INFO
{breadcrumbId=ID-fakefrog-1546849878466-0-2, irc.messageType=PRIVMSG,
irc.target=priv, irc.user.host=172.17.0.1, irc.user.nick=chan,
irc.user.servername=chan, irc.user.username=chan}
[ Thread-3] SendProcessor DEBUG >>>>
irc://chan@localhost:6667?channel=test2 Exchange[ID-fakefrog-1546849878466-0-2]
[ Thread-3] IrcProducer DEBUG Sending
to: priv message: hi
[ Thread-3] IrcComponent DEBUG Server:
localhost - onPrivmsg target=priv user=chan msg="hi"
[ Thread-3] route1 INFO
{breadcrumbId=ID-fakefrog-1546849878466-0-3, irc.messageType=PRIVMSG,
irc.target=priv, irc.user.host=172.17.0.1, irc.user.nick=chan,
irc.user.servername=chan, irc.user.username=chan}
[ Thread-3] SendProcessor DEBUG >>>>
irc://chan@localhost:6667?channel=test2 Exchange[ID-fakefrog-1546849878466-0-3]
[ Thread-3] IrcProducer DEBUG Sending
to: priv message: hi
[ Thread-3] IrcComponent DEBUG Server:
localhost - onPrivmsg target=priv user=chan msg="hi"
[ Thread-3] route1 INFO
{breadcrumbId=ID-fakefrog-1546849878466-0-4, irc.messageType=PRIVMSG,
irc.target=priv, irc.user.host=172.17.0.1, irc.user.nick=chan,
irc.user.servername=chan, irc.user.username=chan}
[ Thread-3] SendProcessor DEBUG >>>>
irc://chan@localhost:6667?channel=test2 Exchange[ID-fakefrog-1546849878466-0-4]
[ Thread-3] IrcProducer DEBUG Sending
to: priv message: hi
[ Thread-3] IrcComponent DEBUG Server:
localhost - onPrivmsg target=priv user=chan msg="hi"
[ Thread-3] route1 INFO
{breadcrumbId=ID-fakefrog-1546849878466-0-5, irc.messageType=PRIVMSG,
irc.target=priv, irc.user.host=172.17.0.1, irc.user.nick=chan,
irc.user.servername=chan, irc.user.username=chan}
[ Thread-3] SendProcessor DEBUG >>>>
irc://chan@localhost:6667?channel=test2 Exchange[ID-fakefrog-1546849878466-0-5]
[ Thread-3] IrcProducer DEBUG Sending
to: priv message: hi
[ Thread-3] IrcComponent DEBUG Server:
localhost - onPrivmsg target=priv user=chan msg="hi"
[ Thread-3] route1 INFO
{breadcrumbId=ID-fakefrog-1546849878466-0-6, irc.messageType=PRIVMSG,
irc.target=priv, irc.user.host=172.17.0.1, irc.user.nick=chan,
irc.user.servername=chan, irc.user.username=chan}
[ Thread-3] SendProcessor DEBUG >>>>
irc://chan@localhost:6667?channel=test2 Exchange[ID-fakefrog-1546849878466-0-6]
[ Thread-3] IrcProducer DEBUG Sending
to: priv message: hi
[ Thread-3] IrcComponent DEBUG Server:
localhost - onPrivmsg target=priv user=chan msg="hi"
[ Thread-3] route1 INFO
{breadcrumbId=ID-fakefrog-1546849878466-0-7, irc.messageType=PRIVMSG,
irc.target=priv, irc.user.host=172.17.0.1, irc.user.nick=chan,
irc.user.servername=chan, irc.user.username=chan}
[ Thread-3] SendProcessor DEBUG >>>>
irc://chan@localhost:6667?channel=test2 Exchange[ID-fakefrog-1546849878466-0-7]
[ Thread-3] IrcProducer DEBUG Sending
to: priv message: hi
[ Thread-3] IrcComponent DEBUG Server:
localhost - onPrivmsg target=priv user=chan msg="hi"
[ Thread-3] route1 INFO
{breadcrumbId=ID-fakefrog-1546849878466-0-8, irc.messageType=PRIVMSG,
irc.target=priv, irc.user.host=172.17.0.1, irc.user.nick=chan,
irc.user.servername=chan, irc.user.username=chan}
[ Thread-3] SendProcessor DEBUG >>>>
irc://chan@localhost:6667?channel=test2 Exchange[ID-fakefrog-1546849878466-0-8]
[ Thread-3] IrcProducer DEBUG Sending
to: priv message: hi
[ Thread-3] IrcComponent DEBUG Server:
localhost - onPrivmsg target=priv user=chan msg="hi"
[ Thread-3] route1 INFO
{breadcrumbId=ID-fakefrog-1546849878466-0-9, irc.messageType=PRIVMSG,
irc.target=priv, irc.user.host=172.17.0.1, irc.user.nick=chan,
irc.user.servername=chan, irc.user.username=chan}
[ Thread-3] SendProcessor DEBUG >>>>
irc://chan@localhost:6667?channel=test2 Exchange[ID-fakefrog-1546849878466-0-9]
[ Thread-3] IrcProducer DEBUG Sending
to: priv message: hi
[ Thread-3] IrcComponent DEBUG Server:
localhost - onPrivmsg target=priv user=chan msg="hi"
[ Thread-3] route1 INFO
{breadcrumbId=ID-fakefrog-1546849878466-0-10, irc.messageType=PRIVMSG,
irc.target=priv, irc.user.host=172.17.0.1, irc.user.nick=chan,
irc.user.servername=chan, irc.user.username=chan}
[ Thread-3] SendProcessor DEBUG >>>>
irc://chan@localhost:6667?channel=test2 Exchange[ID-fakefrog-1546849878466-0-10]
[ Thread-3] IrcProducer DEBUG Sending
to: priv message: hi
[ Thread-3] IrcComponent DEBUG Server:
localhost - onPrivmsg target=priv user=chan msg="hi"
[ Thread-3] route1 INFO
{breadcrumbId=ID-fakefrog-1546849878466-0-11, irc.messageType=PRIVMSG,
irc.target=priv, irc.user.host=172.17.0.1, irc.user.nick=chan,
irc.user.servername=chan, irc.user.username=chan}
[ Thread-3] SendProcessor DEBUG >>>>
irc://chan@localhost:6667?channel=test2 Exchange[ID-fakefrog-1546849878466-0-11]
[ Thread-3] IrcProducer DEBUG Sending
to: priv message: hi
[ Thread-3] IrcComponent DEBUG Server:
localhost - onPrivmsg target=priv user=chan msg="hi"
[ Thread-3] route1 INFO
{breadcrumbId=ID-fakefrog-1546849878466-0-12, irc.messageType=PRIVMSG,
irc.target=priv, irc.user.host=172.17.0.1, irc.user.nick=chan,
irc.user.servername=chan, irc.user.username=chan}
[ Thread-3] SendProcessor DEBUG >>>>
irc://chan@localhost:6667?channel=test2 Exchange[ID-fakefrog-1546849878466-0-12]
[ Thread-3] IrcProducer DEBUG Sending
to: priv message: hi
[ Thread-3] IrcComponent DEBUG Server:
localhost - onPrivmsg target=priv user=chan msg="hi"
^C[ad #0 - CamelHangupInterceptor] MainSupport$HangupInterceptor INFO
Received hang up - stopping the main instance.
[ com.text.MainApp.main()] MainSupport INFO
MainSupport exiting code: 0
[ad #0 - CamelHangupInterceptor] DefaultCamelContext INFO Apache
Camel 2.21.0.fuse-720029 (CamelContext: camel-1) is shutting down
[ad #0 - CamelHangupInterceptor] DefaultShutdownStrategy INFO Starting
to graceful shutdown 1 routes (timeout 300 seconds)
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)