Details
Description
In the dev mailing list, onders reported an issue using pollEnrich in combination with a REST request to upload files.
from("direct:uploadFiles") .pollEnrich("file:{{shared-folder}}?include=.*.gz&delete=true&sendEmptyMessageWhenIdle=true") .choice() .when(body().isNull()).log("No files found.. skipping to send to S3") .otherwise().to("direct:toAwsS3") .endChoice();
If the shared-folder contained no file, the empty event was sent, but when a file was then put in the folder, the empty event was still sent on the next rest request.
Attachments
Issue Links
- links to