Bug 813759

Summary: Camel IRC gateway doesn't work - # symbol is replaced with "%23" in URL
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Robert Balent <rbalent>
Component: 3rd PartyAssignee: Nobody <nobody>
Status: VERIFIED --- QA Contact: Matej Melko <mmelko>
Severity: high Docs Contact:
Priority: high    
Version: 5.3.0 GACC: kejohnso, soa-p-jira, tcunning
Target Milestone: ER3   
Target Release: 5.3.0 GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.3.0 GA Doc Type: Bug Fix
Doc Text:
Users need to specify the Camel gateway's URL in this format: irc:username@irc.server.com:6667/#channel. Unfortunately, the hash (#) symbol was being replaced with "%23". As a result, it could not connect. To fix this issue, the software has been changed so that unsafe characters are now decoded before being sent to Camel. As a result, it can now connect correctly.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Camel IRC Reproducer none

Description Robert Balent 2012-04-18 11:31:37 UTC
When you use Camel IRC component there is needed to specify URL of camel gateway which contains information about server and channel it should connect.

Like this:
irc:username@irc.server.com:6667/#channel


Problem is that the # symbol is replaced with "%23" and the IRC gateway will not connect to channel.

No exception is thrown in log. But you can see the "%23" in URL:

INFO  [DefaultShutdownStrategy] Route: route3 shutdown complete, was consuming from: Endpoint[irc://camel_irc_reproducer@irc.freenode.net:6667/%23camel_irc_reproducer]

Attached reproducer should connect to irc.freenode.net channel #camel_irc_reproducer but it won't.

1. Start server
2. Unzip reproducer to quickstarts folder
3. Configure quickstarts.properties to target your server profile
4. from camel_irc directory run: ant deploy

Comment 1 Robert Balent 2012-05-10 08:37:29 UTC
Created attachment 583476 [details]
Camel IRC Reproducer

Comment 2 JBoss JIRA Server 2012-05-11 20:12:51 UTC
Tom Cunningham <tcunning> updated the status of jira JBESB-3797 to Resolved

Comment 3 JBoss JIRA Server 2012-05-11 20:12:51 UTC
Tom Cunningham <tcunning> made a comment on jira JBESB-3797

Decode all unsafe characters before sending routes to Camel.

Comment 4 JBoss JIRA Server 2012-05-11 20:12:56 UTC
Tom Cunningham <tcunning> updated the status of jira JBESB-3797 to Closed

Comment 5 tcunning 2012-05-11 20:13:49 UTC
Committed against JBESB_4_11_CP branch, should be in ER3.

Comment 6 Robert Balent 2012-05-25 14:02:45 UTC
Verified in SOA-P 5.3 ER3.

Comment 7 David Le Sage 2012-06-13 00:00:00 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Users need to specify the Camel gateway's URL in this format:
irc:username@irc.server.com:6667/#channel. Unfortunately, the hash (#) symbol was being replaced with "%23". As a result, it could not connect.  To fix this issue, the software has been changed so that unsafe characters are now decoded before being sent to Camel. As a result, it can now connect correctly.