Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-1323

LOAD LOCAL INFILE validation rejects statements preceded by line comments

    XMLWordPrintable

Details

    Description

      When the server requests a local file, the connector validates that the client actually issued a matching LOAD DATA/XML LOCAL INFILE statement before sending any file. That validation regex only skipped /* … */ block comments preceding the statement.

      As a result, a valid LOAD … LOCAL INFILE preceded by SQL line comments (-- … or # …) failed validation and the upload was wrongly rejected.

      The regex now also skips – and # line comments. The comment marker is matched as the literal – (previously written as the single-character class [-]).

      Reported by sebdomdev (Sebastian Dombrowski).

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.