Details

    Description

      Using "CHANGE MASTER TO" command and setting master password with a length more than 41 ascii chars make replication works (no error or warning returned) but replication failed due to "access denied" when restarting mariadb.
      master password is truncated to 41 chars in master.info file so when restarting replication it uses truncated password to connect to master.

      Attachments

        Activity

          In MySQL, the behavior for this is to error (introduced in 5.7.5). Do we want to follow this same pattern? That is, do we want to follow their same implementation logic from their patch? Elkin

          bnestere Brandon Nesterenko added a comment - In MySQL, the behavior for this is to error (introduced in 5.7.5 ). Do we want to follow this same pattern? That is, do we want to follow their same implementation logic from their patch ? Elkin
          Elkin Andrei Elkin added a comment -

          bnestere: I think yes, their policy is reasonable.

          Elkin Andrei Elkin added a comment - bnestere : I think yes, their policy is reasonable.

          I saw that logic had already been added to ensure that the password length was valid after issuing a CHANGE MASTER command from MDEV-4013 (patch, and which also extended the max password length to 96 ASCII characters). The issue that is present in this bug is strictly related to reading the master.info file, where the code reads a maximum of 41 characters for the password. I have implemented a fix for this to use the size of the password array rather than a separate value.

          Patch
          Buildbot

          bnestere Brandon Nesterenko added a comment - I saw that logic had already been added to ensure that the password length was valid after issuing a CHANGE MASTER command from MDEV-4013 ( patch , and which also extended the max password length to 96 ASCII characters). The issue that is present in this bug is strictly related to reading the master.info file, where the code reads a maximum of 41 characters for the password. I have implemented a fix for this to use the size of the password array rather than a separate value. Patch Buildbot
          danblack Daniel Black added a comment -

          Nice and simple patch. Well done.

          danblack Daniel Black added a comment - Nice and simple patch. Well done.
          serg Sergei Golubchik added a comment - https://github.com/MariaDB/server/commit/d0809e2dd3c8e5617fb15c0b331aea35c3df3cf1 is ok to push

          Pushed into 10.5 as 6cab2f75fe2

          No merge conflicts seen when manually cherry picking into 11.6.

          bnestere Brandon Nesterenko added a comment - Pushed into 10.5 as 6cab2f75fe2 No merge conflicts seen when manually cherry picking into 11.6.

          People

            bnestere Brandon Nesterenko
            math.nao MathNao
            Votes:
            0 Vote for this issue
            Watchers:
            6 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.