-
Notifications
You must be signed in to change notification settings - Fork 403
Closed
Labels
3.2Target is 3.2 and all newer release/master branchesTarget is 3.2 and all newer release/master branchesbugSomething isn't workingSomething isn't working
Description
Bug description
After granting a role to a user an attempt to call box.schema.user.info on this users connection without parameters leads to 'builtin/box/schema.lua:3022: attempt to index a nil value'
- OS: Linux
- OS Version: Ubuntu 22.04.3 LTS
- Architecture: amd64
Tarantool 2.11.3-0-gf933f77904
Target: Linux-x86_64-RelWithDebInfo
Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_BACKTRACE=TRUE
Compiler: GNU-11.2.0
C_FLAGS:-g -O2 -ffile-prefix-map=/build/tarantool-2.11.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fexceptions -funwind-tables -fasynchronous-unwind-tables -fno-common -fopenmp -msse2 -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -fmacro-prefix-map=/build/tarantool-2.11.3=. -std=c11 -Wall -Wextra -Wno-gnu-alignof-expression -fno-gnu89-inline -Wno-cast-function-type
CXX_FLAGS:-g -O2 -ffile-prefix-map=/build/tarantool-2.11.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fexceptions -funwind-tables -fasynchronous-unwind-tables -fno-common -fopenmp -msse2 -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -fmacro-prefix-map=/build/tarantool-2.11.3=. -std=c++11 -Wall -Wextra -Wno-invalid-offsetof -Wno-gnu-alignof-expression -Wno-cast-function-type
Steps to reproduce
Run two tarantool instances iteractively.
In console 1:
box.cfg{listen = 3301}box.schema.role.create('manager')box.schema.user.grant('testuser', 'manager')
In console 2:
net_box = require('net.box')conn = net_box.connect('testuser:foobar@localhost:3301')conn:call("box.schema.user.info", {})
Actual behavior
In console 2:
error: 'builtin/box/schema.lua:3022: attempt to index a nil value'
Expected behavior
In console 2:
[['execute', 'role', 'public'], ['session,usage', 'universe', ''], ['alter', 'user', 'testuser']]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.2Target is 3.2 and all newer release/master branchesTarget is 3.2 and all newer release/master branchesbugSomething isn't workingSomething isn't working