Github user mattyb149 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/564#discussion_r70157576
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JoltTransformJSON.java
 ---
    @@ -147,10 +174,39 @@
                             .explanation(message)
                             .build());
                 }
    +
             } else {
    +
    +            ClassLoader customClassLoader = null;
                 try {
    +
    +                if(modulePath != null) {
    +                    customClassLoader = 
ClassLoaderUtils.getCustomClassLoader(modulePath, 
this.getClass().getClassLoader(), getJarFilenameFilter());
    +                }
    +
                     Object specJson = SORTR.getValue().equals(transform) ? 
null : JsonUtils.jsonToObject(specValue, DEFAULT_CHARSET);
    -                TransformFactory.getTransform(transform, specJson);
    +
    +                if(CUSTOMR.getValue().equals(transform)){
    +
    +                    if(!StringUtils.isEmpty(customTransform) && 
customClassLoader == null){
    +                        final String customMessage = "One or more module 
directories containing the provided custom transformation must be specified.";
    --- End diff --
    
    See above about the message for whether a module directory MUST be provided 
or not


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to