Treat empty delimiter as if it is not specified

Found by s3-tests.  References #697.
pull/733/head
Andrew Gaul 2024-11-23 17:19:42 -08:00
rodzic b0e119a99f
commit e598a835ee
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -171,7 +171,9 @@ public final class Nio2BlobStore extends BaseBlobStore {
} }
var delimiter = options.getDelimiter(); var delimiter = options.getDelimiter();
if (delimiter != null && !delimiter.equals("/")) { if ("".equals(delimiter)) {
delimiter = null;
} else if (delimiter != null && !delimiter.equals("/")) {
throw new IllegalArgumentException("Delimiters other than / not supported"); throw new IllegalArgumentException("Delimiters other than / not supported");
} }