Surya00011 opened a new pull request, #8396: URL: https://github.com/apache/gravitino/pull/8396
### What changes were proposed in this pull request? - Removed the direct call to `String.format` in `AuthorizationPluginException` constructors. - Delegated `(message, args)` directly to `GravitinoRuntimeException`. - This ensures messages containing `%` (like `"100% done"`) are not misinterpreted as format specifiers when no args are passed. ### Why are the changes needed? Currently, `AuthorizationPluginException` always formats the message string. This causes errors when the message includes `%` but no formatting arguments are provided (e.g., `"100% done"`). By removing premature formatting and letting the parent class handle it, we avoid these errors and maintain expected behavior. Fixes: #8390 ### Does this PR introduce _any_ user-facing change? Yes. - Exception messages are now preserved as-is if no formatting arguments are provided. - Example: `"100% done"` will no longer cause a `MissingFormatArgumentException`. -- 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]
