whbing commented on code in PR #5941:
URL: https://github.com/apache/ozone/pull/5941#discussion_r1444721780


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/acl/prefix/OMPrefixAclRequest.java:
##########
@@ -155,6 +160,14 @@ public OMClientResponse 
validateAndUpdateCache(OzoneManager ozoneManager, TermIn
     return omClientResponse;
   }
 
+  private void validatePrefixPath(String prefixPath) throws OMException {
+    if (!OzoneFSUtils.isValidName(prefixPath)) {
+      throw new OMException("Prefix path is not a valid path " +
+          "for prefix path: " + prefixPath,

Review Comment:
   NIT:  Maybe "Invalid prefix path name: " more concise?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to