You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/03/07 14:06:00 UTC
[jira] [Commented] (NIFI-9763) Correct Configure Details Insert SQL for Auditing
[ https://issues.apache.org/jira/browse/NIFI-9763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17502291#comment-17502291 ]
ASF subversion and git services commented on NIFI-9763:
-------------------------------------------------------
Commit 7d046fe3de247f9dc72497391a84a48829d7f018 in nifi's branch refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=7d046fe ]
NIFI-9763 Escaped VALUE column for Configure Details Auditing
Signed-off-by: Matthew Burgess <ma...@apache.org>
This closes #5838
> 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)