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

    https://github.com/apache/nifi/pull/1276#discussion_r90292509
  
    --- Diff: 
nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-processors/src/main/java/org/apache/nifi/processors/elasticsearch/PutElasticsearchHttp.java
 ---
    @@ -192,17 +201,17 @@ public void setup(ProcessContext context) {
     
         @Override
         public void onTrigger(final ProcessContext context, final 
ProcessSession session) throws ProcessException {
    -        final int batchSize = context.getProperty(BATCH_SIZE).asInteger();
    +        final int batchSize = 
context.getProperty(BATCH_SIZE).evaluateAttributeExpressions().asInteger();
     
             final List<FlowFile> flowFiles = session.get(batchSize);
             if (flowFiles.isEmpty()) {
                 return;
             }
     
             final String id_attribute = 
context.getProperty(ID_ATTRIBUTE).getValue();
    -        final Charset charset = 
Charset.forName(context.getProperty(CHARSET).getValue());
    +        final Charset charset = 
Charset.forName(context.getProperty(CHARSET).evaluateAttributeExpressions().getValue());
    --- End diff --
    
    Charset should be evaluated for each FlowFile like PutElasticsearch does


---
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