Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10781

Jackson Annotations are broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 13.0.0.Final
    • REST
    • Hide

      Use different Jackson Annotations in a model class and serialze them via Resonse.entity(Object).build - the Annoations aren't applied.

      Or see: https://github.com/maio290/WildFlyJacksonBug

      Show
      Use different Jackson Annotations in a model class and serialze them via Resonse.entity(Object).build - the Annoations aren't applied. Or see: https://github.com/maio290/WildFlyJacksonBug

    Description

      With the switch from WildFly 12 to 13 our Jackson Annotations stopped working properly. While some of these are working (@JsonProperty) sometimes, others (@JsonIgnore) aren't working anymore. With WildFly 12 everything is fine, this issue only arises using WildFly 13 using a EE8 profile.

      However, I tried it with a pristine WildFly 13: not working, WildFly 12: works like a charme. I tried to fix it with replacing the jackson-databind library with the newest version (2.9.6) but this didn't work as well.

      Example for the attached Github Project:
      The expected output is:

      {"name":"Mario","attribute":"notWorking"}

      The acutal output is:

      {"attribute":"notWorking","name":"Mario","number":-1337}

      Attachments

        Activity

          People

            rhn-support-asoldano Alessio Soldano
            maio290 Mario-Luca Hoffmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: