GitHub user zuotingbing created a discussion: error message is misleading, the
real reason is "org.apache.gravitino.exceptions.NoSuchEntityException: No such
metalake entity: ztb"
when i set gravitino.authorization.enable = true, and add a user
curl -X POST -H "Content-Type: application/json" -d '{ "name": "Staff" }'
http://localhost:8090/api/metalakes/ztb/users
return the error message like this which is misleading
{"code":1008,"type":"ForbiddenException","message":"User 'anonymous' is not
authorized to perform operation 'addUser' on metadata 'ztb'"}
<img width="1230" height="767" alt="image"
src="https://github.com/user-attachments/assets/7767b637-a13c-4a1d-b22d-8483c69627a7"
/>
GitHub link: https://github.com/apache/gravitino/discussions/8779
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]