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

json-jackson dataformat: potential ObjectMapper configuration clashes

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: camel-jackson
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: