James Wing created NIFI-2948:
--------------------------------

             Summary: AWS DynamoDB Processors Do Not Update Credentials
                 Key: NIFI-2948
                 URL: https://issues.apache.org/jira/browse/NIFI-2948
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 0.7.0, 1.0.0
            Reporter: James Wing
            Priority: Minor


Following a report to the dev email list, there appears to be a bug in the AWS 
DynamoDB processors where the AWS credentials are cached by the processor once 
started, and not updated even if the processor is stopped, reconfigured, and 
started.

The problem appears to be 
[AbstractDynamoDBProcessor::getDynamoDB|https://github.com/apache/nifi/blob/rel/nifi-1.0.0/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/dynamodb/AbstractDynamoDBProcessor.java#L218],
 which assigns the dynamo client object to a class variable only once.

*Repro Steps*
# Add GetDynamoDB processor
# Configure GetDynamoDB required properties but *not* any credential fields
# Start the processor
# Run a flowfile through - it should fail with 
"MissingAuthenticationTokenException" error
# Stop the GetDynamoDB processor
# Configure valid AWS credentials
# Start the processor
# Run a flowfile through - it should fail again with 
"MissingAuthenticationTokenException" still using the old credentials



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to