Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14101

json-jackson dataformat: potential ObjectMapper configuration clashes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0
    • camel-jackson
    • None
    • Unknown

    Description

      The current default behaviour of the json-jackson data format is to try to lookup an ObjectMapper instance to the registry and if not found to create a new one.

      In case one is found, the data format instance does customize it according to its local properties but as the same ObjectMapper instance could be shared among different json-jackson data formats, it may lead to inconsistencies or unpredictable behaviors.

      It would be nice to either:

      • disable auto discovery by default so user can opt in
      • if an ObjectMapper is given or found from the registry, discard local customizations and log a warning/throw an error

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            lb Luca Burgazzoli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: