justinmclean opened a new issue, #8280:
URL: https://github.com/apache/gravitino/issues/8280
### What would you like to be improved?
Currently the method normalizeUriPath in
bundles/gcp/src/main/java/org/apache/gravitino/gcs/credential/GCSTokenProvider.java
doesn't handle empty paths correctly.
Here's a existing test modified to help:
```
@Test
void testNormalizePath() {
Map<String, String> checkResults =
ImmutableMap.of(
"/a/b/", "a/b/",
"/a/b", "a/b/",
"a/b", "a/b/",
"a/b/", "a/b/");
"a/b/", "a/b/",
"/", "",
"", "");
checkResults.forEach(
(k, v) -> {
String normalizedPath = GCSTokenProvider.normalizeUriPath(k);
Assertions.assertEquals(v, normalizedPath);
});
```
### How should we improve?
Fix handling of empty paths.
--
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]