LiJie20190102 commented on code in PR #12779:
URL: https://github.com/apache/gravitino/pull/12779#discussion_r3904593806


##########
server/src/main/java/org/apache/gravitino/server/GravitinoServer.java:
##########
@@ -196,12 +196,12 @@ protected void configure() {
     server.addServlet(new HealthAliasServlet(), "/health/*");
     server.addServlet(new HealthAliasServlet(), "/health.html");
 
-    server.addFilter(new RequestContextFilter(), API_ANY_PATH);
+    server.addFilter(new RequestContextFilter(), "/*");

Review Comment:
   "/*" appears 5 times in GravitinoServer.java after this change. Consider 
extracting it to a named constant (e.g. private static final String ALL_PATHS = 
"/*";) alongside the existing API_ANY_PATH to avoid magic strings scattered 
across the configure method.



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