What you expected to happen
immudb should not crash while retrieving user list when the request is coming from immugw and the token belongs to a regular (non-admin) user.
How to reproduce it (as minimally and precisely as possible)
Use immugw to login and obtain a token by loging-in with a regular user, then use the token to send a user list request to
GET http://localhost:3323/v1/immurestproxy/user/list
Environment
immudb 0.6.2
Commit : 96a9045d4ded987c82d8b508e5b4010994a683eb
Built by: 912518+padurean@users.noreply.github.com
Built at: Sun, 05 Jul 2020 17:51:09 EEST
Additional info (any other context about the problem)N/A
What happened
immudb
crashes:What you expected to happen immudb should not crash while retrieving user list when the request is coming from immugw and the token belongs to a regular (non-admin) user.
How to reproduce it (as minimally and precisely as possible) Use
immugw
to login and obtain a token by loging-in with a regular user, then use the token to send a user list request toGET http://localhost:3323/v1/immurestproxy/user/list
Environment
Additional info (any other context about the problem) N/A