Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8296

Custom Boolean ParamConverter wrong behaviour

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3.6, 3.2.13
    • 3.2.14, 3.3.7, 3.4.0
    • JAX-RS
    • None
    • apache-tomee-webprofile-8.0.2

    • Unknown

    Description

      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 ?

      Attachments

        1. VanillaParamConverterProviderImpl.java
          1 kB
          Jonatan Lemes
        2. OpenMvcFeatureImpl.java
          1.0 kB
          Jonatan Lemes
        3. JaxRsApplication.java
          0.2 kB
          Jonatan Lemes
        4. BindingForm.java
          0.6 kB
          Jonatan Lemes
        5. BindingController.java
          0.4 kB
          Jonatan Lemes

        Issue Links

          Activity

            People

              reta Andriy Redko
              jlemes Jonatan Lemes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: