You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In what version(s) of Spring Integration are you seeing this issue?
6.5.0
Describe the bug
Local temporary file suffix filter is combined in a CompositeFileListFilter instead of a ChainFileListFilter, therefore a ( localFileListfilter || temporaryFileSuffixFilter ) instead of ( localFileListfilter && temporaryFileSuffixFilter ).
If the file is beeing written as .writting suffix indicates, it shouldn't be available for message creation, yet, even if other custom filters meet the conditions.
The temporaryFileSuffixFilter should be first in the chain.
I got around that by creating a localfilelistfilter chain that includes first the same filesuffix regex filter
private FileListFilter<File> buildFilter() {
Pattern completePattern = Pattern.compile("^.*(?<!" + this.synchronizer.getTemporaryFileSuffix() + ")$");
return new CompositeFileListFilter<>(
Arrays.asList(this.localFileListFilter, new RegexPatternFileListFilter(completePattern)));
}