Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2565

JSONB Capabilities Broken in 7.1.1 Plume

    XMLWordPrintableJSON

Details

    Description

      We have an existing app that has a REST client that utilizes various JSON-B classes and annotations, such as javax.json.bind.JsonbConfig, javax.json.bind.config.PropertyNamingStrategy,
      javax.json.bind.config.PropertyVisibilityStrategy and
      javax.json.bind.annotation.JsonbTypeAdapter annotation. We have been using
      them in some REST clients running on 7.1.0 Plume and they work just fine.
      But on 7.1.1 with identical server configs, all of the JSONB configuration
      and the annotated fields seem to be ignored.

      In addition, under 7.1.0, the provider has a built-in mappings for converting java.time.LocalDate and java.time.LocalDateTime that do not seem to be present in 7.1.1. Under 7.1.0, the implementation converts them to and from ISO format whereas 7.1.1 produces json as though it used the "toString" method.

      I am attaching a small project that reproduces the problems. As supplied, the project will use tomee 7.1.0. Simply run "mvn clean package". Then, to see the issue in 7.1.1, change the property "tomee.version" to 7.1.1 and run "mvn clean package".

      Attachments

        1. tomeejson711.zip
          10 kB
          David Gannon
        2. image-2019-08-06-20-26-50-587.png
          146 kB
          Richard Zowalla
        3. image-2019-08-06-20-28-15-535.png
          229 kB
          Richard Zowalla
        4. image-2019-08-08-13-33-47-320.png
          30 kB
          Cesar Hernandez
        5. image-2019-08-08-13-34-01-360.png
          9 kB
          Cesar Hernandez

        Issue Links

          Activity

            People

              Unassigned Unassigned
              daveiwd David Gannon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: