Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7996

CURRENT_USER definer does not replicate for triggers

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.17-galera
    • 10.0.19-galera
    • wsrep
    • None

    Description

      Node 1:

      MariaDB [test]> CREATE TABLE definer_current_user (f1 INTEGER, trigger_user VARCHAR(100)) ENGINE=InnoDB;
      Query OK, 0 rows affected (0.10 sec)
       
      MariaDB [test]> CREATE DEFINER=current_user TRIGGER definer_current_user BEFORE INSERT ON definer_current_user FOR EACH ROW SET NEW.trigger_user = CURRENT_USER();
      Query OK, 0 rows affected (0.06 sec)
       

      Node 2:

      MariaDB [test]> show tables;
      +----------------------+
      | Tables_in_test       |
      +----------------------+
      | definer_current_user |
      +----------------------+
      1 row in set (0.00 sec)
       
      MariaDB [test]> INSERT INTO definer_current_user (f1) VALUES (1);
      ERROR 1449 (HY000): The user specified as a definer ('*current_user'@'%') does not exist
       

      Attachments

        Activity

          5.5.42-galera is not affected.

          nirbhay_c Nirbhay Choubey (Inactive) added a comment - 5.5.42-galera is not affected.
          nirbhay_c Nirbhay Choubey (Inactive) added a comment - http://lists.askmonty.org/pipermail/commits/2015-April/007760.html

          Ok to push.

          jplindst Jan Lindström (Inactive) added a comment - Ok to push.
          nirbhay_c Nirbhay Choubey (Inactive) added a comment - https://github.com/MariaDB/server/commit/0095697784a12cbb269238b354ac6f31800418fb

          People

            nirbhay_c Nirbhay Choubey (Inactive)
            nirbhay_c Nirbhay Choubey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.