timeabarna commented on pull request #5136: URL: https://github.com/apache/nifi/pull/5136#issuecomment-875379175
@jfrazee createRegexMatchingValidator() has been set for properties having expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES). As far as I know it is not possible to differentiate between flowfile attributes and expression language during validation this is why createRegexMatchingValidator() gives valid for all EL cases. createRegexMatchingValidatorWithEL() on the other hand should resolve EL and evaluate it. Thanks for point this out I've added a comment above createRegexMatchingValidatorWithEL() to explain it should not be used with flow file attributes. Working on the unit tests. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
