Bug 814297

Summary: Camel gateway doesn't work when spaces are in gateway 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: medium    
Version: 5.3.0 GACC: 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:
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:
Bug Depends On: 814214    
Bug Blocks:    
Attachments:
Description Flags
camel_sql_spaces_deploy.log
none
Bug reproducer none

Description Robert Balent 2012-04-19 14:32:16 UTC
Created attachment 578662 [details]
camel_sql_spaces_deploy.log

In some Camel components there is need to have spaces in gateway URL. For example when used Camel SQL component[1] in ESB application, it should look like this:

"esbschedule:5000:sql:select unique_id,data_column from camel_sql_entry_data?dataSourceRef=java:/DefaultDS"

When you try to deploy application with exception is thrown:

Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 10: sql:select unique_id,data_column from camel_sql_entry_data?dataSourceRef=java:/DefaultDS

This bug depends on previous bug I've reported about SQL gateway so It has to be resolved first.

Deployment log and reproducer is attached.
1. Start server
2. Unzip reproducer to quickstarts directory
3. Configure quickstarts.properties to target your server profile
4. from camel_sql_spaces directory run: ant deploy

Comment 1 Robert Balent 2012-04-19 14:33:03 UTC
Created attachment 578664 [details]
Bug reproducer

Comment 2 JBoss JIRA Server 2012-05-08 16:46:22 UTC
Tom Cunningham <tcunning> made a comment on jira JBESB-3795

URI-encode the URI, but make sure we decode spaces before sending the URI to Camel as a route.

Comment 3 JBoss JIRA Server 2012-05-08 16:46:31 UTC
Tom Cunningham <tcunning> updated the status of jira JBESB-3795 to Resolved

Comment 4 JBoss JIRA Server 2012-05-08 16:46:36 UTC
Tom Cunningham <tcunning> updated the status of jira JBESB-3795 to Closed

Comment 5 tcunning 2012-05-08 16:47:25 UTC
Committed in revision 38075.

Should be in ER3.

Comment 6 Robert Balent 2012-05-31 09:36:17 UTC
Good work. Verified in SOA-P 5.3 ER3.

Thanks.

Comment 7 David Le Sage 2012-06-13 00:03:38 UTC
Setting technical note to negative. I assume as impacted version is 5.3 and fix is 5.3 that the public never saw this.