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

ZipIterator sometimes return null when using with split

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 2.16.0
    • Fix Version/s: None
    • Component/s: camel-core
    • Labels:
    • Estimated Complexity:
      Unknown

      Description

      ZipIterator sometimes return null when using with split

      // My route

      from("file:///tmp")
         .unmarshall(zipFileDataFormat)
         .split(body())
         .to("mock:result")
      

      Sometimes, I receive null body in the unit test i.e. I have zip file with 2 entries. I would sometimes receive 3 exchanges. The third exchange has null body. I also tested with zipfile with single entries. The result is similar.

      Workaround, I use filter on body.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              khaing211 Howard Nguyen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: