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

ZipIterator sometimes return null when using with split

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.16.0
    • None
    • camel-core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: