[
https://issues.apache.org/jira/browse/CXF-9235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Neena Jacob updated CXF-9235:
-----------------------------
Description: When {{builder.property("set.content.type.for.empty.request",
"FALSE") is set}} on the Invocation.Builder, it is stored a nested map under
the key {{"jaxrs.filter.properties"}} inside the request context. However, the
CXF transport layer retrieves the property via
{{message.getContextualProperty("set.content.type.for.empty.request")}} which
only looks at the top-level context map and it never looks inside the nested
map. As a result, the property is effectively invisible to the transport and
the Content-Type suppression never happens. This is in {{Headers.java }}(EE7
and EE8)
Priority: Minor (was: Major)
> set.content.type.for.empty.request seems to be ignored in DELETE request
> ------------------------------------------------------------------------
>
> Key: CXF-9235
> URL: https://issues.apache.org/jira/browse/CXF-9235
> Project: CXF
> Issue Type: Bug
> Reporter: Neena Jacob
> Priority: Minor
>
> When {{builder.property("set.content.type.for.empty.request", "FALSE") is
> set}} on the Invocation.Builder, it is stored a nested map under the key
> {{"jaxrs.filter.properties"}} inside the request context. However, the CXF
> transport layer retrieves the property via
> {{message.getContextualProperty("set.content.type.for.empty.request")}} which
> only looks at the top-level context map and it never looks inside the nested
> map. As a result, the property is effectively invisible to the transport and
> the Content-Type suppression never happens. This is in {{Headers.java }}(EE7
> and EE8)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)