Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4538

Splitter doesn't consult an ArrayNode.size() for the proper sequence details headers generation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.1 RC1
    • Fix Version/s: 5.0.9
    • Component/s: Core
    • Labels:

      Description

      It is possible to split() a Jackson ArrayNode into messages of JsonNode.
      However, in SimpleSequenceSizeReleaseStrategy#canRelease the sequence size of the resulting group is always 0:

       

          @Override 
          public boolean canRelease(MessageGroup group) { 
             return group.getSequenceSize() == group.size(); // never true if split() from ArrayNode 
          }

       

      Workaround: do not use JsonNode as payload type, replace by Map or marshal into a proper Pojo.

       

       

        Attachments

          Activity

            People

            • Assignee:
              abilan Artem Bilan
              Reporter:
              dschulten Dietrich Schulten
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: