LuciferYang opened a new issue, #13222: URL: https://github.com/apache/gravitino/issues/13222
**Version** main branch **Describe what's wrong** The default `TableCatalog.loadTable(ident, requiredPrivilegeNames)` delegates to `loadTable(ident)`, silently discarding the required privileges even though its javadoc promises privilege-aware loading. A caller using the method as an access-control checkpoint, or a catalog that does not override it, receives the table metadata with no signal that privilege enforcement did not happen. **Error message and/or stacktrace** N/A: the defect is a silent fail-open; no exception is thrown. **How to reproduce** Call the default `loadTable(ident, requiredPrivilegeNames)` on a `TableCatalog` that does not override it; the table is returned and the privileges are ignored. **Additional context** The established convention for unsupported capability defaults (`Metalake.supportsRoles`, `Catalog.asSchemas`, `TableCatalog.purgeTable`) is to throw `UnsupportedOperationException`. The only in-repo override, `RelationalCatalog` in `clients/client-java`, sends the privileges to the server and is unaffected. Found during a code audit of the `api` module. -- 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]
