Skip to content
Snippets Groups Projects
Commit 0cb32dbb authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

A fix and a test case for gh-409

gh-409: connect followed by session.su causes privilege error

The problem was in the order of access checks
for functions:
    if a user has no universal access,
        find function
        check if a user has rights to execute the function

There were no pre-created function object for
'dostring', so access check for this function failed.

The fix is to give universal access to ADMIN user
right in bootstrap.snap and remove check for ADMIN uid
as a special case from access checks.
This avoids a functio lookup which would still find nothing.

The fix revealed a race condition in replica bootstrap
(see changed replication tests):
replica begins accepting requets before fully recovering.
Add a manual check for full replica recovery to make
the tests pass.
parent 2953b28f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment