You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2020/06/08 02:05:00 UTC

[jira] [Comment Edited] (CXF-8296) Custom Boolean ParamConverter wrong behaviour

    [ https://issues.apache.org/jira/browse/CXF-8296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127827#comment-17127827 ] 

Andriy Redko edited comment on CXF-8296 at 6/8/20, 2:04 AM:
------------------------------------------------------------

Hi [~jlemes], indeed, it looks like a bug on CXF side, thanks for reporting it.


was (Author: reta):
Hi [~jlemes], undeed, it looks like a bug on CXF side, thanks for reporting it.

> Custom Boolean ParamConverter wrong behaviour
> ---------------------------------------------
>
>                 Key: CXF-8296
>                 URL: https://issues.apache.org/jira/browse/CXF-8296
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.3.6
>         Environment: apache-tomee-webprofile-8.0.2
>            Reporter: Jonatan Lemes
>            Assignee: Andriy Redko
>            Priority: Minor
>         Attachments: BindingController.java, BindingForm.java, JaxRsApplication.java, OpenMvcFeatureImpl.java, VanillaParamConverterProviderImpl.java
>
>
> Attachmente files describes an sample application thats use custom boolean ParamConverter used with @BeanParam + @FormParam parameter. Cxf is returning false for Wrapper Boolean Object even when null is provided as value in converter. 
> Libs/Impls like resteasy and jersey works correctly returning null for Wrapper Boolean Object. 
> Is this expected or its a bug ? There is some workaround or way to force null without coercing to false when null is provided ?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)