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:
Keith Babo <kbabo> made a comment on jira SWITCHYARD-1731 pushed
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.
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1731 to Closed