mirror of
https://github.com/minio/minio.git
synced 2025-04-22 11:26:36 -04:00
Fix azure list-objects not to list minio.sys.tmp/ (#5895)
This commit is contained in:
parent
6d5f2a4391
commit
9de8fefa90
@ -551,7 +551,7 @@ func (a *azureObjects) ListObjects(ctx context.Context, bucket, prefix, marker,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, blob := range resp.Blobs {
|
for _, blob := range resp.Blobs {
|
||||||
if strings.HasPrefix(blob.Name, minio.GatewayMinioSysTmp) {
|
if delimiter == "" && strings.HasPrefix(blob.Name, minio.GatewayMinioSysTmp) {
|
||||||
// We filter out minio.GatewayMinioSysTmp entries in the recursive listing.
|
// We filter out minio.GatewayMinioSysTmp entries in the recursive listing.
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -572,7 +572,7 @@ func (a *azureObjects) ListObjects(ctx context.Context, bucket, prefix, marker,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, blobPrefix := range resp.BlobPrefixes {
|
for _, blobPrefix := range resp.BlobPrefixes {
|
||||||
if prefix == minio.GatewayMinioSysTmp {
|
if blobPrefix == minio.GatewayMinioSysTmp {
|
||||||
// We don't do strings.HasPrefix(blob.Name, minio.GatewayMinioSysTmp) here so that
|
// We don't do strings.HasPrefix(blob.Name, minio.GatewayMinioSysTmp) here so that
|
||||||
// we can use tools like mc to inspect the contents of minio.sys.tmp/
|
// we can use tools like mc to inspect the contents of minio.sys.tmp/
|
||||||
// It is OK to allow listing of minio.sys.tmp/ in non-recursive mode as it aids in debugging.
|
// It is OK to allow listing of minio.sys.tmp/ in non-recursive mode as it aids in debugging.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user