You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dennis Kieselhorst (JIRA)" <ji...@apache.org> on 2018/10/18 08:13:00 UTC

[jira] [Updated] (CXF-7832) WrappedMessageContext containsKey not consistent with get/put

     [ https://issues.apache.org/jira/browse/CXF-7832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Kieselhorst updated CXF-7832:
------------------------------------
    Fix Version/s: 3.1.18

> WrappedMessageContext containsKey not consistent with get/put
> -------------------------------------------------------------
>
>                 Key: CXF-7832
>                 URL: https://issues.apache.org/jira/browse/CXF-7832
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Jimmy Praet
>            Assignee: Freeman Fang
>            Priority: Major
>             Fix For: 3.3.0, 3.2.7, 3.1.18
>
>
> In {{WrappedMessageContext.get()}} and {{put()}} some extra key translations happen, that are not applied in {{WrappedMessageContext.containsKey()}}.
> For example {{MessageContext.HTTP_REQUEST_HEADERS}} is translated to {{Message.PROTOCOL_HEADERS}} [here|https://github.com/apache/cxf/blob/782d565f896bc996631c2b092580a116bd65c1e2/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/context/WrappedMessageContext.java#L238], but not in {{containsKey()}}.
> So {{context.get(MessageContext.HTTP_REQUEST_HEADERS)}} may return a map with headers, while {{context.containsKey(MessageContext.HTTP_REQUEST_HEADERS)}} returns false.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)