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

role vs user@localhost acl_cache key confusion

    XMLWordPrintable

Details

    • Can result in unexpected behaviour

    Description

      create database db;
      create table db.t1(a varchar(40));
      insert into db.t1 values ('role-cache-collision-row');
       
      create role r1;
      create user r1@localhost identified by 'r1pass';
      create user u1@'127.0.0.1' identified by 'u1pass';
       
      grant select on db.* to r1@localhost;
      grant r1 to u1@'127.0.0.1';
      #flush privileges;
       
      connect r1,localhost,r1,r1pass;
      select a from db.t1;
       
      connect u1,127.0.0.1,u1,u1pass;
      set role r1;
      show grants;
      select a from db.t1;
      

      Reported by Andrew James Gonzalez

      Attachments

        Activity

          People

            serg Sergei Golubchik
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 1h
                1h

                Git Integration

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