You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2009/04/17 17:22:14 UTC

[jira] Created: (CXF-2178) HTTP headers (and thus cookies) are not settable from client request context

HTTP headers (and thus cookies) are not settable from client request context
----------------------------------------------------------------------------

                 Key: CXF-2178
                 URL: https://issues.apache.org/jira/browse/CXF-2178
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.2
            Reporter: Daniel Kulp
            Assignee: Daniel Kulp
             Fix For: 2.2.1


Code that attempts to set http headers for the client, such as:

            Map<String, List<String>> headers 
                = CastUtils.cast((Map)bp.getRequestContext().get("javax.xml.ws.http.request.headers"));

            if (headers == null) {
                headers = new HashMap<String, List<String>>();
                bp.getRequestContext().put("javax.xml.ws.http.request.headers", headers);
            }

            List<String> cookies = Arrays.asList(new String[] {"a=a", "b=b"});
            headers.put("Cookie", cookies);

is not working with 2.2.   Worked fine with 2.1.3.


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


[jira] Resolved: (CXF-2178) HTTP headers (and thus cookies) are not settable from client request context

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-2178.
------------------------------

    Resolution: Fixed

> HTTP headers (and thus cookies) are not settable from client request context
> ----------------------------------------------------------------------------
>
>                 Key: CXF-2178
>                 URL: https://issues.apache.org/jira/browse/CXF-2178
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Daniel Kulp
>            Assignee: Daniel Kulp
>             Fix For: 2.2.1
>
>
> Code that attempts to set http headers for the client, such as:
>             Map<String, List<String>> headers 
>                 = CastUtils.cast((Map)bp.getRequestContext().get("javax.xml.ws.http.request.headers"));
>             if (headers == null) {
>                 headers = new HashMap<String, List<String>>();
>                 bp.getRequestContext().put("javax.xml.ws.http.request.headers", headers);
>             }
>             List<String> cookies = Arrays.asList(new String[] {"a=a", "b=b"});
>             headers.put("Cookie", cookies);
> is not working with 2.2.   Worked fine with 2.1.3.

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