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

Custom Boolean ParamConverter wrong behaviour

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.6, 3.2.13
    • Fix Version/s: 3.2.14, 3.3.7, 3.4.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Environment:

      apache-tomee-webprofile-8.0.2

    • Estimated Complexity:
      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. BindingController.java
          0.4 kB
          Jonatan Lemes
        2. BindingForm.java
          0.6 kB
          Jonatan Lemes
        3. JaxRsApplication.java
          0.2 kB
          Jonatan Lemes
        4. OpenMvcFeatureImpl.java
          1.0 kB
          Jonatan Lemes
        5. VanillaParamConverterProviderImpl.java
          1 kB
          Jonatan Lemes

          Activity

            People

            • Assignee:
              reta Andriy Redko
              Reporter:
              jlemes Jonatan Lemes

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment