danhuawang opened a new issue, #6060: URL: https://github.com/apache/gravitino/issues/6060
### Version main branch ### Describe what's wrong Create a role with IllegalArgumentException, Then the invalid role is listed in metalake. ### Error message and/or stacktrace <img width="1175" alt="image" src="https://github.com/user-attachments/assets/ac19f35e-641d-4694-ae0d-03091bc0df78" /> <img width="849" alt="image" src="https://github.com/user-attachments/assets/2a623aac-b1fa-498e-9f21-efe340cac620" /> ### How to reproduce 1. Create a metalake and catalog 2. Create a role in the metelake with the following request , it will be refused to create. ``` { "name": "RolePGCatalogEditor7", "securableObjects": [ { "type": "CATALOG", "privileges": [ ], "fullName": "pgrole_catalog1" },{ "type": "schema", "privileges": [ { "name": "CREATE_TABLE", "condition": "ALLOW" } ], "fullName": "pgrole_catalog1.pgrole_schema1" } ] } ``` 3. But call the list role api, the users can get the invalid role. I expect it should be in the list. ### Additional context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
