You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "justinmclean (via GitHub)" <gi...@apache.org> on 2025/08/26 04:37:54 UTC
[I] [Improvement] Handle empty paths in GCSTokenProvider.normalizeUriPath to avoid inserting extra trailing slash [gravitino]
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: commits-unsubscribe@gravitino.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Handle empty paths in GCSTokenProvider.normalizeUriPath to avoid inserting extra trailing slash [gravitino]
Posted by "pandeysambhi (via GitHub)" <gi...@apache.org>.
pandeysambhi commented on issue #8280:
URL: https://github.com/apache/gravitino/issues/8280#issuecomment-3222653340
@justinmclean can I take this up ?
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Handle empty paths in GCSTokenProvider.normalizeUriPath to avoid inserting extra trailing slash [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean closed issue #8280: [Improvement] Handle empty paths in GCSTokenProvider.normalizeUriPath to avoid inserting extra trailing slash
URL: https://github.com/apache/gravitino/issues/8280
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Handle empty paths in GCSTokenProvider.normalizeUriPath to avoid inserting extra trailing slash [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #8280:
URL: https://github.com/apache/gravitino/issues/8280#issuecomment-3222772373
It's all yours
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org