Spring Integration
  1. Spring Integration
  2. INT-2889

Concurrency Problem in BeanFactoryTypeConverter

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Complete
    • Affects Version/s: 2.1.4, 2.2. GA
    • Fix Version/s: 3.0 M1, 2.1.5, 2.2.1
    • Component/s: Core
    • Labels:

      Description

      Consider a transformer:

      public String transform(String payload, @Header("id") String uuid) {
      ...
      }
      

      The 'id' header is converted from UUID to String; however, the BeanFactoryTypeConverter is not thread-safe...

      editor.setValue(value);
      String text = editor.getAsText();
      

      So, concurrent messages can get the value of some-other conversion.

        Issue Links

          Activity

          Hide
          Gary Russell added a comment -
          Show
          Gary Russell added a comment - PR: https://github.com/SpringSource/spring-integration/pull/710 Cherry-pick to 2.1.x

            People

            • Assignee:
              Gary Russell
              Reporter:
              Gary Russell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: