mchades commented on code in PR #14669:
URL: https://github.com/apache/gravitino/pull/14669#discussion_r4489827037
##########
server/src/main/java/org/apache/gravitino/server/web/filter/GravitinoInterceptionService.java:
##########
@@ -302,6 +302,9 @@ public Object invoke(MethodInvocation methodInvocation)
throws Throwable {
} catch (IllegalNameIdentifierException ex) {
LOG.warn("Invalid metadata object identifier during authorization",
ex);
return Utils.illegalArguments(ex.getMessage(), ex);
+ } catch (IllegalArgumentException ex) {
Review Comment:
Removed the broad catch in a8b5e1c8ae. Only metadata-name parsing failures
are converted to `IllegalMetadataObjectException`, preserving existing
identifier exceptions. Authorizer configuration, executor, and resource
failures retain generic HTTP 500 responses, with regression tests verifying
`ServerHealth.recordFailure`. The blank-name HTTP tests still pass.
--
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]