David Handermann created NIFI-9763:
--------------------------------------

             Summary: Correct Configure Details Insert SQL for Auditing
                 Key: NIFI-9763
                 URL: https://issues.apache.org/jira/browse/NIFI-9763
             Project: Apache NiFi
          Issue Type: Bug
            Reporter: David Handermann
            Assignee: David Handermann
             Fix For: 1.16.0


The current 1.16.0-SNAPSHOT version logs a warning when attempting to record 
component property changes using the {{ProcessorAuditor}}:

{noformat}
WARN [NiFi Web Server-21] org.apache.nifi.audit.ProcessorAuditor Unable to 
record actions: org.apache.nifi.admin.dao.DataAccessException: 
org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "INSERT 
INTO CONFIGURE_DETAILS (ACTION_ID, NAME, [*]VALUE, PREVIOUS_VALUE) VALUES (?, 
?, ?, ?)"; expected "identifier"; SQL statement:
INSERT INTO CONFIGURE_DETAILS (ACTION_ID, NAME, VALUE, PREVIOUS_VALUE) VALUES 
(?, ?, ?, ?) [42001-210]
{noformat}

This warning is the result of a recent upgrade to H2 database version 2.1, 
which made {{VALUE}} a reserved word.

The insert SQL statement should be updated to escape the {{VALUE}} column 
reference so that property value changes can be persisted to the Flow 
Configuration History.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to