Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
0.5.0
Description
C2 Server can't get from NiFi templates with versions v10+, only v1-v9.
The reason is an error in the "getConfiguration" function, where "filenamePattern" is determined.
Wrong code (maybe a typo?):
String filenamePattern = Arrays.stream(filename.split(Pattern.quote("${version}"), -1)).map(Pattern::quote).collect(Collectors.joining("([0-9+])"));
It should be:
String filenamePattern = Arrays.stream(filename.split(Pattern.quote("${version}"), -1)).map(Pattern::quote).collect(Collectors.joining("([0-9]+)"));
[0-9+] -> [0-9]+
Link to source code:
Attachments
Issue Links
- links to