[
https://issues.apache.org/jira/browse/CXF-7832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jimmy Praet updated CXF-7832:
-----------------------------
Description:
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.
was:
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.
> 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
> 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)