Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROOT SHOW ROLES IN returns nothing #2752

Closed
whitewum opened this issue Aug 30, 2021 · 3 comments
Closed

ROOT SHOW ROLES IN returns nothing #2752

whitewum opened this issue Aug 30, 2021 · 3 comments
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@whitewum
Copy link
Contributor

when I'm an admin, SHOW ROLES returns someting

nebula> SHOW ROLES in basketballplayer;
+---------+-----------+
| Account | Role Type |
+---------+-----------+
| "user1" | "ADMIN"   |
+---------+-----------+

when I'm ROOT, SHOW ROLES return nothing. It is really strange for nothing, but should be everything.
image

@Shylock-Hg Shylock-Hg added the type/bug Type: something is unexpected label Aug 30, 2021
@Shylock-Hg Shylock-Hg self-assigned this Aug 30, 2021
@Sophie-Xie Sophie-Xie added this to the v2.6.0 milestone Aug 31, 2021
@Shylock-Hg
Copy link
Contributor

➜  nebula-console git:(master) ./nebula-console -u admin -p admin --address 127.0.0.1 --port 9669
2021/09/01 16:05:49 [INFO] connection pool is initialized successfully

Welcome to Nebula Graph!

(admin@nebula) [(none)]> show roles in nba
+---------+-----------+
| Account | Role Type |
+---------+-----------+
| "admin" | "ADMIN"   |
+---------+-----------+
Got 1 rows (time spent 2716/3836 us)

Wed, 01 Sep 2021 16:05:54 CST

(admin@nebula) [(none)]> exit

Bye admin!
Wed, 01 Sep 2021 16:05:57 CST

➜  nebula-console git:(master) ./nebula-console -u root -p nebula --address 127.0.0.1 --port 9669
2021/09/01 16:06:07 [INFO] connection pool is initialized successfully

Welcome to Nebula Graph!

(root@nebula) [(none)]> show roles in nba
+---------+-----------+
| Account | Role Type |
+---------+-----------+
| "admin" | "ADMIN"   |
+---------+-----------+
Got 1 rows (time spent 2657/3249 us)

Wed, 01 Sep 2021 16:06:14 CST

What's the version? I can't reproduce in v2.5.0. @whitewum

@cooper-lzy
Copy link
Contributor

As user root, you should see not only admin's role type but also root's role type. Maybe:
+---------+-----------+
| Account | Role Type |
+---------+-----------+
| "root " | "GOD" |
+---------+-----------+
| "admin" | "ADMIN" |
+---------+-----------+

@Shylock-Hg
Copy link
Contributor

As user root, you should see not only admin's role type but also root's role type. Maybe:
+---------+-----------+
| Account | Role Type |
+---------+-----------+
| "root " | "GOD" |
+---------+-----------+
| "admin" | "ADMIN" |
+---------+-----------+

GOD is not a role of space, GOD has permission for any operation in all spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

4 participants