Bug 1010803

Summary: Allow properties without label to be set as headers when explicitly specified in config
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Magesh Kumar Bojan <mbojan>
Component: SwitchYardAssignee: Magesh Kumar Bojan <mbojan>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Rohovsky <trohovsk>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0 GACC: aileenc, kbabo, ldimaggi, oskutka, soa-p-jira, tasato
Target Milestone: ER7   
Target Release: 6.0.0   
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:
Attachments:
Description Flags
test-sample none

Description Magesh Kumar Bojan 2013-09-23 05:37:03 UTC
Description of problem:

When certain properties are explicitly set in config, e.g., regular expressions, then they need to be added to outgoing headers irrespective of their labels.

Right now SOAP, Http and RESTEasy gateways only add the matching properties if the HTTP/RESTEasy label is set.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 JBoss JIRA Server 2013-10-01 13:33:51 UTC
Keith Babo <kbabo> made a comment on jira SWITCHYARD-1731

pushed

Comment 6 Magesh Kumar Bojan 2014-01-10 02:32:40 UTC
Created attachment 847977 [details]
test-sample

To QE:
-----
Use the attached modified rest binding quickstart and run mvn test. In the console messages you should see:

[org.switchyard.component.resteasy.util.ClientInvoker] Outgoing Headers from SwitchYard through OutboundHandler [
[org.switchyard.component.resteasy.util.ClientInvoker] foo = bar
[org.switchyard.component.resteasy.util.ClientInvoker] ]
[org.jboss.resteasy.core.SynchronousDispatcher] PathInfo: /warehouse/4/Time Machine
[org.switchyard.component.resteasy.util.RESTEasyProxy] Incoming Headers to SwitchYard through InboundHandler [
[org.switchyard.component.resteasy.util.RESTEasyProxy] Connection = Keep-Alive
[org.switchyard.component.resteasy.util.RESTEasyProxy] Host = localhost:8081
[org.switchyard.component.resteasy.util.RESTEasyProxy] Content-Length = 0
[org.switchyard.component.resteasy.util.RESTEasyProxy] User-Agent = Apache-HttpClient/4.2.1 (java 1.5)
[org.switchyard.component.resteasy.util.RESTEasyProxy] foo = bar
[org.switchyard.component.resteasy.util.RESTEasyProxy] Accept-Encoding = gzip, deflate
[org.switchyard.component.resteasy.util.RESTEasyProxy] ]

Notice the header foo been added.

Comment 7 JBoss JIRA Server 2014-06-16 23:47:44 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1731 to Closed