Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-3092

LP #1277351: file name is not escaped in binlog for LOAD DATA INFILE statement

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      **Reported in Launchpad by Laurynas Biveinis last update 01-08-2014 16:12:34

      This is a copy of http://bugs.mysql.com/bug.php?id=71603:

      [6 Feb 9:34] Vlad Lesin

      Description:
      Load_log_event::print_query() function does not escape file name for "LOAD DATA INFILE" statement, as a result unescaped file name can be written in replication binlog.

      How to repeat:
      .tar.bz2 archive will be attached to this bug report. This archive contains MTR test which repeats the bug. Just unpack this archive to the root of 5.5.36 source tree and launch it with mysqltestrun.

      Suggested fix:
      Escape file name in Load_log_event::print_query().

      [6 Feb 9:35] Vlad Lesin

      MTR test to repeat the bug

      Attachment: rpl_load_data_file_escape.tar.bz2 (application/x-bzip, text), 886 bytes.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            lpjirasync lpjirasync (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Smart Checklist