apache / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://gravitino.apache.org
Apache License 2.0
1.07k stars 335 forks source link

[Improvement] Error message in WebUI is confused when user does not exist #5461

Closed mchades closed 1 week ago

mchades commented 1 week ago

What would you like to be improved?

After enabling authorization, the error message on the front end is not clear, the real message is

Failed to operate catalog(s) [test] operation [CREATE] under metalake [test_metalake], reason [Current user anonymous doesn't exist in the metalake test_metalake, you should add the user to the metalake first]

but WebUI show:

image

How should we improve?

Pass the actual error message in WebUI

mchades commented 1 week ago

@LauraXia123 cc