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

CaptureChangeMySQL didn't escape database name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • Core Framework
    • None

    Description

      CaptureChangeMySQL didn't escape database name as you can see:

      https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-cdc/nifi-cdc-mysql-bundle/nifi-cdc-mysql-processors/src/main/java/org/apache/nifi/cdc/mysql/processors/CaptureChangeMySQL.java#L1003

       

      And also with the line 1004, which query from a table.

      It can cause problems when there is database or table name that contains a reserved keyword.

      Attachments

        Issue Links

          Activity

            People

              uday Uday Kale
              tanapolsh Tanapol Nearunchorn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: