box: fix and also refactor privilege_resolve
Privileges passed to box.schema.user.grant are resolved in quite a naïve manner: we do not check that all of them have been resolved. Also, the privilege_resolve function itself is poorly designed (instead of generic string processing, we have a bunch of if's): extract parsing of the privileges string into privilege_parse and process it through a generic FSA. Closes #6199
Showing
- changelogs/unreleased/gh-6199-schema-priv-resolve-existence-check.md 4 additions, 0 deletions...unreleased/gh-6199-schema-priv-resolve-existence-check.md
- src/box/lua/schema.lua 48 additions, 45 deletionssrc/box/lua/schema.lua
- test/box-luatest/gh_6199_schema_priv_resolve_existence_check_test.lua 49 additions, 0 deletions...test/gh_6199_schema_priv_resolve_existence_check_test.lua
Loading
Please register or sign in to comment