[ 
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 an {{{}Invocation.Builder{}}}, the property is stored in the request context 
under the nested {{jaxrs.filter.properties}} map.

Later, the HTTP transport retrieves the property using:
message.getContextualProperty("set.content.type.for.empty.request")

 
{{Message.getContextualProperty()}} only looks up top-level contextual 
properties and does not inspect the nested {{jaxrs.filter.properties}} map. As 
a result, the property is never found by the transport layer.

Consequently, the {{set.content.type.for.empty.request}} configuration is 
ignored, and the {{Content-Type}} header is still added for empty requests even 
when it has been explicitly disabled.

  was:
When {{builder.property("set.content.type.for.empty.request", "FALSE")}} is set 
on an {{{}Invocation.Builder{}}}, the property is stored in the request context 
under the nested {{jaxrs.filter.properties}} map.

Later, the HTTP transport retrieves the property using:
message.getContextualProperty("set.content.type.for.empty.request")
 
{{}}
 
{{Message.getContextualProperty()}} only looks up top-level contextual 
properties and does not inspect the nested {{jaxrs.filter.properties}} map. As 
a result, the property is never found by the transport layer.

Consequently, the {{set.content.type.for.empty.request}} configuration is 
ignored, and the {{Content-Type}} header is still added for empty requests even 
when it has been explicitly disabled.


> 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 an {{{}Invocation.Builder{}}}, the property is stored in the request 
> context under the nested {{jaxrs.filter.properties}} map.
> Later, the HTTP transport retrieves the property using:
> message.getContextualProperty("set.content.type.for.empty.request")
>  
> {{Message.getContextualProperty()}} only looks up top-level contextual 
> properties and does not inspect the nested {{jaxrs.filter.properties}} map. 
> As a result, the property is never found by the transport layer.
> Consequently, the {{set.content.type.for.empty.request}} configuration is 
> ignored, and the {{Content-Type}} header is still added for empty requests 
> even when it has been explicitly disabled.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to