Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9763

Correct Configure Details Insert SQL for Auditing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.16.0
    • None
    • None

    Description

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

      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]
      

      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.

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m