jarredhj0214 commented on code in PR #13846:
URL: https://github.com/apache/gravitino/pull/13846#discussion_r4332279406


##########
server/src/main/java/org/apache/gravitino/server/web/filter/GravitinoInterceptionService.java:
##########
@@ -242,6 +247,27 @@ public Object invoke(MethodInvocation methodInvocation) 
throws Throwable {
             boolean authorizeResult;
             try {
               authorizeResult = executor.execute(authorizationRequestContext);
+            } catch (NoSuchTableException exception) {

Review Comment:
   The probe runs in the authorization executor, before the REST load handler 
is invoked. Without this catch, NoSuchTableException would reach the 
interceptor’s outer catch (Exception) and be converted into a 500 response. 
This catch reuses the existing exception handler to return the standard 404 
response without proceeding to the REST load handler. The same applies to 
NoSuchViewException.



-- 
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]

Reply via email to