Bug 814297 - Camel gateway doesn't work when spaces are in gateway URL
Summary: Camel gateway doesn't work when spaces are in gateway URL
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: 3rd Party
Version: 5.3.0 GA
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ER3
: 5.3.0 GA
Assignee: Nobody
QA Contact: Matej Melko
URL:
Whiteboard:
Depends On: 814214
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-19 14:32 UTC by Robert Balent
Modified: 2020-04-27 01:32 UTC (History)
2 users (show)

Fixed In Version: 5.3.0 GA
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
camel_sql_spaces_deploy.log (8.35 KB, patch)
2012-04-19 14:32 UTC, Robert Balent
no flags Details | Diff
Bug reproducer (14.81 KB, application/zip)
2012-04-19 14:33 UTC, Robert Balent
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBESB-3795 0 None Closed Camel gateway doesn't work when spaces are in gateway URL 2012-06-13 00:03:45 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.