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

EXECUTE denied to a role displays empty user

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.4, 10.6.12, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11
    • 10.4, 10.5, 10.6, 10.11
    • None
    • None

    Description

      If you have a routine where the definer is set to a role, and that role doesn't have execute permission; the error message is execute command denied to user ''@'' instead of execute command denied to user 'role_name'.

      Example Script:

      CREATE ROLE 'test_role';
      CREATE USER 'test_user'@'%' IDENTIFIED BY 'SDDSAghghgjhgsa123!!';
      CREATE DATABASE `test_database`;
      CREATE DEFINER='test_user' PROCEDURE `test_database`.`test_proc`() BEGIN END;
      CREATE DEFINER='test_role' PROCEDURE `test_database`.`test_proc2`() BEGIN END;
      CALL `test_database`.`test_proc`;
      /* Output: execute command denied to user 'test_user'@'%' for routine 'test_database.test_proc' */
      CALL `test_database`.`test_proc2`;
      /* Output: execute command denied to user ''@'' for routine 'test_database.test_proc2' */
      DROP DATABASE `test_database`;
      DROP USER 'test_user';
      DROP ROLE 'test_role';
      

      Attachments

        Activity

          People

            serg Sergei Golubchik
            rmhumphries Robert Humphries
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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