You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (Jira)" <ji...@apache.org> on 2022/03/07 21:08:00 UTC

[jira] [Reopened] (NIFI-9763) Correct Configure Details Insert SQL for Auditing

     [ https://issues.apache.org/jira/browse/NIFI-9763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Burgess reopened NIFI-9763:
--------------------------------

Reopening due to another reference to a "VALUE" column that isn't escaped:

 

private static final String SELECT_PREVIOUS_VALUES = "SELECT CD.VALUE, "

> 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
>            Priority: Major
>             Fix For: 1.16.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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)