You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2018/09/06 07:52:00 UTC
[jira] [Assigned] (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 ]
Freeman Fang reassigned CXF-7832:
---------------------------------
Assignee: Freeman Fang
> 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
>
> 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)