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

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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment