[ 
https://issues.apache.org/jira/browse/AXIS2-4754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985315#action_12985315
 ] 

Andreas Veithen commented on AXIS2-4754:
----------------------------------------

Point taken. However, I still see an issue because the transformation described 
in RFC 2616 only works in one direction: while it is legal to combine multiple 
headers with the same name into a single header, that doesn't mean that any 
header whose value contains a comma can be decomposed into multiple values. 
This would only work for headers defined as #(values), i.e. this operation 
requires knowledge about the semantics of the headers. Since 
TransportHeadersAdapter is also used for responses, there will be cases where 
headers are incorrectly decomposed into multiple values.

> Cannot pass HTTP headers with multiple values
> ---------------------------------------------
>
>                 Key: AXIS2-4754
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4754
>             Project: Axis2
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: 1.5.1, 1.5
>            Reporter: Jarek Gawor
>            Assignee: Isuru Eranga Suriarachchi
>             Fix For: 1.6
>
>
> JAX-WS enables a user to pass a map of custom http headers with the request 
> (by setting MessageContext.HTTP_REQUEST_HEADERS property on the 
> BindingProvider). The map is a mapping of a header name to a list of values. 
> Right now Axis2 seems to be handling a single value. If multiple values are 
> passed an exception is generated in TransportHeadersAdapter.
> In revision 958078 I added a test case (with commented out code) that might 
> be helpful in debugging this problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to