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

ER_TABLEACCESS_DENIED_ERROR error message is truncated, and inaccurately

Details

    Description

      create user foo;
      create database db;
      create table db.t (a int);
       
      --connect (con1,localhost,foo,,)
      grant all on db.t to foo;
      

      10.5 6cee9b195

      MariaDB [test]> grant all on db.t to foo;
      ERROR 1142 (42000): SELECT, INSERT, UPDATE, DELETE,  command denied to user 'foo'@'localhost' for table 't'
      

      Note that the list of privilege is truncated.

      Reproducible on all of 5.5-10.5.
      Fixed in MySQL 5.6+.

      Attachments

        Activity

          rucha174 Rucha Deodhar added a comment - Patch: https://github.com/MariaDB/server/commit/8a58299028f4b90aa4c1abcd9feb1ecb689ea813

          please, specify in the commit comment where the limit of 110 comes from. Or is it just arbitrary number you've picked?

          serg Sergei Golubchik added a comment - please, specify in the commit comment where the limit of 110 comes from. Or is it just arbitrary number you've picked?
          rucha174 Rucha Deodhar added a comment - - edited

          Changed commit message according to the last review. Patch: https://github.com/MariaDB/server/commit/ac1eb780cb5b86b5488fa22aefb5982194dc1389

          rucha174 Rucha Deodhar added a comment - - edited Changed commit message according to the last review. Patch: https://github.com/MariaDB/server/commit/ac1eb780cb5b86b5488fa22aefb5982194dc1389

          can the list be longer than 110? in some other statement, perhaps?

          serg Sergei Golubchik added a comment - can the list be longer than 110? in some other statement, perhaps?
          rucha174 Rucha Deodhar added a comment -

          serg Oh yes, right! Entire list of table privilege is longer than 110 characters. I'll make the changes. Thanks!

          rucha174 Rucha Deodhar added a comment - serg Oh yes, right! Entire list of table privilege is longer than 110 characters. I'll make the changes. Thanks!
          rucha174 Rucha Deodhar added a comment - - edited

          serg
          Updated patch: https://github.com/MariaDB/server/commit/ee27ad74b3d32ba7feaa727aa4e20b692b0e1cca

          Also added a test demonstrating more than 110 characters in the list of table privilege.

          rucha174 Rucha Deodhar added a comment - - edited serg Updated patch: https://github.com/MariaDB/server/commit/ee27ad74b3d32ba7feaa727aa4e20b692b0e1cca Also added a test demonstrating more than 110 characters in the list of table privilege.

          ok to push

          serg Sergei Golubchik added a comment - ok to push

          People

            rucha174 Rucha Deodhar
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.