Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1050176

Summary: Headers sent to http binding are converted to lowercase
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jiri Sedlacek <jsedlace>
Component: SwitchYardAssignee: Keith Babo <kbabo>
Status: CLOSED NOTABUG QA Contact: Jiri Sedlacek <jsedlace>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: atangrin, kconner, oskutka, soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-09 07:34:41 UTC 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
reproducer none

Description Jiri Sedlacek 2014-01-08 19:56:18 UTC
Created attachment 847335 [details]
reproducer

If I send http header with upper-case letters, those are converted to lower somewhere in the switchyard - can be seen when trace is enabled, that is printed in lowercase.

Reproducer app is attached, can be run by curl command:

curl -d '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><simpleOrder id="23" xmlns="urn:jboss-soa:order-service:1.0"><items><item sku="101"><count>1</count><pricePerUnit>101.1</pricePerUnit></item><item sku="11"><count>2</count><pricePerUnit>202.2</pricePerUnit></item><item sku="12"><count>3</count><pricePerUnit>303.3</pricePerUnit></item><item sku="13"><count>4</count><pricePerUnit>404.4</pricePerUnit></item></items><name>9830be48-0bf8-430f-8096-3e3c6d2f50b3</name><quantity>4</quantity></simpleOrder>'  -H 'QA.test: 12345' http://localhost:8080/http-bean-service-test/oneway

Comment 1 kconner 2014-01-08 21:40:36 UTC
The lower case names are coming direct from Tomcat.  Additionally the RFC covering this, RFC 2616, states that the names are case-insensitive so you should not be relying on whether they are upper case not lower case.

Comment 2 Jiri Sedlacek 2014-01-09 07:34:41 UTC
Thanks Kev, didn't know details regarding this from RFC, we'll modify our tests to cope with it.