xichen01 commented on code in PR #8225:
URL: https://github.com/apache/ozone/pull/8225#discussion_r2029129217


##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java:
##########
@@ -760,7 +761,7 @@ public static String normalizeKey(String keyName,
     if (!StringUtils.isBlank(keyName)) {
       String normalizedKeyName;
       if (keyName.startsWith(OM_KEY_PREFIX)) {
-        normalizedKeyName = new Path(keyName).toUri().getPath();
+        normalizedKeyName = new 
Path(normalizeDoubleSlashPath(keyName)).toUri().getPath();
       } else {
         normalizedKeyName = new Path(OM_KEY_PREFIX + keyName)

Review Comment:
   Ok, initially I just tried to remove the extra / and leave only one /, but 
in order to reduce the number of possible for loops, I took this fixed removal 
approach, but it seems that this is unnecessary



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