anmolanmol1234 commented on code in PR #7523: URL: https://github.com/apache/hadoop/pull/7523#discussion_r2043869290
########## hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/utils/DelegationSASGenerator.java: ########## @@ -68,18 +70,25 @@ public String getDelegationSAS(String accountName, String containerName, String case SASTokenProvider.DELETE_RECURSIVE_OPERATION: sp = "d"; sr = "d"; - sdd = Integer.toString(StringUtils.countMatches(path, "/")); + sdd = path.equals("/")? "0": Integer.toString(StringUtils.countMatches(path, "/")); Review Comment: use ROOT constant -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org