• Resolved brechtryckaert

    (@brechtryckaert)


    We’ve noticed a bug on Duplicator where Duplicator checks for the correct privileges.

    Upon inspecting the code, we’ve noticed that it in essence does a SHOW GRANTS to see if specific privileges are applied or if somewhere ALL PRIVILEGES is to be found. However, in the use case of our customer, it gave a warning.

    After doing more inspecting, we’ve noticed that the output of SHOW GRANTS was parsed incorrectly and an underscore in the database name should have been escaped.

    We were able to fix this by applying this:

    $dbName  = addcslashes($dbName, '_%');

    We’ve applied this to classes/validation/class.validation.database.service.php

    Before the change our testing delivered this result:

    START TEST "Privileges: User Table Access" [CLASS: DUPX_Validation_test_db_user_perms]
    GRANTS LINE OF CURRENT DB NOT FOUND
    GRANTS LINE OF CURRENT DB NOT FOUND
    LOG-TIME[DELTA:   0.01468]  MESSAGE:TEST "Privileges: User Table Access" RESULT: hard warning

    After the change our testing delivered this result:

    START TEST "Privileges: User Table Access" [CLASS: DUPX_Validation_test_db_user_perms]
    LOG-TIME[DELTA:   0.01612]  MESSAGE:TEST "Privileges: User Table Access" RESULT: passed

    I hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mohammedeisa

    (@mohammedeisa)

    Hi @brechtryckaert,

    Thanks for reaching out to us.

    We appreciate you taking time to investigate this problem and provide a solution.

    I’m going to forward this to our development team to take an action.

    Please wait and I will get back to once I get feedback.

    Thanks!

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hi @brechtryckaert,

    We really appreciate reporting this issue.

    Our development team confirmed the issue and will fix it in the next version.

    Please let us know if you have any other questions or problems, we are happy to help.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug report – incorrect privileges check’ is closed to new replies.