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