Bug 1126676

Summary: Message headers are unexpectedly converted to lower-case in Camel service
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Tadayoshi Sato <tasato>
Component: SwitchYardAssignee: Rob Cernich <rcernich>
Status: MODIFIED --- QA Contact: Matej Melko <mmelko>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0 GACC: rcernich, soa-p-jira
Target Milestone: ER1   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 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:
Embargoed:
Attachments:
Description Flags
ftp-filename.zip none

Description Tadayoshi Sato 2014-08-05 04:12:00 UTC
Description of problem:
Platform BZ for https://issues.jboss.org/browse/SWITCHYARD-2252

Message headers are converted unexpectedly to lowe-case in a Camel service.

For instance, suppose the header "CamelFileName" is set in a Camel route like the following:

        from("switchyard://FileService")
                .setHeader(Exchange.FILE_NAME, constant("out.txt"))
                .to("switchyard://FTPOut");

it's then converted automatically to lower-case "camelfilename" when it reaches the context mapper.

It is a problem because we need to specify the 'includes' of the context mapper as "camelfilename" instead of "CamelFileName". It's counter-intuitive and thus should be a bug.


Version-Release number of selected component (if applicable):
n/a

How reproducible:
100%

Steps to Reproduce:
1. See the reproducer (ftp-filename.zip)

Actual results:
ContextMapper needs to be configured as includes="camelfilename".

Expected results:
ContextMapper should be able to be configured as includes="CamelFileName".

Comment 1 Tadayoshi Sato 2014-08-05 04:12:47 UTC
Created attachment 924076 [details]
ftp-filename.zip

Comment 2 JBoss JIRA Server 2014-08-20 20:43:25 UTC
Tom Cunningham <tcunning> updated the status of jira SWITCHYARD-2252 to Coding In Progress