From f2574094d4d921d06ca6551bf0f108e009819199 Mon Sep 17 00:00:00 2001 From: Rick Ley Date: Tue, 22 Feb 2022 18:22:42 -0800 Subject: [PATCH 01/11] Wrote tests --- .../azure-storage-blob-nio/CHANGELOG.md | 3 + .../blob/nio/AzureBasicFileAttributes.java | 72 +++--- .../blob/nio/AzureBlobFileAttributes.java | 243 +++++++++++++----- .../blob/nio/AzureFileSystemProvider.java | 9 +- .../storage/blob/nio/AttributeViewTest.groovy | 34 +++ .../storage/blob/nio/CompositeTest.groovy | 132 ++++++++++ 6 files changed, 393 insertions(+), 100 deletions(-) diff --git a/sdk/storage/azure-storage-blob-nio/CHANGELOG.md b/sdk/storage/azure-storage-blob-nio/CHANGELOG.md index 39ea11ebc8b5d..722dbc6cbcb1f 100644 --- a/sdk/storage/azure-storage-blob-nio/CHANGELOG.md +++ b/sdk/storage/azure-storage-blob-nio/CHANGELOG.md @@ -3,8 +3,11 @@ ## 12.0.0-beta.17 (Unreleased) ### Features Added +- Enabled support for Files.exists() +- Enabled support for Files.walkFileTree() ### Breaking Changes +- `AzureFileSystemProvider.readAttributes()` no longer throws an IOException for virtual directories and instead returns a set of attributes that are all empty except for an `isVirtual` property set to true. ### Bugs Fixed diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java index 414226c957aae..7c8a4174237f2 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java @@ -24,6 +24,8 @@ * {@link AzureBlobFileAttributes} is generally preferred. *

* Some attributes are not supported. Refer to the javadocs on each method for more information. + *

+ * If the target file is a virtual directory, most attributes will be set to null. */ public final class AzureBasicFileAttributes implements BasicFileAttributes { private final ClientLogger logger = new ClientLogger(AzureBasicFileAttributes.class); @@ -35,6 +37,7 @@ public final class AzureBasicFileAttributes implements BasicFileAttributes { set.add("lastModifiedTime"); set.add("isRegularFile"); set.add("isDirectory"); + set.add("isVirtualDirectory"); set.add("isSymbolicLink"); set.add("isOther"); set.add("size"); @@ -42,57 +45,52 @@ public final class AzureBasicFileAttributes implements BasicFileAttributes { ATTRIBUTE_STRINGS = Collections.unmodifiableSet(set); } - private final BlobProperties properties; - private final AzureResource resource; + private final AzureBlobFileAttributes internalAttributes; /* - There are some work-arounds we could do to try to accommodate virtual directories such as making a checkDirStatus - call before or after getProperties to throw an appropriate error or adding an isVirtualDirectory method. However, - the former wastes network time only to throw a slightly more specific error when we will throw on 404 anyway. The - latter introduces virtual directories into the actual code path/api surface. While we are clear in our docs about - the possible pitfalls of virtual directories, and customers should be aware of it, they shouldn't have to code - against it. Therefore, we fall back to documenting that reading attributes on a virtual directory will throw. + In order to support Files.exist() and other methods like Files.walkFileTree() which depend on it, we have had to add + support for virtual directories. This is not ideal as customers will have to now perform null checks when inspecting + attributes (or at least check if it is a virtual directory before inspecting properties). It also incurs extra + network requests as we have to call a checkDirectoryExists() after receiving the initial 404. This is two + additional network requests, though they only happen in the case when a file doesn't exist or is virtual, so it + shouldn't happen in the majority of api calls. */ AzureBasicFileAttributes(Path path) throws IOException { - try { - this.resource = new AzureResource(path); - this.properties = resource.getBlobClient().getProperties(); - } catch (BlobStorageException e) { - throw LoggingUtility.logError(logger, new IOException(e)); - } + this.internalAttributes = new AzureBlobFileAttributes(path); } /** - * Returns the time of last modification. + * Returns the time of last modification or null if this is a virtual directory. * - * @return the time of last modification. + * @return the time of last modification or null if this is a virtual directory */ @Override public FileTime lastModifiedTime() { - return FileTime.from(properties.getLastModified().toInstant()); + return this.internalAttributes.lastModifiedTime(); } /** - * Returns the time of last modification. + * Returns the time of last modification or null if this is a virtual directory *

* Last access time is not supported by the blob service. In this case, it is typical for implementations to return * the {@link #lastModifiedTime()}. * - * @return the time of last modification. + * @return the time of last modification or null if this is a virtual directory */ @Override public FileTime lastAccessTime() { - return this.lastModifiedTime(); + return this.internalAttributes.lastAccessTime(); } /** - * Returns the creation time. The creation time is the time that the file was created. + * Returns the creation time. The creation time is the time that the file was created. Returns null if this is a + * virtual directory. * - * @return The creation time. + * @return The creation time or null if this is a virtual directory */ @Override public FileTime creationTime() { - return FileTime.from(properties.getCreationTime().toInstant()); + return this.internalAttributes.creationTime(); } /** @@ -102,7 +100,7 @@ public FileTime creationTime() { */ @Override public boolean isRegularFile() { - return !this.properties.getMetadata().getOrDefault(AzureResource.DIR_METADATA_MARKER, "false").equals("true"); + return this.internalAttributes.isRegularFile(); } /** @@ -116,7 +114,19 @@ public boolean isRegularFile() { */ @Override public boolean isDirectory() { - return !this.isRegularFile(); + return this.internalAttributes.isDirectory(); + } + + /** + * Tells whether the file is a virtual directory. + *

+ * See {@link AzureFileSystemProvider#createDirectory(Path, FileAttribute[])} for more information on virtual and + * concrete directories. + * + * @return whether the file is a virtual directory + */ + public boolean isVirtualDirectory() { + return this.internalAttributes.isVirtualDirectory(); } /** @@ -126,7 +136,7 @@ public boolean isDirectory() { */ @Override public boolean isSymbolicLink() { - return false; + return this.internalAttributes.isSymbolicLink(); } /** @@ -136,17 +146,17 @@ public boolean isSymbolicLink() { */ @Override public boolean isOther() { - return false; + return this.internalAttributes.isOther(); } /** - * Returns the size of the file (in bytes). + * Returns the size of the file (in bytes) or null if this is a virtual directory. * - * @return the size of the file + * @return the size of the file or null if this is a virtual directory */ @Override public long size() { - return properties.getBlobSize(); + return this.internalAttributes.size(); } /** @@ -156,6 +166,6 @@ public long size() { */ @Override public Object fileKey() { - return this.resource.getBlobClient().getBlobUrl(); + return this.internalAttributes.fileKey(); } } diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java index 50428a2172ee7..eeccc2d33f1e6 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java @@ -28,6 +28,8 @@ *

* Some of the attributes inherited from {@link BasicFileAttributes} are not supported. See the docs on each method for * more information. + *

+ * If the target file is a virtual directory, most attributes will be set to null. */ public final class AzureBlobFileAttributes implements BasicFileAttributes { /* @@ -43,14 +45,24 @@ public final class AzureBlobFileAttributes implements BasicFileAttributes { private final BlobProperties properties; private final AzureResource resource; + private final boolean isVirtualDirectory; AzureBlobFileAttributes(Path path) throws IOException { + this.resource = new AzureResource(path); + BlobProperties props = null; try { - this.resource = new AzureResource(path); - this.properties = resource.getBlobClient().getProperties(); + props = resource.getBlobClient().getProperties(); } catch (BlobStorageException e) { - throw LoggingUtility.logError(logger, new IOException("Path: " + path.toString(), e)); + if (e.getStatusCode() == 404 && this.resource.checkDirectoryExists()) { + this.isVirtualDirectory = true; + this.properties = null; + return; + } else { + throw LoggingUtility.logError(logger, new IOException("Path: " + path.toString(), e)); + } } + this.properties = props; + this.isVirtualDirectory = false; } static Map> getAttributeSuppliers(AzureBlobFileAttributes attributes) { @@ -74,6 +86,7 @@ static Map> getAttributeSuppliers(AzureBlobFileAttribut map.put("metadata", attributes::metadata); map.put("isRegularFile", attributes::isRegularFile); map.put("isDirectory", attributes::isDirectory); + map.put("isVirtualDirectory", attributes::isVirtualDirectory); map.put("isSymbolicLink", attributes::isSymbolicLink); map.put("isOther", attributes::isOther); map.put("size", attributes::size); @@ -81,191 +94,269 @@ static Map> getAttributeSuppliers(AzureBlobFileAttribut } /** - * Returns the creation time. The creation time is the time that the file was created. + * Returns the creation time. The creation time is the time that the file was created. Returns null if this is a + * virtual directory. * - * @return The creation time. + * @return The creation time or */ @Override public FileTime creationTime() { - return FileTime.from(this.properties.getCreationTime().toInstant()); + if (!this.isVirtualDirectory) { + return FileTime.from(this.properties.getCreationTime().toInstant()); + } else { + return null; + } } /** - * Returns the time of last modification. + * Returns the time of last modification. Returns null if this is a virtual directory * - * @return the time of last modification. + * @return the time of last modification or null if this is a virtual directory */ @Override public FileTime lastModifiedTime() { - return FileTime.from(this.properties.getLastModified().toInstant()); + if (!this.isVirtualDirectory) { + return FileTime.from(this.properties.getLastModified().toInstant()); + } else { + return null; + } } /** - * Returns the eTag of the blob. + * Returns the eTag of the blob or null if this is a virtual directory * - * @return the eTag of the blob + * @return the eTag of the blob or null if this is a virtual directory */ public String eTag() { - return this.properties.getETag(); + if (!this.isVirtualDirectory) { + return this.properties.getETag(); + } else { + return null; + } } /** - * Returns the {@link BlobHttpHeaders} of the blob. + * Returns the {@link BlobHttpHeaders} of the blob or null if this is a virtual directory. * - * @return {@link BlobHttpHeaders} + * @return {@link BlobHttpHeaders} or null if this is a virtual directory */ public BlobHttpHeaders blobHttpHeaders() { + if (!this.isVirtualDirectory) { /* We return these all as one value so it's consistent with the way of setting, especially the setAttribute method that accepts a string argument for the name of the property. Returning them individually would mean we have to support setting them individually as well, which is not possible due to service constraints. */ - return new BlobHttpHeaders() - .setContentType(this.properties.getContentType()) - .setContentLanguage(this.properties.getContentLanguage()) - .setContentMd5(this.properties.getContentMd5()) - .setContentDisposition(this.properties.getContentDisposition()) - .setContentEncoding(this.properties.getContentEncoding()) - .setCacheControl(this.properties.getCacheControl()); + return new BlobHttpHeaders() + .setContentType(this.properties.getContentType()) + .setContentLanguage(this.properties.getContentLanguage()) + .setContentMd5(this.properties.getContentMd5()) + .setContentDisposition(this.properties.getContentDisposition()) + .setContentEncoding(this.properties.getContentEncoding()) + .setCacheControl(this.properties.getCacheControl()); + } else { + return null; + } } /** - * Returns the type of the blob. + * Returns the type of the blob or null if this is a virtual directory * - * @return the type of the blob + * @return the type of the blob or null if this is a virtual directory */ public BlobType blobType() { - return this.properties.getBlobType(); + if (!this.isVirtualDirectory) { + return this.properties.getBlobType(); + }else { + return null; + } } /** * Returns the identifier of the last copy operation. If this blob hasn't been the target of a copy operation or has - * been modified since this won't be set. + * been modified since this won't be set. Returns null if this is a virtual directory * - * @return the identifier of the last copy operation. + * @return the identifier of the last copy operation or null if this is a virtual directory */ public String copyId() { - return this.properties.getCopyId(); + if (!this.isVirtualDirectory) { + return this.properties.getCopyId(); + } else { + return null; + } } /** * Returns the status of the last copy operation. If this blob hasn't been the target of a copy operation or has - * been modified since this won't be set. + * been modified since this won't be set. Returns null if this is a virtual directory * - * @return the status of the last copy operation. + * @return the status of the last copy operation or null if this is a virtual directory */ public CopyStatusType copyStatus() { - return this.properties.getCopyStatus(); + if (!this.isVirtualDirectory) { + return this.properties.getCopyStatus(); + } else { + return null; + } } /** * Returns the source blob URL from the last copy operation. If this blob hasn't been the target of a copy operation - * or has been modified since this won't be set. + * or has been modified since this won't be set. Returns null if this is a virtual directory * - * @return the source blob URL from the last copy operation. + * @return the source blob URL from the last copy operation or null if this is a virtual directory */ public String copySource() { - return this.properties.getCopySource(); + if (!this.isVirtualDirectory) { + return this.properties.getCopySource(); + } else { + return null; + } } /** * Returns the number of bytes copied and total bytes in the source from the last copy operation (bytes copied/total * bytes). If this blob hasn't been the target of a copy operation or has been modified since this won't be set. + * Returns null if this is a virtual directory * - * @return the number of bytes copied and total bytes in the source from the last copy operation + * @return the number of bytes copied and total bytes in the source from the last copy operation null if this is a + * virtual directory */ public String copyProgress() { - return this.properties.getCopyProgress(); + if (!this.isVirtualDirectory) { + return this.properties.getCopyProgress(); + } else { + return null; + } } /** * Returns the completion time of the last copy operation. If this blob hasn't been the target of a copy operation - * or has been modified since this won't be set. + * or has been modified since this won't be set. Returns null if this is a virtual directory. * - * @return the completion time of the last copy operation. + * @return the completion time of the last copy operation or null if this is a virtual directory */ public OffsetDateTime copyCompletionTime() { - return this.properties.getCopyCompletionTime(); + if (!this.isVirtualDirectory) { + return this.properties.getCopyCompletionTime(); + } else { + return null; + } } /** * Returns the description of the last copy failure, this is set when the {@link #copyStatus() getCopyStatus} is * {@link CopyStatusType#FAILED failed} or {@link CopyStatusType#ABORTED aborted}. If this blob hasn't been the - * target of a copy operation or has been modified since this won't be set. + * target of a copy operation or has been modified since this won't be set. Returns null if this is a virtual + * directory. * - * @return the description of the last copy failure. + * @return the description of the last copy failure or null if this is a virtual directory */ public String copyStatusDescription() { - return this.properties.getCopyStatusDescription(); + if (!this.isVirtualDirectory) { + return this.properties.getCopyStatusDescription(); + } else { + return null; + } } /** - * Returns the status of the blob being encrypted on the server. + * Returns the status of the blob being encrypted on the server or null if this is a virtual directory. * - * @return the status of the blob being encrypted on the server. + * @return the status of the blob being encrypted on the server or null if this is a virtual directory */ public Boolean isServerEncrypted() { - return this.properties.isServerEncrypted(); + if (!this.isVirtualDirectory) { + return this.properties.isServerEncrypted(); + } else { + return null; + } } /** * Returns the tier of the blob. This is only set for Page blobs on a premium storage account or for Block blobs on - * blob storage or general purpose V2 account. + * blob storage or general purpose V2 account. Returns null if this is a virtual directory. * - * @return the tier of the blob. + * @return the tier of the blob or null if this is a virtual directory */ public AccessTier accessTier() { - return this.properties.getAccessTier(); + if (!this.isVirtualDirectory) { + return this.properties.getAccessTier(); + } else { + return null; + } } /** * Returns the status of the tier being inferred for the blob. This is only set for Page blobs on a premium storage - * account or for Block blobs on blob storage or general purpose V2 account. + * account or for Block blobs on blob storage or general purpose V2 account. Returns null if this is a virtual + * directory. * - * @return the status of the tier being inferred for the blob. + * @return the status of the tier being inferred for the blob or null if this is a virtual directory */ public Boolean isAccessTierInferred() { - return this.properties.isAccessTierInferred(); + if (!this.isVirtualDirectory) { + return this.properties.isAccessTierInferred(); + } else { + return null; + } } /** * Returns the archive status of the blob. This is only for blobs on a blob storage and general purpose v2 account. + * Returns null if this is a virtual directory. * - * @return the archive status of the blob. + * @return the archive status of the blob or null if this is a virtual directory */ public ArchiveStatus archiveStatus() { - return this.properties.getArchiveStatus(); + if (!this.isVirtualDirectory) { + return this.properties.getArchiveStatus(); + } else { + return null; + } } /** - * Returns the time when the access tier for the blob was last changed. + * Returns the time when the access tier for the blob was last changed or null if this is a virtual directory. * - * @return the time when the access tier for the blob was last changed. + * @return the time when the access tier for the blob was last changed or null if this is a virtual directory */ public OffsetDateTime accessTierChangeTime() { - return this.properties.getAccessTierChangeTime(); + if (!this.isVirtualDirectory) { + return this.properties.getAccessTierChangeTime(); + } else { + return null; + } } /** - * Returns the metadata associated with this blob. + * Returns the metadata associated with this blob or null if this is a virtual directory. * - * @return the metadata associated with this blob + * @return the metadata associated with this blob or null if this is a virtual directory */ public Map metadata() { - return Collections.unmodifiableMap(this.properties.getMetadata()); + if (!this.isVirtualDirectory) { + return Collections.unmodifiableMap(this.properties.getMetadata()); + } else { + return null; + } } /** - * Returns the time of last modification. + * Returns the time of last modification or null if this is a virtual directory. *

* Last access time is not supported by the blob service. In this case, it is typical for implementations to return * the {@link #lastModifiedTime()}. * - * @return the time of last modification. + * @return the time of last modification null if this is a virtual directory */ @Override public FileTime lastAccessTime() { - return this.lastModifiedTime(); + if (!this.isVirtualDirectory) { + return this.lastModifiedTime(); + } else { + return null; + } } /** @@ -275,13 +366,17 @@ public FileTime lastAccessTime() { */ @Override public boolean isRegularFile() { - return !this.properties.getMetadata().getOrDefault(AzureResource.DIR_METADATA_MARKER, "false").equals("true"); + if (!this.isVirtualDirectory) { + return !this.properties.getMetadata().getOrDefault(AzureResource.DIR_METADATA_MARKER, "false").equals("true"); + } else { + return false; + } } /** * Tells whether the file is a directory. *

- * Will only return true if the directory is a concrete directory. See + * Will return true if the directory is a concrete or virtual directory. See * {@link AzureFileSystemProvider#createDirectory(Path, FileAttribute[])} for more information on virtual and * concrete directories. * @@ -292,6 +387,18 @@ public boolean isDirectory() { return !this.isRegularFile(); } + /** + * Tells whether the file is a virtual directory. + *

+ * See {@link AzureFileSystemProvider#createDirectory(Path, FileAttribute[])} for more information on virtual and + * concrete directories. + * + * @return whether the file is a virtual directory + */ + public boolean isVirtualDirectory() { + return this.isVirtualDirectory; + } + /** * Tells whether the file is a symbolic link. * @@ -313,13 +420,17 @@ public boolean isOther() { } /** - * Returns the size of the file (in bytes). + * Returns the size of the file (in bytes) or null if this is a virtual directory. * - * @return the size of the file + * @return the size of the file or null if this is a virtual directory */ @Override public long size() { - return properties.getBlobSize(); + if (!this.isVirtualDirectory) { + return properties.getBlobSize(); + } else { + return -1; + } } /** diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystemProvider.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystemProvider.java index 45d10990704c6..6b5a195851cb2 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystemProvider.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystemProvider.java @@ -876,7 +876,8 @@ public void checkAccess(Path path, AccessMode... accessModes) throws IOException *

* See {@link AzureBasicFileAttributeView} and {@link AzureBlobFileAttributeView} for more information. *

- * Reading or setting attributes on a virtual directory is not supported and will throw an {@link IOException}. See + * Reading attributes on a virtual directory will return {@code null} for most properties other than + * {@link AzureBlobFileAttributes#isVirtualDirectory()}, which will return true. See * {@link #createDirectory(Path, FileAttribute[])} for more information on virtual directories. * * @param path the path to the file @@ -905,7 +906,8 @@ public V getFileAttributeView(Path path, Class *

* See {@link AzureBasicFileAttributes} and {@link AzureBlobFileAttributes} for more information. *

- * Reading attributes on a virtual directory is not supported and will throw an {@link IOException}. See + * Reading attributes on a virtual directory will return {@code null} for most properties other than + * {@link AzureBlobFileAttributes#isVirtualDirectory()}, which will return true. See * {@link #createDirectory(Path, FileAttribute[])} for more information on virtual directories. * * @param path the path to the file @@ -943,7 +945,8 @@ public A readAttributes(Path path, Class type *

* See {@link AzureBasicFileAttributes} and {@link AzureBlobFileAttributes} for more information. *

- * Reading attributes on a virtual directory is not supported and will throw an {@link IOException}. See + * Reading attributes on a virtual directory will return {@code null} for all properties other than + * {@link AzureBlobFileAttributes#isVirtualDirectory()}, which will return true. See * {@link #createDirectory(Path, FileAttribute[])} for more information on virtual directories. * * @param path the path to the file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AttributeViewTest.groovy b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AttributeViewTest.groovy index bebf608162d84..0b86645b6a501 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AttributeViewTest.groovy +++ b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AttributeViewTest.groovy @@ -6,6 +6,7 @@ package com.azure.storage.blob.nio import com.azure.storage.blob.BlobClient import com.azure.storage.blob.models.AccessTier import com.azure.storage.blob.models.BlobHttpHeaders +import com.azure.storage.blob.models.BlobStorageException import spock.lang.Unroll import java.nio.file.ClosedFileSystemException @@ -45,6 +46,7 @@ class AttributeViewTest extends APISpec { attr.isRegularFile() bc.getBlobUrl() == attr.fileKey() !attr.isDirectory() + !attr.isVirtualDirectory() !attr.isSymbolicLink() !attr.isOther() } @@ -59,11 +61,41 @@ class AttributeViewTest extends APISpec { then: attr.isDirectory() + !attr.isVirtualDirectory() !attr.isRegularFile() !attr.isOther() !attr.isSymbolicLink() } + def "AzureBasicFileAttributeView directory virtual"() { + setup: + def dirName = generateBlobName() + def childName = generateContainerName() + def bc = cc.getBlobClient(dirName + '/' + childName) + def path = fs.getPath(bc.getBlobName()) + + when: + def attr = new AzureBasicFileAttributeView(path).readAttributes() + + then: + attr.isDirectory() + attr.isVirtualDirectory() + !attr.isRegularFile() + !attr.isOther() + !attr.isSymbolicLink() + } + + def "AzureBasicFileAttributeView no exist"() { + setup: + def path = fs.getPath(generateBlobName()) + + when: + def attr = new AzureBasicFileAttributeView(path).readAttributes() + + then: + thrown(IOException) + } + def "AzureBasicFileAttributeView fs closed"() { setup: def path = fs.getPath(generateBlobName()) @@ -93,6 +125,7 @@ class AttributeViewTest extends APISpec { attr.isRegularFile() bc.getBlobUrl() == attr.fileKey() !attr.isDirectory() + !attr.isVirtualDirectory() !attr.isSymbolicLink() !attr.isOther() props.getETag() == attr.eTag() @@ -127,6 +160,7 @@ class AttributeViewTest extends APISpec { FileTime.from(props.getCreationTime().toInstant()) == suppliers.get("creationTime").get() attr.isRegularFile() !attr.isDirectory() + !attr.isVirtualDirectory() !attr.isSymbolicLink() !attr.isOther() props.getETag() == suppliers.get("eTag").get() diff --git a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/CompositeTest.groovy b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/CompositeTest.groovy index d8799351615f9..2c689bbb6912d 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/CompositeTest.groovy +++ b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/CompositeTest.groovy @@ -3,8 +3,14 @@ package com.azure.storage.blob.nio +import spock.lang.Unroll + +import java.nio.file.FileVisitResult +import java.nio.file.FileVisitor import java.nio.file.Files +import java.nio.file.Path import java.nio.file.StandardCopyOption +import java.nio.file.attribute.BasicFileAttributes /** * This test class is for testing static helper methods provided by the JDK. Customers often rely on these methods @@ -106,4 +112,130 @@ class CompositeTest extends APISpec { // Delete the one that is a prefix to ensure the other one does not interfere Files.delete(fs.getPath(pathName)) } + + @Unroll + def "Files exists"() { + setup: + def fs = createFS(config) + + // Generate resource names. + def container1 = rootNameToContainerName(getNonDefaultRootDir(fs)) + def path = (AzurePath) fs.getPath(container1, generateBlobName()) + + // Generate clients to resources. + def blobClient = path.toBlobClient() + def childClient1 = ((AzurePath) path.resolve(generateBlobName())).toBlobClient() + + // Create resources as necessary + if (status == DirectoryStatus.NOT_A_DIRECTORY) { + blobClient.upload(data.defaultInputStream, data.defaultDataSize) + } else if (status == DirectoryStatus.NOT_EMPTY) { + if (!isVirtual) { + putDirectoryBlob(blobClient.getBlockBlobClient()) + } + childClient1.upload(data.defaultInputStream, data.defaultDataSize) + } + + expect: + if (status != DirectoryStatus.DOES_NOT_EXIST) { + assert Files.exists(path) + } else { + assert !Files.exists(path) + } + + where: + status | isVirtual + DirectoryStatus.DOES_NOT_EXIST | false + DirectoryStatus.NOT_A_DIRECTORY | false + DirectoryStatus.NOT_EMPTY | true + DirectoryStatus.NOT_EMPTY | false + } + + def "Files walkFileTree"() { + setup: + def fs = createFS(config) + /* + file1 + cDir1 + cDir2 + |__file2 + |__cDir3 + |__vDir1 + |__file3 + vDir2 + |__file4 + |__cDir4 + |__vDir3 + |__file5 + */ + def baseDir = "a" + def file1 = "a/file1" + def cDir1 = "a/cDir1" + def cDir2 = "a/cDir2" + def file2 = "a/cDir2/file2" + def cDir3 = "a/cDir2/cDir3" + def vDir1 = "a/cDir2/vDir1" + def file3 = "a/cDir2/vDir1/file3" + def vDir2 = "a/vDir2" + def file4 = "a/vDir2/file4" + def cDir4 = "a/vDir2/cDir4" + def vdir3 = "a/vDir2/vDir3" + def file5 = "a/vDir2/vDir3/file5" + + // Create files and directories + ((AzurePath) fs.getPath(file1)).toBlobClient().upload(data.defaultInputStream, data.defaultDataSize) + ((AzurePath) fs.getPath(file2)).toBlobClient().upload(data.defaultInputStream, data.defaultDataSize) + ((AzurePath) fs.getPath(file3)).toBlobClient().upload(data.defaultInputStream, data.defaultDataSize) + ((AzurePath) fs.getPath(file4)).toBlobClient().upload(data.defaultInputStream, data.defaultDataSize) + ((AzurePath) fs.getPath(file5)).toBlobClient().upload(data.defaultInputStream, data.defaultDataSize) + + putDirectoryBlob(((AzurePath) fs.getPath(baseDir)).toBlobClient().getBlockBlobClient()) + putDirectoryBlob(((AzurePath) fs.getPath(cDir1)).toBlobClient().getBlockBlobClient()) + putDirectoryBlob(((AzurePath) fs.getPath(cDir2)).toBlobClient().getBlockBlobClient()) + putDirectoryBlob(((AzurePath) fs.getPath(cDir3)).toBlobClient().getBlockBlobClient()) + putDirectoryBlob(((AzurePath) fs.getPath(cDir4)).toBlobClient().getBlockBlobClient()) + + when: + def visitor = new TestFileVisitor() + System.out.println(Files.readAttributes(fs.getPath(baseDir), AzureBasicFileAttributes).isDirectory()) + Files.walkFileTree(fs.getPath(baseDir), visitor) + + // might need to make this work on root directories as well, which would probably mean inspecting the path and adding an isRoot method + + then: + visitor.fileCount == 5 + visitor.directoryCount == 8 // includes baseDir + visitor.failureCount == 0 + notThrown(Exception) + } + + class TestFileVisitor implements FileVisitor { + + public int fileCount = 0; + public int directoryCount = 0; + public int failureCount = 0; + + @Override + FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException { + return FileVisitResult.CONTINUE + } + + @Override + FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { + fileCount++ + return FileVisitResult.CONTINUE + } + + @Override + FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException { + failureCount++ + return FileVisitResult.CONTINUE + } + + @Override + FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException { + directoryCount++ + return FileVisitResult.CONTINUE + } + } } From 4ca88a3c2fb9f570ee760a8ad810e211d43264f7 Mon Sep 17 00:00:00 2001 From: Rick Ley Date: Wed, 23 Feb 2022 11:29:07 -0800 Subject: [PATCH 02/11] Added recordings --- .../blob/nio/AzureBasicFileAttributes.java | 2 - .../blob/nio/AzureBlobFileAttributes.java | 6 +- .../storage/blob/nio/AttributeViewTest.groovy | 6 +- ...asicFileAttributeViewDirectoryVirtual.json | 218 +++ ...estAzureBasicFileAttributeViewNoExist.json | 193 +++ .../CompositeTestFilesCreateDirs.json | 430 +++-- .../CompositeTestFilesExists[0].json | 149 ++ .../CompositeTestFilesExists[1].json | 146 ++ .../CompositeTestFilesExists[2].json | 174 ++ .../CompositeTestFilesExists[3].json | 170 ++ .../CompositeTestFilesWalkFileTree.json | 1401 +++++++++++++++++ 11 files changed, 2713 insertions(+), 182 deletions(-) create mode 100644 sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestAzureBasicFileAttributeViewDirectoryVirtual.json create mode 100644 sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestAzureBasicFileAttributeViewNoExist.json create mode 100644 sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[0].json create mode 100644 sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[1].json create mode 100644 sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[2].json create mode 100644 sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[3].json create mode 100644 sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesWalkFileTree.json diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java index 7c8a4174237f2..0c637b0de89cd 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java @@ -4,8 +4,6 @@ package com.azure.storage.blob.nio; import com.azure.core.util.logging.ClientLogger; -import com.azure.storage.blob.models.BlobProperties; -import com.azure.storage.blob.models.BlobStorageException; import java.io.IOException; import java.nio.file.Path; diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java index eeccc2d33f1e6..8c84b4cb1d055 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java @@ -167,9 +167,9 @@ public BlobHttpHeaders blobHttpHeaders() { public BlobType blobType() { if (!this.isVirtualDirectory) { return this.properties.getBlobType(); - }else { - return null; - } + } else { + return null; + } } /** diff --git a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AttributeViewTest.groovy b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AttributeViewTest.groovy index 0b86645b6a501..896f745981351 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AttributeViewTest.groovy +++ b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AttributeViewTest.groovy @@ -7,6 +7,7 @@ import com.azure.storage.blob.BlobClient import com.azure.storage.blob.models.AccessTier import com.azure.storage.blob.models.BlobHttpHeaders import com.azure.storage.blob.models.BlobStorageException +import com.azure.storage.common.test.shared.TestEnvironment import spock.lang.Unroll import java.nio.file.ClosedFileSystemException @@ -72,10 +73,11 @@ class AttributeViewTest extends APISpec { def dirName = generateBlobName() def childName = generateContainerName() def bc = cc.getBlobClient(dirName + '/' + childName) - def path = fs.getPath(bc.getBlobName()) + bc.upload(data.getDefaultBinaryData()) + def dirPath = fs.getPath(dirName) when: - def attr = new AzureBasicFileAttributeView(path).readAttributes() + def attr = new AzureBasicFileAttributeView(dirPath).readAttributes() then: attr.isDirectory() diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestAzureBasicFileAttributeViewDirectoryVirtual.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestAzureBasicFileAttributeViewDirectoryVirtual.json new file mode 100644 index 0000000000000..ddb7da865937d --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestAzureBasicFileAttributeViewDirectoryVirtual.json @@ -0,0 +1,218 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/66a492bc166a492bc13d19620ddc908ef9d34439289b?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "181fbc85-8754-4a18-b33d-9bee6bc5a157" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "a154496b-701e-013c-58eb-28a65a000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:a154496b-701e-013c-58eb-28a65a000000\nTime:2022-02-23T19:28:02.5120921Z", + "x-ms-client-request-id" : "181fbc85-8754-4a18-b33d-9bee6bc5a157", + "Date" : "Wed, 23 Feb 2022 19:28:01 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/66a492bc166a492bc13d19620ddc908ef9d34439289b?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "f474a13d-9234-47a4-9c81-d0c5615855c1" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F7029BD7EC2B", + "Last-Modified" : "Wed, 23 Feb 2022 19:28:02 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "a1544978-701e-013c-62eb-28a65a000000", + "x-ms-client-request-id" : "f474a13d-9234-47a4-9c81-d0c5615855c1", + "Date" : "Wed, 23 Feb 2022 19:28:01 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/66a492bc266a492bc13d24928c2362fc409774acdad5?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "8f3a88ca-ef57-4b8b-83e2-f87bf1f52f88" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "a1544980-701e-013c-69eb-28a65a000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:a1544980-701e-013c-69eb-28a65a000000\nTime:2022-02-23T19:28:02.7509563Z", + "x-ms-client-request-id" : "8f3a88ca-ef57-4b8b-83e2-f87bf1f52f88", + "Date" : "Wed, 23 Feb 2022 19:28:01 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/66a492bc266a492bc13d24928c2362fc409774acdad5?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "822c25b4-6ced-411a-a189-a5c9daa563a9" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F7029BEF6854", + "Last-Modified" : "Wed, 23 Feb 2022 19:28:02 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "a1544986-701e-013c-6eeb-28a65a000000", + "x-ms-client-request-id" : "822c25b4-6ced-411a-a189-a5c9daa563a9", + "Date" : "Wed, 23 Feb 2022 19:28:01 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/66a492bc166a492bc13d19620ddc908ef9d34439289b/66a492bc366a492bc13d53716827c1642fc1a41d8a06", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "a90ebd76-cc83-4d9f-bcfb-a577d783184e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Wed, 23 Feb 2022 19:28:02 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Wed, 23 Feb 2022 19:28:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "eTag" : "0x8D9F7029C075F84", + "x-ms-request-id" : "a1544999-701e-013c-7feb-28a65a000000", + "x-ms-client-request-id" : "a90ebd76-cc83-4d9f-bcfb-a577d783184e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/66a492bc166a492bc13d19620ddc908ef9d34439289b/66a492bc466a492bc13d1584488e3bf010b8445ca8b3%2F66a492bc566a492bc13d7516161965874a4fe4c409f2", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "ec0c840a-7487-419e-8a92-d1b76b5249d5", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Wed, 23 Feb 2022 19:28:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Wed, 23 Feb 2022 19:28:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "eTag" : "0x8D9F7029C11BE45", + "x-ms-request-id" : "a15449a6-701e-013c-0beb-28a65a000000", + "x-ms-client-request-id" : "ec0c840a-7487-419e-8a92-d1b76b5249d5" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/66a492bc166a492bc13d19620ddc908ef9d34439289b/66a492bc466a492bc13d1584488e3bf010b8445ca8b3", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "4c42d2ce-22be-4a55-949c-4033d701da96" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "a15449af-701e-013c-13eb-28a65a000000", + "x-ms-client-request-id" : "4c42d2ce-22be-4a55-949c-4033d701da96", + "Date" : "Wed, 23 Feb 2022 19:28:02 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/66a492bc166a492bc13d19620ddc908ef9d34439289b/66a492bc466a492bc13d1584488e3bf010b8445ca8b3", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "00e7f351-e90f-4a07-843d-0bf581a94a46" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "a15449b3-701e-013c-17eb-28a65a000000", + "x-ms-client-request-id" : "00e7f351-e90f-4a07-843d-0bf581a94a46", + "Date" : "Wed, 23 Feb 2022 19:28:02 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/66a492bc166a492bc13d19620ddc908ef9d34439289b?restype=container&comp=list&prefix=66a492bc466a492bc13d1584488e3bf010b8445ca8b3/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "6d924f0d-0619-48f5-9e4a-58c746a29dc7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "a15449b6-701e-013c-1aeb-28a65a000000", + "Body" : "66a492bc466a492bc13d1584488e3bf010b8445ca8b3/2/66a492bc466a492bc13d1584488e3bf010b8445ca8b3/66a492bc566a492bc13d7516161965874a4fe4c409f2Wed, 23 Feb 2022 19:28:03 GMTWed, 23 Feb 2022 19:28:03 GMT0x8D9F7029C11BE457application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue", + "x-ms-client-request-id" : "6d924f0d-0619-48f5-9e4a-58c746a29dc7", + "Date" : "Wed, 23 Feb 2022 19:28:02 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/66a492bc166a492bc13d19620ddc908ef9d34439289b?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "2940b7df-d31b-4986-b543-b10aa2a9bcc6" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "a15449c7-701e-013c-2beb-28a65a000000", + "x-ms-client-request-id" : "2940b7df-d31b-4986-b543-b10aa2a9bcc6", + "Date" : "Wed, 23 Feb 2022 19:28:02 GMT" + }, + "Exception" : null + } ], + "variables" : [ "66a492bc066a492bc13d8527097e24d562eb8475c916", "66a492bc166a492bc13d19620ddc908ef9d34439289b", "66a492bc266a492bc13d24928c2362fc409774acdad5", "66a492bc366a492bc13d53716827c1642fc1a41d8a06", "66a492bc466a492bc13d1584488e3bf010b8445ca8b3", "66a492bc566a492bc13d7516161965874a4fe4c409f2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestAzureBasicFileAttributeViewNoExist.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestAzureBasicFileAttributeViewNoExist.json new file mode 100644 index 0000000000000..388cbd18af52b --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestAzureBasicFileAttributeViewNoExist.json @@ -0,0 +1,193 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/adfc0df61adfc0df68f22476279ed9ec4777b45a98a4?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "83627971-769b-4718-b768-635048ea2f97" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "06a1cef5-201e-00a8-5beb-2880c1000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:06a1cef5-201e-00a8-5beb-2880c1000000\nTime:2022-02-23T19:28:16.4200275Z", + "x-ms-client-request-id" : "83627971-769b-4718-b768-635048ea2f97", + "Date" : "Wed, 23 Feb 2022 19:28:15 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/adfc0df61adfc0df68f22476279ed9ec4777b45a98a4?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "ba4cdfec-de2e-49e9-bb3e-bc03360f2d90" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F702A42157BB", + "Last-Modified" : "Wed, 23 Feb 2022 19:28:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "06a1cefe-201e-00a8-61eb-2880c1000000", + "x-ms-client-request-id" : "ba4cdfec-de2e-49e9-bb3e-bc03360f2d90", + "Date" : "Wed, 23 Feb 2022 19:28:15 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/adfc0df62adfc0df68f260416cf36057af37a4feb83f?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "b8aad154-7d6e-4585-86f6-962901045884" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "06a1cf05-201e-00a8-66eb-2880c1000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:06a1cf05-201e-00a8-66eb-2880c1000000\nTime:2022-02-23T19:28:16.6498997Z", + "x-ms-client-request-id" : "b8aad154-7d6e-4585-86f6-962901045884", + "Date" : "Wed, 23 Feb 2022 19:28:15 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/adfc0df62adfc0df68f260416cf36057af37a4feb83f?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "17f3e6ef-1113-4cd1-9fc1-754dcf7f748e" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F702A43A816F", + "Last-Modified" : "Wed, 23 Feb 2022 19:28:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "06a1cf0b-201e-00a8-6beb-2880c1000000", + "x-ms-client-request-id" : "17f3e6ef-1113-4cd1-9fc1-754dcf7f748e", + "Date" : "Wed, 23 Feb 2022 19:28:15 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/adfc0df61adfc0df68f22476279ed9ec4777b45a98a4/adfc0df63adfc0df68f26267950e7e278f8534f9ebf7", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "a2b2dcb8-40f8-4012-b2ad-3330aed384f8", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Wed, 23 Feb 2022 19:28:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Wed, 23 Feb 2022 19:28:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "eTag" : "0x8D9F702A4531F18", + "x-ms-request-id" : "06a1cf1a-201e-00a8-77eb-2880c1000000", + "x-ms-client-request-id" : "a2b2dcb8-40f8-4012-b2ad-3330aed384f8" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/adfc0df61adfc0df68f22476279ed9ec4777b45a98a4/adfc0df64adfc0df68f2209546607b962d725432d859", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "bd970d32-6aba-4c12-83ec-62587a644f69" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "06a1cf1b-201e-00a8-78eb-2880c1000000", + "x-ms-client-request-id" : "bd970d32-6aba-4c12-83ec-62587a644f69", + "Date" : "Wed, 23 Feb 2022 19:28:15 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/adfc0df61adfc0df68f22476279ed9ec4777b45a98a4/adfc0df64adfc0df68f2209546607b962d725432d859", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "5605a5c7-c0a1-4e0e-8e82-84768f331028" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "06a1cf21-201e-00a8-7deb-2880c1000000", + "x-ms-client-request-id" : "5605a5c7-c0a1-4e0e-8e82-84768f331028", + "Date" : "Wed, 23 Feb 2022 19:28:15 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/adfc0df61adfc0df68f22476279ed9ec4777b45a98a4?restype=container&comp=list&prefix=adfc0df64adfc0df68f2209546607b962d725432d859/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "4204497b-996d-4df6-952b-bb50db018336" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "06a1cf28-201e-00a8-04eb-2880c1000000", + "Body" : "adfc0df64adfc0df68f2209546607b962d725432d859/2/", + "x-ms-client-request-id" : "4204497b-996d-4df6-952b-bb50db018336", + "Date" : "Wed, 23 Feb 2022 19:28:16 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/adfc0df61adfc0df68f22476279ed9ec4777b45a98a4?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "39b3ae35-3a1e-4541-a34e-373ce8e3eaca" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "06a1cf2b-201e-00a8-07eb-2880c1000000", + "x-ms-client-request-id" : "39b3ae35-3a1e-4541-a34e-373ce8e3eaca", + "Date" : "Wed, 23 Feb 2022 19:28:16 GMT" + }, + "Exception" : null + } ], + "variables" : [ "adfc0df60adfc0df68f267159453957394cae46b4936", "adfc0df61adfc0df68f22476279ed9ec4777b45a98a4", "adfc0df62adfc0df68f260416cf36057af37a4feb83f", "adfc0df63adfc0df68f26267950e7e278f8534f9ebf7", "adfc0df64adfc0df68f2209546607b962d725432d859" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesCreateDirs.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesCreateDirs.json index bd4675c763825..d9a2eebd535b0 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesCreateDirs.json +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesCreateDirs.json @@ -1,437 +1,517 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "01929114-6fc8-493a-a39a-152681aae8c0" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "9c43646b-69d9-43dc-bdad-122e5308fa87" }, "Response" : { "content-length" : "225", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "ContainerNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "4d320a3d-b01e-0108-237d-1109f2000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:4d320a3d-b01e-0108-237d-1109f2000000\nTime:2022-01-24T23:50:30.8083469Z", - "x-ms-client-request-id" : "01929114-6fc8-493a-a39a-152681aae8c0", - "Date" : "Mon, 24 Jan 2022 23:50:30 GMT", + "x-ms-request-id" : "8d4c15ee-a01e-009b-6ee9-28d9ec000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:8d4c15ee-a01e-009b-6ee9-28d9ec000000\nTime:2022-02-23T19:12:10.2496023Z", + "x-ms-client-request-id" : "9c43646b-69d9-43dc-bdad-122e5308fa87", + "Date" : "Wed, 23 Feb 2022 19:12:10 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "f92118e8-d679-4ee3-9bc7-c60e310d905b" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "be517457-0643-4f3a-9732-e886a0989ad3" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8D9DF944E2FF30F", - "Last-Modified" : "Mon, 24 Jan 2022 23:50:30 GMT", + "eTag" : "0x8D9F700644FE7DF", + "Last-Modified" : "Wed, 23 Feb 2022 19:12:10 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "7195df44-401e-0134-547d-11bd29000000", - "x-ms-client-request-id" : "f92118e8-d679-4ee3-9bc7-c60e310d905b", - "Date" : "Mon, 24 Jan 2022 23:50:30 GMT" + "x-ms-request-id" : "8d4c163f-a01e-009b-3de9-28d9ec000000", + "x-ms-client-request-id" : "be517457-0643-4f3a-9732-e886a0989ad3", + "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed622a14eed6245377698baa4f9380b2249d098a?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed622a14eed62d26433889469912600154f3eae6?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "35cde977-f780-40e8-a14d-960de30c8b02" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "c9faa80d-a04d-4bb0-82bb-532ae3d2bf9c" }, "Response" : { "content-length" : "225", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "ContainerNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "7195df57-401e-0134-667d-11bd29000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:7195df57-401e-0134-667d-11bd29000000\nTime:2022-01-24T23:50:31.0544381Z", - "x-ms-client-request-id" : "35cde977-f780-40e8-a14d-960de30c8b02", - "Date" : "Mon, 24 Jan 2022 23:50:30 GMT", + "x-ms-request-id" : "8d4c169e-a01e-009b-1ae9-28d9ec000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:8d4c169e-a01e-009b-1ae9-28d9ec000000\nTime:2022-02-23T19:12:10.6843596Z", + "x-ms-client-request-id" : "c9faa80d-a04d-4bb0-82bb-532ae3d2bf9c", + "Date" : "Wed, 23 Feb 2022 19:12:10 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed622a14eed6245377698baa4f9380b2249d098a?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed622a14eed62d26433889469912600154f3eae6?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "d47f10b8-6da8-466f-ada2-c2fae4bdc9ae" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "25020a1a-1cc0-49fd-9f5c-26215d3117b9" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8D9DF944E435114", - "Last-Modified" : "Mon, 24 Jan 2022 23:50:31 GMT", + "eTag" : "0x8D9F7006477B579", + "Last-Modified" : "Wed, 23 Feb 2022 19:12:10 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "7195df63-401e-0134-707d-11bd29000000", - "x-ms-client-request-id" : "d47f10b8-6da8-466f-ada2-c2fae4bdc9ae", - "Date" : "Mon, 24 Jan 2022 23:50:30 GMT" + "x-ms-request-id" : "8d4c16b5-a01e-009b-2fe9-28d9ec000000", + "x-ms-client-request-id" : "25020a1a-1cc0-49fd-9f5c-26215d3117b9", + "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7/mydir1%2Fmydir2", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "4dc12a15-24a2-4652-94ce-e0f9dbc1daa8" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "e987f205-78b2-4e93-988e-896809bc1191" }, "Response" : { - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "BlobNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "022f3cab-d01e-00db-537d-11f002000000", - "x-ms-client-request-id" : "4dc12a15-24a2-4652-94ce-e0f9dbc1daa8", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT" + "x-ms-request-id" : "8d4c16cd-a01e-009b-46e9-28d9ec000000", + "x-ms-client-request-id" : "e987f205-78b2-4e93-988e-896809bc1191", + "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7?restype=container&comp=list&prefix=mydir1/mydir2/&delimiter=/&maxresults=2&include=metadata", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container&comp=list&prefix=mydir1/mydir2/&delimiter=/&maxresults=2&include=metadata", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "7fa3a37d-df5b-4188-8d33-4c455a1a61b0" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "ffc76b9b-de39-4816-af8e-9af18eea1e8a" }, "Response" : { "Transfer-Encoding" : "chunked", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "x-ms-request-id" : "022f3cb3-d01e-00db-597d-11f002000000", - "Body" : "mydir1/mydir2/2/", - "x-ms-client-request-id" : "7fa3a37d-df5b-4188-8d33-4c455a1a61b0", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT", + "x-ms-request-id" : "8d4c16db-a01e-009b-54e9-28d9ec000000", + "Body" : "mydir1/mydir2/2/", + "x-ms-client-request-id" : "ffc76b9b-de39-4816-af8e-9af18eea1e8a", + "Date" : "Wed, 23 Feb 2022 19:12:10 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7/mydir1%2Fmydir2", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "1ff57f98-44cc-46c2-961c-6e4a798c813f" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "862f435b-5c60-4ced-8f4d-9ce599e70368" }, "Response" : { - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "BlobNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "7195df97-401e-0134-1f7d-11bd29000000", - "x-ms-client-request-id" : "1ff57f98-44cc-46c2-961c-6e4a798c813f", - "Date" : "Mon, 24 Jan 2022 23:50:30 GMT" + "x-ms-request-id" : "8d4c16e9-a01e-009b-62e9-28d9ec000000", + "x-ms-client-request-id" : "862f435b-5c60-4ced-8f4d-9ce599e70368", + "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7/mydir1", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "47efdec6-3428-41d7-b443-3a5417f5ae78" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "bc9fc0a4-3a5a-4ed1-a0fe-0eaf1e3b5af2" }, "Response" : { - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "BlobNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "2771bc0f-d01e-013a-187d-115122000000", - "x-ms-client-request-id" : "47efdec6-3428-41d7-b443-3a5417f5ae78", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT" + "x-ms-request-id" : "8d4c16f2-a01e-009b-6be9-28d9ec000000", + "x-ms-client-request-id" : "bc9fc0a4-3a5a-4ed1-a0fe-0eaf1e3b5af2", + "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container&comp=list&prefix=mydir1/mydir2/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "b1bd4ecc-e68a-41de-a01f-c838a047baf6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "8d4c16fc-a01e-009b-75e9-28d9ec000000", + "Body" : "mydir1/mydir2/2/", + "x-ms-client-request-id" : "b1bd4ecc-e68a-41de-a01f-c838a047baf6", + "Date" : "Wed, 23 Feb 2022 19:12:10 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "168103f6-fb49-45c0-8e1d-0f219de88b54" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "8d4c170a-a01e-009b-01e9-28d9ec000000", + "x-ms-client-request-id" : "168103f6-fb49-45c0-8e1d-0f219de88b54", + "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "c90faf36-1d80-4141-aaac-c1d249b4f86a" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "8d4c1712-a01e-009b-09e9-28d9ec000000", + "x-ms-client-request-id" : "c90faf36-1d80-4141-aaac-c1d249b4f86a", + "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container&comp=list&prefix=mydir1/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "d4427a67-95e8-41a7-be8c-b09b455b5705" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "8d4c1715-a01e-009b-0ce9-28d9ec000000", + "Body" : "mydir1/2/", + "x-ms-client-request-id" : "d4427a67-95e8-41a7-be8c-b09b455b5705", + "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", + "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7/mydir1?comp=blocklist", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1?comp=blocklist", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "fa88fde6-6e78-47ec-ba1f-7d1ca0632144", + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "651379e0-a938-4656-a112-7feda6efe536", "Content-Type" : "application/xml" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-content-crc64" : "p1vsGtjjPsk=", - "eTag" : "0x8D9DF944E6BCC96", - "Last-Modified" : "Mon, 24 Jan 2022 23:50:31 GMT", + "eTag" : "0x8D9F70064BCB570", + "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "2771bc17-d01e-013a-1e7d-115122000000", + "x-ms-request-id" : "8d4c171e-a01e-009b-15e9-28d9ec000000", "x-ms-request-server-encrypted" : "true", - "x-ms-client-request-id" : "fa88fde6-6e78-47ec-ba1f-7d1ca0632144", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT" + "x-ms-client-request-id" : "651379e0-a938-4656-a112-7feda6efe536", + "Date" : "Wed, 23 Feb 2022 19:12:11 GMT" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7/mydir1", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "326990d2-5118-4e28-ba99-7281076b8d42" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "79a1514b-f899-4c89-9931-0c2b9d817f02" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "x-ms-lease-status" : "unlocked", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-lease-state" : "available", - "Last-Modified" : "Mon, 24 Jan 2022 23:50:31 GMT", + "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT", + "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", "x-ms-blob-type" : "BlockBlob", "Accept-Ranges" : "bytes", "x-ms-server-encrypted" : "true", "x-ms-meta-hdi_isfolder" : "true", "x-ms-access-tier-inferred" : "true", "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Mon, 24 Jan 2022 23:50:31 GMT", - "eTag" : "0x8D9DF944E6BCC96", - "x-ms-request-id" : "2771bc21-d01e-013a-247d-115122000000", - "x-ms-client-request-id" : "326990d2-5118-4e28-ba99-7281076b8d42", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:12:11 GMT", + "eTag" : "0x8D9F70064BCB570", + "x-ms-request-id" : "8d4c172e-a01e-009b-23e9-28d9ec000000", + "x-ms-client-request-id" : "79a1514b-f899-4c89-9931-0c2b9d817f02", "Content-Type" : "application/octet-stream" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7?restype=container&comp=list&prefix=mydir1/&delimiter=/&maxresults=2&include=metadata", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container&comp=list&prefix=mydir1/&delimiter=/&maxresults=2&include=metadata", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "70c0ec88-c2d6-4721-808e-02ef4c42e1bd" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "16e2b4d9-7f5c-47cd-b3f3-dcaa5eb52792" }, "Response" : { "Transfer-Encoding" : "chunked", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "x-ms-request-id" : "022f3cbe-d01e-00db-637d-11f002000000", - "Body" : "mydir1/2/", - "x-ms-client-request-id" : "70c0ec88-c2d6-4721-808e-02ef4c42e1bd", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT", + "x-ms-request-id" : "8d4c173b-a01e-009b-30e9-28d9ec000000", + "Body" : "mydir1/2/", + "x-ms-client-request-id" : "16e2b4d9-7f5c-47cd-b3f3-dcaa5eb52792", + "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7/mydir1%2Fmydir2?comp=blocklist", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2?comp=blocklist", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "f20eb9bd-45ed-40b1-8d25-cab940d0dab3", + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "52f50372-6b9c-4e83-b7ae-12f3b04a0b5a", "Content-Type" : "application/xml" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-content-crc64" : "p1vsGtjjPsk=", - "eTag" : "0x8D9DF944E7ABEA2", - "Last-Modified" : "Mon, 24 Jan 2022 23:50:31 GMT", + "eTag" : "0x8D9F70064CF5065", + "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "022f3cc0-d01e-00db-657d-11f002000000", + "x-ms-request-id" : "8d4c1743-a01e-009b-38e9-28d9ec000000", "x-ms-request-server-encrypted" : "true", - "x-ms-client-request-id" : "f20eb9bd-45ed-40b1-8d25-cab940d0dab3", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT" + "x-ms-client-request-id" : "52f50372-6b9c-4e83-b7ae-12f3b04a0b5a", + "Date" : "Wed, 23 Feb 2022 19:12:11 GMT" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7/mydir1%2Fmydir2", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "23982412-9881-4824-ac68-d777df1ca9ee" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "51aa409c-9cd1-4206-b19b-0114eb7660e6" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "x-ms-lease-status" : "unlocked", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-lease-state" : "available", - "Last-Modified" : "Mon, 24 Jan 2022 23:50:31 GMT", + "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT", + "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", "x-ms-blob-type" : "BlockBlob", "Accept-Ranges" : "bytes", "x-ms-server-encrypted" : "true", "x-ms-meta-hdi_isfolder" : "true", "x-ms-access-tier-inferred" : "true", "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Mon, 24 Jan 2022 23:50:31 GMT", - "eTag" : "0x8D9DF944E7ABEA2", - "x-ms-request-id" : "022f3cc1-d01e-00db-667d-11f002000000", - "x-ms-client-request-id" : "23982412-9881-4824-ac68-d777df1ca9ee", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:12:11 GMT", + "eTag" : "0x8D9F70064CF5065", + "x-ms-request-id" : "8d4c174e-a01e-009b-43e9-28d9ec000000", + "x-ms-client-request-id" : "51aa409c-9cd1-4206-b19b-0114eb7660e6", "Content-Type" : "application/octet-stream" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7?restype=container&comp=list&prefix=mydir1/mydir2/&delimiter=/&maxresults=2&include=metadata", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container&comp=list&prefix=mydir1/mydir2/&delimiter=/&maxresults=2&include=metadata", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "38937217-eba8-48c9-83a5-fda1ddf05e99" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "fbee0da6-03bd-401a-b06a-1e997d791945" }, "Response" : { "Transfer-Encoding" : "chunked", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "x-ms-request-id" : "022f3cc2-d01e-00db-677d-11f002000000", - "Body" : "mydir1/mydir2/2/", - "x-ms-client-request-id" : "38937217-eba8-48c9-83a5-fda1ddf05e99", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT", + "x-ms-request-id" : "8d4c1755-a01e-009b-4ae9-28d9ec000000", + "Body" : "mydir1/mydir2/2/", + "x-ms-client-request-id" : "fbee0da6-03bd-401a-b06a-1e997d791945", + "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7/mydir1%2Fmydir2%2Fmydir3?comp=blocklist", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2%2Fmydir3?comp=blocklist", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "a968b979-9ba2-4544-8aa1-6936d4f9a409", + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "6e554da4-6779-493a-934a-dbba29fc9bdd", "Content-Type" : "application/xml" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-content-crc64" : "p1vsGtjjPsk=", - "eTag" : "0x8D9DF944E8989A5", - "Last-Modified" : "Mon, 24 Jan 2022 23:50:31 GMT", + "eTag" : "0x8D9F70064E1EB54", + "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "2771bc46-d01e-013a-467d-115122000000", + "x-ms-request-id" : "8d4c1773-a01e-009b-5ae9-28d9ec000000", "x-ms-request-server-encrypted" : "true", - "x-ms-client-request-id" : "a968b979-9ba2-4544-8aa1-6936d4f9a409", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT" + "x-ms-client-request-id" : "6e554da4-6779-493a-934a-dbba29fc9bdd", + "Date" : "Wed, 23 Feb 2022 19:12:11 GMT" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7/mydir1", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "3214da43-276e-4901-9e7c-738e09d37fe2" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "81da9a00-f8b2-4fa1-a668-4657c5ecc856" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "x-ms-lease-status" : "unlocked", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-lease-state" : "available", - "Last-Modified" : "Mon, 24 Jan 2022 23:50:31 GMT", + "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT", + "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", "x-ms-blob-type" : "BlockBlob", "Accept-Ranges" : "bytes", "x-ms-server-encrypted" : "true", "x-ms-meta-hdi_isfolder" : "true", "x-ms-access-tier-inferred" : "true", "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Mon, 24 Jan 2022 23:50:31 GMT", - "eTag" : "0x8D9DF944E6BCC96", - "x-ms-request-id" : "4d320a99-b01e-0108-6f7d-1109f2000000", - "x-ms-client-request-id" : "3214da43-276e-4901-9e7c-738e09d37fe2", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:12:11 GMT", + "eTag" : "0x8D9F70064BCB570", + "x-ms-request-id" : "8d4c1779-a01e-009b-60e9-28d9ec000000", + "x-ms-client-request-id" : "81da9a00-f8b2-4fa1-a668-4657c5ecc856", "Content-Type" : "application/octet-stream" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7/mydir1%2Fmydir2", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "79953080-ba17-44db-8107-296677e4605b" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "850c351f-d403-4cf3-a6d9-df841510a163" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "x-ms-lease-status" : "unlocked", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-lease-state" : "available", - "Last-Modified" : "Mon, 24 Jan 2022 23:50:31 GMT", + "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT", + "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", "x-ms-blob-type" : "BlockBlob", "Accept-Ranges" : "bytes", "x-ms-server-encrypted" : "true", "x-ms-meta-hdi_isfolder" : "true", "x-ms-access-tier-inferred" : "true", "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Mon, 24 Jan 2022 23:50:31 GMT", - "eTag" : "0x8D9DF944E7ABEA2", - "x-ms-request-id" : "2771bc52-d01e-013a-527d-115122000000", - "x-ms-client-request-id" : "79953080-ba17-44db-8107-296677e4605b", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:12:11 GMT", + "eTag" : "0x8D9F70064CF5065", + "x-ms-request-id" : "8d4c1780-a01e-009b-67e9-28d9ec000000", + "x-ms-client-request-id" : "850c351f-d403-4cf3-a6d9-df841510a163", "Content-Type" : "application/octet-stream" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed6245396417faa09c4e7f594a269e7/mydir1%2Fmydir2%2Fmydir3", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2%2Fmydir3", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "15e1550a-36c4-4c19-85bc-b6419edf3f04" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "e1054cf4-4d12-45fc-a5a8-47f1b032cc7f" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "x-ms-lease-status" : "unlocked", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-lease-state" : "available", - "Last-Modified" : "Mon, 24 Jan 2022 23:50:31 GMT", + "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 24 Jan 2022 23:50:31 GMT", + "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", "x-ms-blob-type" : "BlockBlob", "Accept-Ranges" : "bytes", "x-ms-server-encrypted" : "true", "x-ms-meta-hdi_isfolder" : "true", "x-ms-access-tier-inferred" : "true", "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Mon, 24 Jan 2022 23:50:31 GMT", - "eTag" : "0x8D9DF944E8989A5", - "x-ms-request-id" : "168facff-f01e-00e5-027d-114623000000", - "x-ms-client-request-id" : "15e1550a-36c4-4c19-85bc-b6419edf3f04", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:12:11 GMT", + "eTag" : "0x8D9F70064E1EB54", + "x-ms-request-id" : "8d4c1783-a01e-009b-6ae9-28d9ec000000", + "x-ms-client-request-id" : "e1054cf4-4d12-45fc-a5a8-47f1b032cc7f", "Content-Type" : "application/octet-stream" }, "Exception" : null } ], - "variables" : [ "a14eed620a14eed62453522148d6d44264f7b4070871", "a14eed621a14eed6245396417faa09c4e7f594a269e7", "a14eed622a14eed6245377698baa4f9380b2249d098a" ] + "variables" : [ "a14eed620a14eed62d26290758be6923c1d3f4727862", "a14eed621a14eed62d2635782421892ba31134b458a5", "a14eed622a14eed62d26433889469912600154f3eae6" ] } \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[0].json new file mode 100644 index 0000000000000..5d46a69b85ba3 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[0].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/59d0f718159d0f7188036335543e1bb59db674f89ae7?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "7cb00574-8728-40a8-9940-7eafa67634d1" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "59d24619-f01e-000b-40e8-284ca0000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:59d24619-f01e-000b-40e8-284ca0000000\nTime:2022-02-23T19:05:05.0767232Z", + "x-ms-client-request-id" : "7cb00574-8728-40a8-9940-7eafa67634d1", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/59d0f718159d0f7188036335543e1bb59db674f89ae7?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "04dd4039-4442-4ec1-b85c-6e5a22fc57fa" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F6FF66DA8AAD", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2aaefd86-e01e-00d8-47e8-28f305000000", + "x-ms-client-request-id" : "04dd4039-4442-4ec1-b85c-6e5a22fc57fa", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/59d0f718259d0f71880381791ea2dffd4179643ef9d6?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "22023baa-3cdf-4bc5-8b41-9e48c1fbe83e" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "59d24666-f01e-000b-09e8-284ca0000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:59d24666-f01e-000b-09e8-284ca0000000\nTime:2022-02-23T19:05:05.3045952Z", + "x-ms-client-request-id" : "22023baa-3cdf-4bc5-8b41-9e48c1fbe83e", + "Date" : "Wed, 23 Feb 2022 19:05:05 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/59d0f718259d0f71880381791ea2dffd4179643ef9d6?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "9de96378-3874-46ef-a9fe-da089349664d" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F6FF66ED95E9", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "59d2467f-f01e-000b-21e8-284ca0000000", + "x-ms-client-request-id" : "9de96378-3874-46ef-a9fe-da089349664d", + "Date" : "Wed, 23 Feb 2022 19:05:05 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/59d0f718159d0f7188036335543e1bb59db674f89ae7/59d0f718259d0f71880381791ea2dffd4179643ef9d6%2F59d0f718359d0f71880353824266be301811147b3925", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "d869a611-411b-4833-9cd5-1546af6ce99f" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "d7151322-801e-0040-20e8-287d3a000000", + "x-ms-client-request-id" : "d869a611-411b-4833-9cd5-1546af6ce99f", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/59d0f718159d0f7188036335543e1bb59db674f89ae7/59d0f718259d0f71880381791ea2dffd4179643ef9d6%2F59d0f718359d0f71880353824266be301811147b3925", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "9e34f308-16aa-4db0-a5da-bf751e973a2b" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "fae7b080-301e-009e-34e8-282d93000000", + "x-ms-client-request-id" : "9e34f308-16aa-4db0-a5da-bf751e973a2b", + "Date" : "Wed, 23 Feb 2022 19:05:05 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/59d0f718159d0f7188036335543e1bb59db674f89ae7?restype=container&comp=list&prefix=59d0f718259d0f71880381791ea2dffd4179643ef9d6/59d0f718359d0f71880353824266be301811147b3925/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "97718cb4-98ad-4381-a1c3-10ac10abbbf5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "fae7b093-301e-009e-46e8-282d93000000", + "Body" : "59d0f718259d0f71880381791ea2dffd4179643ef9d6/59d0f718359d0f71880353824266be301811147b3925/2/", + "x-ms-client-request-id" : "97718cb4-98ad-4381-a1c3-10ac10abbbf5", + "Date" : "Wed, 23 Feb 2022 19:05:05 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "59d0f718059d0f718803242196ffa009babef4438a4c", "59d0f718159d0f7188036335543e1bb59db674f89ae7", "59d0f718259d0f71880381791ea2dffd4179643ef9d6", "59d0f718359d0f71880353824266be301811147b3925", "59d0f718459d0f71880304934a468fdfef6ab4ee1a88" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[1].json new file mode 100644 index 0000000000000..7897018748d2a --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[1].json @@ -0,0 +1,146 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/40cbc659140cbc6594bf6510801e3e90c98c24888820?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "23acd08f-22a7-41e0-a0b8-a15e076bfc4c" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "2aaefd65-e01e-00d8-29e8-28f305000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:2aaefd65-e01e-00d8-29e8-28f305000000\nTime:2022-02-23T19:05:05.0838525Z", + "x-ms-client-request-id" : "23acd08f-22a7-41e0-a0b8-a15e076bfc4c", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/40cbc659140cbc6594bf6510801e3e90c98c24888820?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "32d2e835-abd8-4567-9d1b-ec3ef481b44a" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F6FF66D94D80", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "59d24647-f01e-000b-6be8-284ca0000000", + "x-ms-client-request-id" : "32d2e835-abd8-4567-9d1b-ec3ef481b44a", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/40cbc659240cbc6594bf0072402e3173bcdf24c94a9a?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "8898e302-3567-4384-bcb3-c808ac9663cb" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "fae7b039-301e-009e-71e8-282d93000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:fae7b039-301e-009e-71e8-282d93000000\nTime:2022-02-23T19:05:05.3045429Z", + "x-ms-client-request-id" : "8898e302-3567-4384-bcb3-c808ac9663cb", + "Date" : "Wed, 23 Feb 2022 19:05:05 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/40cbc659240cbc6594bf0072402e3173bcdf24c94a9a?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "e164f2ce-779b-4a02-a19d-cc4e75831523" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F6FF66ED6CD9", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fae7b04e-301e-009e-05e8-282d93000000", + "x-ms-client-request-id" : "e164f2ce-779b-4a02-a19d-cc4e75831523", + "Date" : "Wed, 23 Feb 2022 19:05:05 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/40cbc659140cbc6594bf6510801e3e90c98c24888820/40cbc659240cbc6594bf0072402e3173bcdf24c94a9a%2F40cbc659340cbc6594bf69003374a03cd8f1c40cf835", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "a6122852-6495-45cc-a21b-1632fa3cd913", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "eTag" : "0x8D9F6FF670DB8F7", + "x-ms-request-id" : "2aaefdb7-e01e-00d8-73e8-28f305000000", + "x-ms-client-request-id" : "a6122852-6495-45cc-a21b-1632fa3cd913" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/40cbc659140cbc6594bf6510801e3e90c98c24888820/40cbc659240cbc6594bf0072402e3173bcdf24c94a9a%2F40cbc659340cbc6594bf69003374a03cd8f1c40cf835", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "4c3275d9-0205-4400-bd46-dcaddc1ee996" + }, + "Response" : { + "content-length" : "7", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:05:05 GMT", + "eTag" : "0x8D9F6FF670DB8F7", + "x-ms-request-id" : "2aaefdc4-e01e-00d8-80e8-28f305000000", + "x-ms-client-request-id" : "4c3275d9-0205-4400-bd46-dcaddc1ee996", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + } ], + "variables" : [ "40cbc659040cbc6594bf28443a6f95309019842c19b3", "40cbc659140cbc6594bf6510801e3e90c98c24888820", "40cbc659240cbc6594bf0072402e3173bcdf24c94a9a", "40cbc659340cbc6594bf69003374a03cd8f1c40cf835", "40cbc659440cbc6594bf98470adeae08f99a74ef3b08" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[2].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[2].json new file mode 100644 index 0000000000000..6578f2ce6f028 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[2].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/6be6959a16be6959aefd88529a4ad750ecfd145d697e?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "e8241918-bab1-49c2-a92f-4aed95b387bd" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "fae7aff7-301e-009e-34e8-282d93000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:fae7aff7-301e-009e-34e8-282d93000000\nTime:2022-02-23T19:05:05.0836642Z", + "x-ms-client-request-id" : "e8241918-bab1-49c2-a92f-4aed95b387bd", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/6be6959a16be6959aefd88529a4ad750ecfd145d697e?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "b3d83913-aa36-4e12-9136-3502ae075623" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F6FF66DA83BF", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fae7b01d-301e-009e-58e8-282d93000000", + "x-ms-client-request-id" : "b3d83913-aa36-4e12-9136-3502ae075623", + "Date" : "Wed, 23 Feb 2022 19:05:05 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/6be6959a26be6959aefd95749017f236c7e9a451e81c?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "9c3ba2d9-77d7-4d49-843e-bb6cf9518fba" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "d7151305-801e-0040-06e8-287d3a000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:d7151305-801e-0040-06e8-287d3a000000\nTime:2022-02-23T19:05:05.3096573Z", + "x-ms-client-request-id" : "9c3ba2d9-77d7-4d49-843e-bb6cf9518fba", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/6be6959a26be6959aefd95749017f236c7e9a451e81c?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "72202842-720d-40ab-9326-c2563278af77" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F6FF66ED7168", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d7151308-801e-0040-08e8-287d3a000000", + "x-ms-client-request-id" : "72202842-720d-40ab-9326-c2563278af77", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/6be6959a16be6959aefd88529a4ad750ecfd145d697e/6be6959a26be6959aefd95749017f236c7e9a451e81c%2F6be6959a36be6959aefd269664450110bb9434070b76%2F6be6959a46be6959aefd400144c63a0247f19419694c", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "162a7b2b-8640-4e39-a8e4-942a433d623e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Wed, 23 Feb 2022 19:05:05 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "eTag" : "0x8D9F6FF670DB8F7", + "x-ms-request-id" : "59d246d6-f01e-000b-75e8-284ca0000000", + "x-ms-client-request-id" : "162a7b2b-8640-4e39-a8e4-942a433d623e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/6be6959a16be6959aefd88529a4ad750ecfd145d697e/6be6959a26be6959aefd95749017f236c7e9a451e81c%2F6be6959a36be6959aefd269664450110bb9434070b76", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "bda8d6b5-b3ac-4b88-96bc-2c53ec680679" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "d715133a-801e-0040-36e8-287d3a000000", + "x-ms-client-request-id" : "bda8d6b5-b3ac-4b88-96bc-2c53ec680679", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/6be6959a16be6959aefd88529a4ad750ecfd145d697e/6be6959a26be6959aefd95749017f236c7e9a451e81c%2F6be6959a36be6959aefd269664450110bb9434070b76", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "730ffe7c-cb2b-4304-ba65-8094d4c82107" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "59d2470b-f01e-000b-29e8-284ca0000000", + "x-ms-client-request-id" : "730ffe7c-cb2b-4304-ba65-8094d4c82107", + "Date" : "Wed, 23 Feb 2022 19:05:05 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/6be6959a16be6959aefd88529a4ad750ecfd145d697e?restype=container&comp=list&prefix=6be6959a26be6959aefd95749017f236c7e9a451e81c/6be6959a36be6959aefd269664450110bb9434070b76/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "7f367ec4-1b09-4988-b42a-e4ab20c78684" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "59d2471a-f01e-000b-37e8-284ca0000000", + "Body" : "6be6959a26be6959aefd95749017f236c7e9a451e81c/6be6959a36be6959aefd269664450110bb9434070b76/2/6be6959a26be6959aefd95749017f236c7e9a451e81c/6be6959a36be6959aefd269664450110bb9434070b76/6be6959a46be6959aefd400144c63a0247f19419694cWed, 23 Feb 2022 19:05:05 GMTWed, 23 Feb 2022 19:05:05 GMT0x8D9F6FF670DB8F77application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue", + "x-ms-client-request-id" : "7f367ec4-1b09-4988-b42a-e4ab20c78684", + "Date" : "Wed, 23 Feb 2022 19:05:05 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "6be6959a06be6959aefd4492392d9400c00834ad8ae6", "6be6959a16be6959aefd88529a4ad750ecfd145d697e", "6be6959a26be6959aefd95749017f236c7e9a451e81c", "6be6959a36be6959aefd269664450110bb9434070b76", "6be6959a46be6959aefd400144c63a0247f19419694c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[3].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[3].json new file mode 100644 index 0000000000000..4a2d491c3b693 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesExists[3].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/72fda4db172fda4db73554410b1157125eb5f443e958?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "4f67c199-19ee-4724-bcc6-cda9ee6becfe" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "d71512dd-801e-0040-63e8-287d3a000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:d71512dd-801e-0040-63e8-287d3a000000\nTime:2022-02-23T19:05:05.0887809Z", + "x-ms-client-request-id" : "4f67c199-19ee-4724-bcc6-cda9ee6becfe", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/72fda4db172fda4db73554410b1157125eb5f443e958?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "ae7dd78d-7f08-4095-a9ec-70e59806ee54" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F6FF66DA885F", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d71512fb-801e-0040-7ee8-287d3a000000", + "x-ms-client-request-id" : "ae7dd78d-7f08-4095-a9ec-70e59806ee54", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/72fda4db272fda4db73565727a7695e82ff084532ab7?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "fd7dbae5-2275-4419-ad7e-3a586f6edbb2" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "2aaefd94-e01e-00d8-54e8-28f305000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:2aaefd94-e01e-00d8-54e8-28f305000000\nTime:2022-02-23T19:05:05.3107114Z", + "x-ms-client-request-id" : "fd7dbae5-2275-4419-ad7e-3a586f6edbb2", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/72fda4db272fda4db73565727a7695e82ff084532ab7?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "2a846d7f-4931-4c59-a8f9-29456fa7d540" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F6FF66ED9A76", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2aaefda3-e01e-00d8-61e8-28f305000000", + "x-ms-client-request-id" : "2a846d7f-4931-4c59-a8f9-29456fa7d540", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/72fda4db172fda4db73554410b1157125eb5f443e958/72fda4db272fda4db73565727a7695e82ff084532ab7%2F72fda4db372fda4db73539622dfb1e0a9e5e342cfa08?comp=blocklist", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "7234549d-96e7-4712-8987-7b3bb4522306", + "Content-Type" : "application/xml" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "eTag" : "0x8D9F6FF670E0709", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d7151332-801e-0040-2fe8-287d3a000000", + "x-ms-request-server-encrypted" : "true", + "x-ms-client-request-id" : "7234549d-96e7-4712-8987-7b3bb4522306", + "Date" : "Wed, 23 Feb 2022 19:05:04 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/72fda4db172fda4db73554410b1157125eb5f443e958/72fda4db272fda4db73565727a7695e82ff084532ab7%2F72fda4db372fda4db73539622dfb1e0a9e5e342cfa08%2F72fda4db472fda4db735083471e1c3ddc851443bdb3e", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "1174b382-defd-4965-b18f-30d9d90a6a7b", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Wed, 23 Feb 2022 19:05:05 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "eTag" : "0x8D9F6FF671558FD", + "x-ms-request-id" : "59d246ed-f01e-000b-0ce8-284ca0000000", + "x-ms-client-request-id" : "1174b382-defd-4965-b18f-30d9d90a6a7b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/72fda4db172fda4db73554410b1157125eb5f443e958/72fda4db272fda4db73565727a7695e82ff084532ab7%2F72fda4db372fda4db73539622dfb1e0a9e5e342cfa08", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "c9180cfa-697d-4fc9-9003-6751b1bb09fa" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:05:05 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:05:05 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:05:05 GMT", + "eTag" : "0x8D9F6FF670E0709", + "x-ms-request-id" : "fae7b0bd-301e-009e-6ee8-282d93000000", + "x-ms-client-request-id" : "c9180cfa-697d-4fc9-9003-6751b1bb09fa", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + } ], + "variables" : [ "72fda4db072fda4db735549885a1d2a9c1de64299bbf", "72fda4db172fda4db73554410b1157125eb5f443e958", "72fda4db272fda4db73565727a7695e82ff084532ab7", "72fda4db372fda4db73539622dfb1e0a9e5e342cfa08", "72fda4db472fda4db735083471e1c3ddc851443bdb3e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesWalkFileTree.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesWalkFileTree.json new file mode 100644 index 0000000000000..a44903446faff --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesWalkFileTree.json @@ -0,0 +1,1401 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "18390799-6cea-42d0-80ec-2cfb28637c41" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "715c128e-f01e-012d-20e8-289141000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:715c128e-f01e-012d-20e8-289141000000\nTime:2022-02-23T19:04:23.8288340Z", + "x-ms-client-request-id" : "18390799-6cea-42d0-80ec-2cfb28637c41", + "Date" : "Wed, 23 Feb 2022 19:04:22 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "d3bf2093-7761-4994-8518-128e21e012b9" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F6FF4E3DBB50", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "715c12af-f01e-012d-3fe8-289141000000", + "x-ms-client-request-id" : "d3bf2093-7761-4994-8518-128e21e012b9", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582216163582a8034120cb51b2c21ac14079a0e?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "962df40f-6bc5-47d3-b05d-cc04da87529d" + }, + "Response" : { + "content-length" : "225", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "715c12ca-f01e-012d-58e8-289141000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:715c12ca-f01e-012d-58e8-289141000000\nTime:2022-02-23T19:04:24.0507090Z", + "x-ms-client-request-id" : "962df40f-6bc5-47d3-b05d-cc04da87529d", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582216163582a8034120cb51b2c21ac14079a0e?restype=container", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "5673bef3-d4ff-48a0-b3cd-7a820264acb4" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "eTag" : "0x8D9F6FF4E54745B", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "715c12d2-f01e-012d-5fe8-289141000000", + "x-ms-client-request-id" : "5673bef3-d4ff-48a0-b3cd-7a820264acb4", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2Ffile1", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "6dafee4b-24ca-4d36-824a-a7e20551675b", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "eTag" : "0x8D9F6FF4E7581F7", + "x-ms-request-id" : "715c1304-f01e-012d-10e8-289141000000", + "x-ms-client-request-id" : "6dafee4b-24ca-4d36-824a-a7e20551675b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2%2Ffile2", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "8342af03-a3e3-4de8-a835-8d5d2fa2172b", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "eTag" : "0x8D9F6FF4E7D21FF", + "x-ms-request-id" : "715c1309-f01e-012d-15e8-289141000000", + "x-ms-client-request-id" : "8342af03-a3e3-4de8-a835-8d5d2fa2172b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2%2FvDir1%2Ffile3", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "e54303eb-604c-4786-ae70-83f21223b500", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "eTag" : "0x8D9F6FF4E82786B", + "x-ms-request-id" : "715c1312-f01e-012d-1ee8-289141000000", + "x-ms-client-request-id" : "e54303eb-604c-4786-ae70-83f21223b500" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2%2Ffile4", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "9ca37bd6-aba6-4b00-ab3b-795b4ac90165", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "eTag" : "0x8D9F6FF4E87A7CF", + "x-ms-request-id" : "715c131d-f01e-012d-29e8-289141000000", + "x-ms-client-request-id" : "9ca37bd6-aba6-4b00-ab3b-795b4ac90165" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2%2FvDir3%2Ffile5", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "a2adedcf-a967-480f-b5fd-6ebcaee61246", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "eTag" : "0x8D9F6FF4E8E84A0", + "x-ms-request-id" : "715c1329-f01e-012d-34e8-289141000000", + "x-ms-client-request-id" : "a2adedcf-a967-480f-b5fd-6ebcaee61246" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a?comp=blocklist", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "563b0d7a-b18c-47bb-aa6b-ca8b0a40a085", + "Content-Type" : "application/xml" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "eTag" : "0x8D9F6FF4EA564BA", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "715c1337-f01e-012d-41e8-289141000000", + "x-ms-request-server-encrypted" : "true", + "x-ms-client-request-id" : "563b0d7a-b18c-47bb-aa6b-ca8b0a40a085", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir1?comp=blocklist", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "f01efae1-2c03-4a08-b181-ebfc7a96dcf1", + "Content-Type" : "application/xml" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "eTag" : "0x8D9F6FF4EAB3042", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "715c133a-f01e-012d-44e8-289141000000", + "x-ms-request-server-encrypted" : "true", + "x-ms-client-request-id" : "f01efae1-2c03-4a08-b181-ebfc7a96dcf1", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2?comp=blocklist", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "5214b0bd-e823-4f51-a65f-cf603d84e873", + "Content-Type" : "application/xml" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "eTag" : "0x8D9F6FF4EB0FBCC", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "715c133e-f01e-012d-48e8-289141000000", + "x-ms-request-server-encrypted" : "true", + "x-ms-client-request-id" : "5214b0bd-e823-4f51-a65f-cf603d84e873", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2%2FcDir3?comp=blocklist", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "86876116-b3d3-4716-bef1-eb3f2ff2602b", + "Content-Type" : "application/xml" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "eTag" : "0x8D9F6FF4EB71570", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "715c1347-f01e-012d-4fe8-289141000000", + "x-ms-request-server-encrypted" : "true", + "x-ms-client-request-id" : "86876116-b3d3-4716-bef1-eb3f2ff2602b", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2%2FcDir4?comp=blocklist", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "3149068e-9506-427f-8a1c-7302dc080342", + "Content-Type" : "application/xml" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "eTag" : "0x8D9F6FF4EBCB9F3", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "715c134b-f01e-012d-53e8-289141000000", + "x-ms-request-server-encrypted" : "true", + "x-ms-client-request-id" : "3149068e-9506-427f-8a1c-7302dc080342", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "91122d7e-9687-4970-88de-280adfc86b7e" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:23 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4EA564BA", + "x-ms-request-id" : "715c1357-f01e-012d-5fe8-289141000000", + "x-ms-client-request-id" : "91122d7e-9687-4970-88de-280adfc86b7e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "811528ae-ae22-4f71-9122-e682f7ede11c" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4EA564BA", + "x-ms-request-id" : "715c1360-f01e-012d-68e8-289141000000", + "x-ms-client-request-id" : "811528ae-ae22-4f71-9122-e682f7ede11c", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "78aeca90-c716-40e1-811c-5a6f8dddf9c0" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4EA564BA", + "x-ms-request-id" : "715c1364-f01e-012d-6ce8-289141000000", + "x-ms-client-request-id" : "78aeca90-c716-40e1-811c-5a6f8dddf9c0", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "e1588985-d5da-49da-8bdd-7d6e4f159ea2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c136c-f01e-012d-71e8-289141000000", + "Body" : "a/2/a/cDir1Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4EAB30420application/octet-streamBlockBlobHottrueunlockedavailabletruetruea/cDir2Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4EB0FBCC0application/octet-streamBlockBlobHottrueunlockedavailabletruetrue2!76!MDAwMDEzIWEvY0RpcjIvY0RpcjMhMDAwMDI4ITk5OTktMTItMzFUMjM6NTk6NTkuOTk5OTk5OVoh", + "x-ms-client-request-id" : "e1588985-d5da-49da-8bdd-7d6e4f159ea2", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/&delimiter=/&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "9595a69f-bb63-438d-a267-fc7d930d376b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c1378-f01e-012d-7de8-289141000000", + "Body" : "a//a/cDir1Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4EAB30420application/octet-streamBlockBlobHottrueunlockedavailabletruetruea/cDir2Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4EB0FBCC0application/octet-streamBlockBlobHottrueunlockedavailabletruetruea/cDir2/a/file1Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4E7581F77application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletruea/vDir2/", + "x-ms-client-request-id" : "9595a69f-bb63-438d-a267-fc7d930d376b", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir1", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "f6a1dd66-a3a9-4ed0-abc1-624068277e15" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4EAB3042", + "x-ms-request-id" : "715c137d-f01e-012d-02e8-289141000000", + "x-ms-client-request-id" : "f6a1dd66-a3a9-4ed0-abc1-624068277e15", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir1", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "3f485922-4208-4bc3-97db-3a295c0127d7" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4EAB3042", + "x-ms-request-id" : "715c1383-f01e-012d-08e8-289141000000", + "x-ms-client-request-id" : "3f485922-4208-4bc3-97db-3a295c0127d7", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/cDir1/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "5bacd51b-8852-45e9-8149-9782594a0444" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c1388-f01e-012d-0de8-289141000000", + "Body" : "a/cDir1/2/", + "x-ms-client-request-id" : "5bacd51b-8852-45e9-8149-9782594a0444", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/cDir1/&delimiter=/&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "e2288dca-8981-4892-a4f9-c1a8890ace93" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c138d-f01e-012d-12e8-289141000000", + "Body" : "a/cDir1//", + "x-ms-client-request-id" : "e2288dca-8981-4892-a4f9-c1a8890ace93", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "e839eb66-4e62-41f7-b5a4-d34780d54f88" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4EB0FBCC", + "x-ms-request-id" : "715c139a-f01e-012d-1ee8-289141000000", + "x-ms-client-request-id" : "e839eb66-4e62-41f7-b5a4-d34780d54f88", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "5b2357fc-eacd-41a9-a1aa-7faa5e056923" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4EB0FBCC", + "x-ms-request-id" : "715c13a4-f01e-012d-28e8-289141000000", + "x-ms-client-request-id" : "5b2357fc-eacd-41a9-a1aa-7faa5e056923", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/cDir2/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "44ae3fe4-9724-4d7f-ae99-6f47bdabf9a5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c13ac-f01e-012d-2fe8-289141000000", + "Body" : "a/cDir2/2/a/cDir2/cDir3Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4EB715700application/octet-streamBlockBlobHottrueunlockedavailabletruetruea/cDir2/file2Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4E7D21FF7application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue2!84!MDAwMDE5IWEvY0RpcjIvdkRpcjEvZmlsZTMhMDAwMDI4ITk5OTktMTItMzFUMjM6NTk6NTkuOTk5OTk5OVoh", + "x-ms-client-request-id" : "44ae3fe4-9724-4d7f-ae99-6f47bdabf9a5", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/cDir2/&delimiter=/&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "919168d8-ea1b-4091-bfa0-c5a575685cb8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c13b3-f01e-012d-36e8-289141000000", + "Body" : "a/cDir2//a/cDir2/cDir3Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4EB715700application/octet-streamBlockBlobHottrueunlockedavailabletruetruea/cDir2/file2Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4E7D21FF7application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletruea/cDir2/vDir1/", + "x-ms-client-request-id" : "919168d8-ea1b-4091-bfa0-c5a575685cb8", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2%2FcDir3", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "932afe1f-9d4a-4e25-84a2-8821300bf5a1" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4EB71570", + "x-ms-request-id" : "715c13b9-f01e-012d-3be8-289141000000", + "x-ms-client-request-id" : "932afe1f-9d4a-4e25-84a2-8821300bf5a1", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2%2FcDir3", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "c2a8197a-164b-4ff7-b0bb-264c535e3155" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4EB71570", + "x-ms-request-id" : "715c13bd-f01e-012d-3fe8-289141000000", + "x-ms-client-request-id" : "c2a8197a-164b-4ff7-b0bb-264c535e3155", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/cDir2/cDir3/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "e3d69c41-7c2e-458f-bc43-cb64bdd7384a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c13c3-f01e-012d-45e8-289141000000", + "Body" : "a/cDir2/cDir3/2/", + "x-ms-client-request-id" : "e3d69c41-7c2e-458f-bc43-cb64bdd7384a", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/cDir2/cDir3/&delimiter=/&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "9a272382-983d-4479-9647-c1a5c2b79cc8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c13c9-f01e-012d-4be8-289141000000", + "Body" : "a/cDir2/cDir3//", + "x-ms-client-request-id" : "9a272382-983d-4479-9647-c1a5c2b79cc8", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2%2Ffile2", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "68f4686c-757f-4b87-890b-132e22654cd1" + }, + "Response" : { + "content-length" : "7", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4E7D21FF", + "x-ms-request-id" : "715c13d3-f01e-012d-55e8-289141000000", + "x-ms-client-request-id" : "68f4686c-757f-4b87-890b-132e22654cd1", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2%2FvDir1", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "ef44f4b4-2a81-484b-8bdf-2e2d19a4e0fa" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "715c13da-f01e-012d-5ce8-289141000000", + "x-ms-client-request-id" : "ef44f4b4-2a81-484b-8bdf-2e2d19a4e0fa", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2%2FvDir1", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "f2509bef-7c0c-45ec-bce9-0fcd26219cb3" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "715c13e5-f01e-012d-67e8-289141000000", + "x-ms-client-request-id" : "f2509bef-7c0c-45ec-bce9-0fcd26219cb3", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/cDir2/vDir1/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "421dac4c-692e-4320-9d4b-83b18bc25ae9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c13ea-f01e-012d-6ce8-289141000000", + "Body" : "a/cDir2/vDir1/2/a/cDir2/vDir1/file3Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4E82786B7application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue", + "x-ms-client-request-id" : "421dac4c-692e-4320-9d4b-83b18bc25ae9", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2%2FvDir1", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "66e4860c-4339-474f-8b33-3710d7d484fb" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "715c13f2-f01e-012d-74e8-289141000000", + "x-ms-client-request-id" : "66e4860c-4339-474f-8b33-3710d7d484fb", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/cDir2/vDir1/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "744123ea-a5c2-4769-83cb-231b9aec01c3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c13f5-f01e-012d-77e8-289141000000", + "Body" : "a/cDir2/vDir1/2/a/cDir2/vDir1/file3Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4E82786B7application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue", + "x-ms-client-request-id" : "744123ea-a5c2-4769-83cb-231b9aec01c3", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/cDir2/vDir1/&delimiter=/&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "785578e2-fdcb-4158-aaca-516583f8cc17" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c13fb-f01e-012d-7de8-289141000000", + "Body" : "a/cDir2/vDir1//a/cDir2/vDir1/file3Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4E82786B7application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue", + "x-ms-client-request-id" : "785578e2-fdcb-4158-aaca-516583f8cc17", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FcDir2%2FvDir1%2Ffile3", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "cb7ab29c-b163-4918-a5f2-ff9459f3bb5b" + }, + "Response" : { + "content-length" : "7", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4E82786B", + "x-ms-request-id" : "715c13fd-f01e-012d-7fe8-289141000000", + "x-ms-client-request-id" : "cb7ab29c-b163-4918-a5f2-ff9459f3bb5b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2Ffile1", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "7a60b45e-e778-4dde-9acc-ae3b94217d52" + }, + "Response" : { + "content-length" : "7", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4E7581F7", + "x-ms-request-id" : "715c140a-f01e-012d-0ce8-289141000000", + "x-ms-client-request-id" : "7a60b45e-e778-4dde-9acc-ae3b94217d52", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "09b8d788-a817-4219-9617-6952015c2b33" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "715c1412-f01e-012d-14e8-289141000000", + "x-ms-client-request-id" : "09b8d788-a817-4219-9617-6952015c2b33", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "3cec5970-478e-4c10-b2d8-7852fd8067be" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "715c141d-f01e-012d-1fe8-289141000000", + "x-ms-client-request-id" : "3cec5970-478e-4c10-b2d8-7852fd8067be", + "Date" : "Wed, 23 Feb 2022 19:04:24 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/vDir2/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "01f96390-0c7b-47f4-bd05-031c12e33534" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c1424-f01e-012d-26e8-289141000000", + "Body" : "a/vDir2/2/a/vDir2/cDir4Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4EBCB9F30application/octet-streamBlockBlobHottrueunlockedavailabletruetruea/vDir2/file4Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4E87A7CF7application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue2!84!MDAwMDE5IWEvdkRpcjIvdkRpcjMvZmlsZTUhMDAwMDI4ITk5OTktMTItMzFUMjM6NTk6NTkuOTk5OTk5OVoh", + "x-ms-client-request-id" : "01f96390-0c7b-47f4-bd05-031c12e33534", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "ab138a89-35a0-40ae-84a9-095afdd1c177" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "715c142c-f01e-012d-2ee8-289141000000", + "x-ms-client-request-id" : "ab138a89-35a0-40ae-84a9-095afdd1c177", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/vDir2/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "c4b2d010-5a76-4341-9445-b06f1214d7e8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c1434-f01e-012d-36e8-289141000000", + "Body" : "a/vDir2/2/a/vDir2/cDir4Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4EBCB9F30application/octet-streamBlockBlobHottrueunlockedavailabletruetruea/vDir2/file4Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4E87A7CF7application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue2!84!MDAwMDE5IWEvdkRpcjIvdkRpcjMvZmlsZTUhMDAwMDI4ITk5OTktMTItMzFUMjM6NTk6NTkuOTk5OTk5OVoh", + "x-ms-client-request-id" : "c4b2d010-5a76-4341-9445-b06f1214d7e8", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/vDir2/&delimiter=/&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "5a1228c4-3047-4f7a-a648-63ed0a461dac" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c143b-f01e-012d-3de8-289141000000", + "Body" : "a/vDir2//a/vDir2/cDir4Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4EBCB9F30application/octet-streamBlockBlobHottrueunlockedavailabletruetruea/vDir2/file4Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4E87A7CF7application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletruea/vDir2/vDir3/", + "x-ms-client-request-id" : "5a1228c4-3047-4f7a-a648-63ed0a461dac", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2%2FcDir4", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "b1c7aba9-3cc2-4cae-b551-e6e5b5856eae" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4EBCB9F3", + "x-ms-request-id" : "715c1440-f01e-012d-42e8-289141000000", + "x-ms-client-request-id" : "b1c7aba9-3cc2-4cae-b551-e6e5b5856eae", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2%2FcDir4", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "1e5ba3c7-ea60-4e75-a024-85c6ff5a8951" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4EBCB9F3", + "x-ms-request-id" : "715c1449-f01e-012d-4be8-289141000000", + "x-ms-client-request-id" : "1e5ba3c7-ea60-4e75-a024-85c6ff5a8951", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/vDir2/cDir4/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "256db2e3-b276-4e74-a9d5-758872e348f7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c1451-f01e-012d-53e8-289141000000", + "Body" : "a/vDir2/cDir4/2/", + "x-ms-client-request-id" : "256db2e3-b276-4e74-a9d5-758872e348f7", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/vDir2/cDir4/&delimiter=/&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "88fe3aad-65ae-4fde-ac7b-5b13038fec2d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c145a-f01e-012d-5ce8-289141000000", + "Body" : "a/vDir2/cDir4//", + "x-ms-client-request-id" : "88fe3aad-65ae-4fde-ac7b-5b13038fec2d", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2%2Ffile4", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "a716a0d6-0fda-462f-a455-10d5221e1161" + }, + "Response" : { + "content-length" : "7", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4E87A7CF", + "x-ms-request-id" : "715c1463-f01e-012d-65e8-289141000000", + "x-ms-client-request-id" : "a716a0d6-0fda-462f-a455-10d5221e1161", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2%2FvDir3", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "7eb5c966-4c5e-4189-9eb0-50c29e286868" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "715c146d-f01e-012d-6fe8-289141000000", + "x-ms-client-request-id" : "7eb5c966-4c5e-4189-9eb0-50c29e286868", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2%2FvDir3", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "774216de-3587-494a-98e4-bc1ee944cc3c" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "715c1476-f01e-012d-78e8-289141000000", + "x-ms-client-request-id" : "774216de-3587-494a-98e4-bc1ee944cc3c", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/vDir2/vDir3/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "64b7c56d-45bb-4195-958f-cb9da8d59568" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c147f-f01e-012d-01e8-289141000000", + "Body" : "a/vDir2/vDir3/2/a/vDir2/vDir3/file5Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4E8E84A07application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue", + "x-ms-client-request-id" : "64b7c56d-45bb-4195-958f-cb9da8d59568", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2%2FvDir3", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "a0504850-f5f5-4197-b88c-c3f34e92455c" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "715c148a-f01e-012d-0ce8-289141000000", + "x-ms-client-request-id" : "a0504850-f5f5-4197-b88c-c3f34e92455c", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/vDir2/vDir3/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "437fa6ef-f831-45bd-b14c-171f6fc518c9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c149d-f01e-012d-1ce8-289141000000", + "Body" : "a/vDir2/vDir3/2/a/vDir2/vDir3/file5Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4E8E84A07application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue", + "x-ms-client-request-id" : "437fa6ef-f831-45bd-b14c-171f6fc518c9", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870?restype=container&comp=list&prefix=a/vDir2/vDir3/&delimiter=/&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "7feebdb6-c9b3-4b10-9f44-aa244400dab0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "715c14a2-f01e-012d-21e8-289141000000", + "Body" : "a/vDir2/vDir3//a/vDir2/vDir3/file5Wed, 23 Feb 2022 19:04:24 GMTWed, 23 Feb 2022 19:04:24 GMT0x8D9F6FF4E8E84A07application/octet-streamwh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue", + "x-ms-client-request-id" : "7feebdb6-c9b3-4b10-9f44-aa244400dab0", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/16163582116163582a8029912098387495d4249b9870/a%2FvDir2%2FvDir3%2Ffile5", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "541d885d-b7f1-4c45-96d2-217acc1998f8" + }, + "Response" : { + "content-length" : "7", + "x-ms-version" : "2021-04-10", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 23 Feb 2022 19:04:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 23 Feb 2022 19:04:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Wed, 23 Feb 2022 19:04:24 GMT", + "eTag" : "0x8D9F6FF4E8E84A0", + "x-ms-request-id" : "715c14ac-f01e-012d-2be8-289141000000", + "x-ms-client-request-id" : "541d885d-b7f1-4c45-96d2-217acc1998f8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + } ], + "variables" : [ "16163582016163582a8032842acaa20a8896b462db0e", "16163582116163582a8029912098387495d4249b9870", "16163582216163582a8034120cb51b2c21ac14079a0e" ] +} \ No newline at end of file From cab9c18f38832d04882d4f141470196b182fd794 Mon Sep 17 00:00:00 2001 From: Rick Ley Date: Wed, 23 Feb 2022 13:24:57 -0800 Subject: [PATCH 03/11] CI fixes --- .../resources/spotbugs/spotbugs-exclude.xml | 12 +- .../nio/AzureFileSystemProviderTest.groovy | 24 ++-- ...ProviderTestReadAttributesIOException.json | 134 ++++++++++++------ ...viderTestReadAttributesStrIOException.json | 134 ++++++++++++------ 4 files changed, 196 insertions(+), 108 deletions(-) diff --git a/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml b/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml index 43ca76874f447..5c24df74c6b4a 100755 --- a/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml +++ b/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml @@ -718,6 +718,16 @@ + + + + + + + + + + @@ -2173,7 +2183,7 @@ UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR, UWF_UNWRITTEN_FIELD"/> - + diff --git a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileSystemProviderTest.groovy b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileSystemProviderTest.groovy index e0e18d6593235..7ab84ad762fbb 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileSystemProviderTest.groovy +++ b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileSystemProviderTest.groovy @@ -1654,7 +1654,6 @@ class AzureFileSystemProviderTest extends APISpec { def fs = createFS(config) when: "Path does not exist" - // Covers virtual directory, too fs.provider().readAttributes(fs.getPath("path"), BasicFileAttributes.class) then: @@ -1699,15 +1698,15 @@ class AzureFileSystemProviderTest extends APISpec { result.keySet().size() == attrList.size() where: - attrStr || attrList - "*" || ["lastModifiedTime", "creationTime", "isRegularFile", "isDirectory", "isSymbolicLink", "isOther", "size"] - "basic:*" || ["lastModifiedTime", "creationTime", "isRegularFile", "isDirectory", "isSymbolicLink", "isOther", "size"] - "azureBasic:*" || ["lastModifiedTime", "creationTime", "isRegularFile", "isDirectory", "isSymbolicLink", "isOther", "size"] - "azureBlob:*" || ["lastModifiedTime", "creationTime", "eTag", "blobHttpHeaders", "blobType", "copyId", "copyStatus", "copySource", "copyProgress", "copyCompletionTime", "copyStatusDescription", "isServerEncrypted", "accessTier", "isAccessTierInferred", "archiveStatus", "accessTierChangeTime", "metadata", "isRegularFile", "isDirectory", "isSymbolicLink", "isOther", "size"] - "lastModifiedTime,creationTime" || ["lastModifiedTime", "creationTime"] - "basic:isRegularFile,isDirectory" || ["isRegularFile", "isDirectory"] - "azureBasic:size" || ["size"] - "azureBlob:eTag,blobHttpHeaders,blobType,copyId" || ["eTag", "blobHttpHeaders", "blobType", "copyId"] + attrStr || attrList + "*" || ["lastModifiedTime", "creationTime", "isRegularFile", "isDirectory", "isVirtualDirectory", "isSymbolicLink", "isOther", "size"] + "basic:*" || ["lastModifiedTime", "creationTime", "isRegularFile", "isDirectory", "isVirtualDirectory", "isSymbolicLink", "isOther", "size"] + "azureBasic:*" || ["lastModifiedTime", "creationTime", "isRegularFile", "isDirectory", "isVirtualDirectory", "isSymbolicLink", "isOther", "size"] + "azureBlob:*" || ["lastModifiedTime", "creationTime", "eTag", "blobHttpHeaders", "blobType", "copyId", "copyStatus", "copySource", "copyProgress", "copyCompletionTime", "copyStatusDescription", "isServerEncrypted", "accessTier", "isAccessTierInferred", "archiveStatus", "accessTierChangeTime", "metadata", "isRegularFile", "isDirectory", "isVirtualDirectory", "isSymbolicLink", "isOther", "size"] + "lastModifiedTime,creationTime" || ["lastModifiedTime", "creationTime"] + "basic:isRegularFile,isDirectory,isVirtualDirectory" || ["isRegularFile", "isDirectory", "isVirtualDirectory"] + "azureBasic:size" || ["size"] + "azureBlob:eTag,blobHttpHeaders,blobType,copyId" || ["eTag", "blobHttpHeaders", "blobType", "copyId"] } def "ReadAttributes str suppliers"() { @@ -1763,7 +1762,6 @@ class AzureFileSystemProviderTest extends APISpec { def fs = createFS(config) when: "Path does not exist" - // Covers virtual directory, too fs.provider().readAttributes(fs.getPath("path"), "basic:creationTime") then: @@ -1814,8 +1812,8 @@ class AzureFileSystemProviderTest extends APISpec { headers.getContentType() == contentType where: - cacheControl | contentDisposition | contentEncoding | contentLanguage | contentMD5 | contentType - null | null | null | null | null | null + cacheControl | contentDisposition | contentEncoding | contentLanguage | contentMD5 | contentType + null | null | null | null | null | null "control" | "disposition" | "encoding" | "language" | Base64.getEncoder().encode(MessageDigest.getInstance("MD5").digest(data.defaultBytes)) | "type" } diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestReadAttributesIOException.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestReadAttributesIOException.json index b5b8ebac388ea..079c24229a421 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestReadAttributesIOException.json +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestReadAttributesIOException.json @@ -1,109 +1,149 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/cbbe3ee11cbbe3ee1fa220277a01d6e00595946158b2?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/cbbe3ee11cbbe3ee166189980e8e3b56ed6064e3da24?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "51171ce0-4ab2-4d92-8380-ef4450cb1e65" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "1da62727-e0b2-40c3-9c06-212712cae3d9" }, "Response" : { "content-length" : "225", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "ContainerNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "2f9552d5-001e-005a-197d-115255000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:2f9552d5-001e-005a-197d-115255000000\nTime:2022-01-24T23:53:51.0782684Z", - "x-ms-client-request-id" : "51171ce0-4ab2-4d92-8380-ef4450cb1e65", - "Date" : "Mon, 24 Jan 2022 23:53:50 GMT", + "x-ms-request-id" : "3a7292ae-b01e-012a-1cfb-2867c4000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:3a7292ae-b01e-012a-1cfb-2867c4000000\nTime:2022-02-23T21:23:19.8513419Z", + "x-ms-client-request-id" : "1da62727-e0b2-40c3-9c06-212712cae3d9", + "Date" : "Wed, 23 Feb 2022 21:23:19 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/cbbe3ee11cbbe3ee1fa220277a01d6e00595946158b2?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/cbbe3ee11cbbe3ee166189980e8e3b56ed6064e3da24?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "de40e300-21ad-4635-a85f-ada27b358614" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "4921882f-0b8c-4228-ad99-121c7c3dc1df" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8D9DF94C57E8726", - "Last-Modified" : "Mon, 24 Jan 2022 23:53:51 GMT", + "eTag" : "0x8D9F712B6E3B001", + "Last-Modified" : "Wed, 23 Feb 2022 21:23:19 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "0ad35b6f-001e-009d-2e7d-112e94000000", - "x-ms-client-request-id" : "de40e300-21ad-4635-a85f-ada27b358614", - "Date" : "Mon, 24 Jan 2022 23:53:50 GMT" + "x-ms-request-id" : "3a7292bf-b01e-012a-28fb-2867c4000000", + "x-ms-client-request-id" : "4921882f-0b8c-4228-ad99-121c7c3dc1df", + "Date" : "Wed, 23 Feb 2022 21:23:19 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/cbbe3ee12cbbe3ee1fa2006365c1349368bf143c98f0?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/cbbe3ee12cbbe3ee166185340b9f02b0e8f0a446abd3?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "20df72a8-c7d4-480b-a8cc-648a6b0135d3" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "97885ef0-629c-404c-a970-d8b94ae01fd0" }, "Response" : { "content-length" : "225", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "ContainerNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "1aad1b20-001e-00b4-6e7d-1158d6000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:1aad1b20-001e-00b4-6e7d-1158d6000000\nTime:2022-01-24T23:53:51.1799139Z", - "x-ms-client-request-id" : "20df72a8-c7d4-480b-a8cc-648a6b0135d3", - "Date" : "Mon, 24 Jan 2022 23:53:51 GMT", + "x-ms-request-id" : "3a7292d1-b01e-012a-38fb-2867c4000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:3a7292d1-b01e-012a-38fb-2867c4000000\nTime:2022-02-23T21:23:20.0572284Z", + "x-ms-client-request-id" : "97885ef0-629c-404c-a970-d8b94ae01fd0", + "Date" : "Wed, 23 Feb 2022 21:23:19 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/cbbe3ee12cbbe3ee1fa2006365c1349368bf143c98f0?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/cbbe3ee12cbbe3ee166185340b9f02b0e8f0a446abd3?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "a5008efd-beb5-4d94-aabc-e498dab38dc7" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "917feec6-625e-4fbd-88f6-e730d64b321c" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8D9DF94C58E518A", - "Last-Modified" : "Mon, 24 Jan 2022 23:53:51 GMT", + "eTag" : "0x8D9F712B6F8BBB3", + "Last-Modified" : "Wed, 23 Feb 2022 21:23:20 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "2c7f74ac-501e-006b-607d-110982000000", - "x-ms-client-request-id" : "a5008efd-beb5-4d94-aabc-e498dab38dc7", - "Date" : "Mon, 24 Jan 2022 23:53:50 GMT" + "x-ms-request-id" : "3a7292d6-b01e-012a-3cfb-2867c4000000", + "x-ms-client-request-id" : "917feec6-625e-4fbd-88f6-e730d64b321c", + "Date" : "Wed, 23 Feb 2022 21:23:19 GMT" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/cbbe3ee11cbbe3ee1fa220277a01d6e00595946158b2/path", + "Uri" : "https://REDACTED.blob.core.windows.net/cbbe3ee11cbbe3ee166189980e8e3b56ed6064e3da24/path", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "fd46f97b-bb08-42ee-a166-da3dcbddb6cb" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "b6805bd9-1056-46af-b1fd-faec84917069" }, "Response" : { - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "BlobNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "778dfb94-201e-0106-017d-11e5f9000000", - "x-ms-client-request-id" : "fd46f97b-bb08-42ee-a166-da3dcbddb6cb", - "Date" : "Mon, 24 Jan 2022 23:53:51 GMT" + "x-ms-request-id" : "3a7292da-b01e-012a-3ffb-2867c4000000", + "x-ms-client-request-id" : "b6805bd9-1056-46af-b1fd-faec84917069", + "Date" : "Wed, 23 Feb 2022 21:23:19 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/cbbe3ee11cbbe3ee166189980e8e3b56ed6064e3da24/path", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "1801c64e-4d7d-452f-bf85-5793463dc7ad" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "3a7292ed-b01e-012a-44fb-2867c4000000", + "x-ms-client-request-id" : "1801c64e-4d7d-452f-bf85-5793463dc7ad", + "Date" : "Wed, 23 Feb 2022 21:23:19 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/cbbe3ee11cbbe3ee166189980e8e3b56ed6064e3da24?restype=container&comp=list&prefix=path/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "276ea923-9373-46f0-b618-f6535927b314" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a7292f3-b01e-012a-4afb-2867c4000000", + "Body" : "path/2/", + "x-ms-client-request-id" : "276ea923-9373-46f0-b618-f6535927b314", + "Date" : "Wed, 23 Feb 2022 21:23:19 GMT", + "Content-Type" : "application/xml" }, "Exception" : null } ], - "variables" : [ "cbbe3ee10cbbe3ee1fa2480292edea51e66b14a9b9ca", "cbbe3ee11cbbe3ee1fa220277a01d6e00595946158b2", "cbbe3ee12cbbe3ee1fa2006365c1349368bf143c98f0" ] + "variables" : [ "cbbe3ee10cbbe3ee166122414d331413b5ba143bb935", "cbbe3ee11cbbe3ee166189980e8e3b56ed6064e3da24", "cbbe3ee12cbbe3ee166185340b9f02b0e8f0a446abd3" ] } \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestReadAttributesStrIOException.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestReadAttributesStrIOException.json index 0dcd0cd463c89..5c3f77358fdd8 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestReadAttributesStrIOException.json +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestReadAttributesStrIOException.json @@ -1,109 +1,149 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/e4ae7dd71e4ae7dd754b400677fb1b4b819d648eca3c?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/e4ae7dd71e4ae7dd7b28982558849472057df4d5e8c4?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "54c2a5a0-5e1f-4fec-972b-48d673176598" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "b063c643-e6e5-48a6-a202-d96909f7c6f2" }, "Response" : { "content-length" : "225", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "ContainerNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "bc54920b-e01e-003d-507d-11e1f2000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:bc54920b-e01e-003d-507d-11e1f2000000\nTime:2022-01-24T23:53:51.2760003Z", - "x-ms-client-request-id" : "54c2a5a0-5e1f-4fec-972b-48d673176598", - "Date" : "Mon, 24 Jan 2022 23:53:50 GMT", + "x-ms-request-id" : "fd64c516-c01e-00a9-05fb-28813c000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:fd64c516-c01e-00a9-05fb-28813c000000\nTime:2022-02-23T21:22:16.2413607Z", + "x-ms-client-request-id" : "b063c643-e6e5-48a6-a202-d96909f7c6f2", + "Date" : "Wed, 23 Feb 2022 21:22:16 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/e4ae7dd71e4ae7dd754b400677fb1b4b819d648eca3c?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/e4ae7dd71e4ae7dd7b28982558849472057df4d5e8c4?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "68c2a0e7-8808-4177-9c50-c39b5db3d551" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "31e888cb-3c24-474a-b88b-81f9d3528446" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8D9DF94C59E0B01", - "Last-Modified" : "Mon, 24 Jan 2022 23:53:51 GMT", + "eTag" : "0x8D9F71290FA5644", + "Last-Modified" : "Wed, 23 Feb 2022 21:22:16 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "edc64540-e01e-00d3-597d-11eb71000000", - "x-ms-client-request-id" : "68c2a0e7-8808-4177-9c50-c39b5db3d551", - "Date" : "Mon, 24 Jan 2022 23:53:50 GMT" + "x-ms-request-id" : "fd64c526-c01e-00a9-13fb-28813c000000", + "x-ms-client-request-id" : "31e888cb-3c24-474a-b88b-81f9d3528446", + "Date" : "Wed, 23 Feb 2022 21:22:16 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/e4ae7dd72e4ae7dd754b21097a39832274a474027ab8?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/e4ae7dd72e4ae7dd7b287883070652f1cca9240cf9a6?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "1f9be5f3-4eee-45e6-90b6-af6448668d8b" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "d1b11711-d24f-4189-b72c-9983ddf48551" }, "Response" : { "content-length" : "225", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "ContainerNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "986ec940-701e-0038-467d-11158d000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:986ec940-701e-0038-467d-11158d000000\nTime:2022-01-24T23:53:51.3705932Z", - "x-ms-client-request-id" : "1f9be5f3-4eee-45e6-90b6-af6448668d8b", - "Date" : "Mon, 24 Jan 2022 23:53:51 GMT", + "x-ms-request-id" : "fd64c535-c01e-00a9-20fb-28813c000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:fd64c535-c01e-00a9-20fb-28813c000000\nTime:2022-02-23T21:22:16.4602376Z", + "x-ms-client-request-id" : "d1b11711-d24f-4189-b72c-9983ddf48551", + "Date" : "Wed, 23 Feb 2022 21:22:16 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/e4ae7dd72e4ae7dd754b21097a39832274a474027ab8?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/e4ae7dd72e4ae7dd7b287883070652f1cca9240cf9a6?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "f15c92a6-ac35-45c7-a46f-00be4cabfe59" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "5407a2f5-a747-4ca1-9478-a3ea42d3e1df" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8D9DF94C5AADD0C", - "Last-Modified" : "Mon, 24 Jan 2022 23:53:51 GMT", + "eTag" : "0x8D9F71291102516", + "Last-Modified" : "Wed, 23 Feb 2022 21:22:16 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "813a00df-e01e-00b5-667d-11592b000000", - "x-ms-client-request-id" : "f15c92a6-ac35-45c7-a46f-00be4cabfe59", - "Date" : "Mon, 24 Jan 2022 23:53:50 GMT" + "x-ms-request-id" : "fd64c53a-c01e-00a9-24fb-28813c000000", + "x-ms-client-request-id" : "5407a2f5-a747-4ca1-9478-a3ea42d3e1df", + "Date" : "Wed, 23 Feb 2022 21:22:16 GMT" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/e4ae7dd71e4ae7dd754b400677fb1b4b819d648eca3c/path", + "Uri" : "https://REDACTED.blob.core.windows.net/e4ae7dd71e4ae7dd7b28982558849472057df4d5e8c4/path", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "1ba29f08-81da-4f36-9453-81082f512185" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "042d4031-4e58-486f-ad4d-2c4053acee2b" }, "Response" : { - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "BlobNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "f1dbe7a7-c01e-002a-637d-112191000000", - "x-ms-client-request-id" : "1ba29f08-81da-4f36-9453-81082f512185", - "Date" : "Mon, 24 Jan 2022 23:53:50 GMT" + "x-ms-request-id" : "fd64c53f-c01e-00a9-28fb-28813c000000", + "x-ms-client-request-id" : "042d4031-4e58-486f-ad4d-2c4053acee2b", + "Date" : "Wed, 23 Feb 2022 21:22:16 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/e4ae7dd71e4ae7dd7b28982558849472057df4d5e8c4/path", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "d44c10e0-d292-4764-9011-e45ea38ba7dc" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "fd64c54a-c01e-00a9-32fb-28813c000000", + "x-ms-client-request-id" : "d44c10e0-d292-4764-9011-e45ea38ba7dc", + "Date" : "Wed, 23 Feb 2022 21:22:16 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/e4ae7dd71e4ae7dd7b28982558849472057df4d5e8c4?restype=container&comp=list&prefix=path/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "9de8b6f9-0e87-4973-a248-32fdbe496394" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "fd64c552-c01e-00a9-3afb-28813c000000", + "Body" : "path/2/", + "x-ms-client-request-id" : "9de8b6f9-0e87-4973-a248-32fdbe496394", + "Date" : "Wed, 23 Feb 2022 21:22:16 GMT", + "Content-Type" : "application/xml" }, "Exception" : null } ], - "variables" : [ "e4ae7dd70e4ae7dd754b5892180decda7628f4e4aad5", "e4ae7dd71e4ae7dd754b400677fb1b4b819d648eca3c", "e4ae7dd72e4ae7dd754b21097a39832274a474027ab8" ] + "variables" : [ "e4ae7dd70e4ae7dd7b2854883579f6683fb8c4432acc", "e4ae7dd71e4ae7dd7b28982558849472057df4d5e8c4", "e4ae7dd72e4ae7dd7b287883070652f1cca9240cf9a6" ] } \ No newline at end of file From a6c527e658523be1446668efcb5aee1a861f33ac Mon Sep 17 00:00:00 2001 From: Rick Ley Date: Wed, 23 Feb 2022 14:26:16 -0800 Subject: [PATCH 04/11] Pr feedback --- .../blob/nio/AzureBasicFileAttributes.java | 4 +- .../blob/nio/AzureBlobFileAttributes.java | 6 +- ...leSystemProviderTestCheckAccessNoFile.json | 134 ++++++++++++------ 3 files changed, 92 insertions(+), 52 deletions(-) diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java index 0c637b0de89cd..3962e8cef6b41 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java @@ -148,9 +148,9 @@ public boolean isOther() { } /** - * Returns the size of the file (in bytes) or null if this is a virtual directory. + * Returns the size of the file (in bytes). * - * @return the size of the file or null if this is a virtual directory + * @return the size of the file */ @Override public long size() { diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java index 8c84b4cb1d055..93b7b1f253195 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java @@ -420,16 +420,16 @@ public boolean isOther() { } /** - * Returns the size of the file (in bytes) or null if this is a virtual directory. + * Returns the size of the file (in bytes). * - * @return the size of the file or null if this is a virtual directory + * @return the size of the file */ @Override public long size() { if (!this.isVirtualDirectory) { return properties.getBlobSize(); } else { - return -1; + return 0; } } diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestCheckAccessNoFile.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestCheckAccessNoFile.json index 8ef465032ba76..b5694c8369228 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestCheckAccessNoFile.json +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestCheckAccessNoFile.json @@ -1,109 +1,149 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/59f9966c159f9966c2ed23815821dda85333c420e995?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/59f9966c159f9966c4b2633324b3d78ed4a584aec81a?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "5ba9df0a-008d-4fcd-95bb-45ce34e28725" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "83cd12bb-b641-48e5-921e-f4b361c3e228" }, "Response" : { "content-length" : "225", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "ContainerNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "00fdb20e-201e-00c5-7f7d-112aef000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:00fdb20e-201e-00c5-7f7d-112aef000000\nTime:2022-01-24T23:53:50.6878679Z", - "x-ms-client-request-id" : "5ba9df0a-008d-4fcd-95bb-45ce34e28725", - "Date" : "Mon, 24 Jan 2022 23:53:50 GMT", + "x-ms-request-id" : "1db433e3-a01e-0013-64fb-286135000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:1db433e3-a01e-0013-64fb-286135000000\nTime:2022-02-23T21:24:45.7921988Z", + "x-ms-client-request-id" : "83cd12bb-b641-48e5-921e-f4b361c3e228", + "Date" : "Wed, 23 Feb 2022 21:24:45 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/59f9966c159f9966c2ed23815821dda85333c420e995?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/59f9966c159f9966c4b2633324b3d78ed4a584aec81a?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "91432223-ee69-4447-af15-eab46aed2819" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "b0ff80c6-ecba-44da-94f1-60cc86be4d04" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8D9DF94C543F787", - "Last-Modified" : "Mon, 24 Jan 2022 23:53:50 GMT", + "eTag" : "0x8D9F712EA1C7588", + "Last-Modified" : "Wed, 23 Feb 2022 21:24:45 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "0ad35b51-001e-009d-147d-112e94000000", - "x-ms-client-request-id" : "91432223-ee69-4447-af15-eab46aed2819", - "Date" : "Mon, 24 Jan 2022 23:53:50 GMT" + "x-ms-request-id" : "1db433e7-a01e-0013-65fb-286135000000", + "x-ms-client-request-id" : "b0ff80c6-ecba-44da-94f1-60cc86be4d04", + "Date" : "Wed, 23 Feb 2022 21:24:45 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/59f9966c259f9966c2ed669894f9f52e1bd464f3e9f1?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/59f9966c259f9966c4b28641377b5003b98af44b593d?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "4fb6c3fe-866a-4cf6-a2f6-87f1aadbbcb9" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "34215084-9464-4d4a-ab15-860e27c5a014" }, "Response" : { "content-length" : "225", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "ContainerNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "869a7fac-b01e-0025-777d-11cc67000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:869a7fac-b01e-0025-777d-11cc67000000\nTime:2022-01-24T23:53:50.8101411Z", - "x-ms-client-request-id" : "4fb6c3fe-866a-4cf6-a2f6-87f1aadbbcb9", - "Date" : "Mon, 24 Jan 2022 23:53:50 GMT", + "x-ms-request-id" : "1db433ed-a01e-0013-69fb-286135000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:1db433ed-a01e-0013-69fb-286135000000\nTime:2022-02-23T21:24:46.0030817Z", + "x-ms-client-request-id" : "34215084-9464-4d4a-ab15-860e27c5a014", + "Date" : "Wed, 23 Feb 2022 21:24:45 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/59f9966c259f9966c2ed669894f9f52e1bd464f3e9f1?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/59f9966c259f9966c4b28641377b5003b98af44b593d?restype=container", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "8d582db8-db4e-4c3f-91fd-45e15acd30ca" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "204e537d-4863-48ec-9b32-5980c9576232" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8D9DF94C55E9FA8", - "Last-Modified" : "Mon, 24 Jan 2022 23:53:50 GMT", + "eTag" : "0x8D9F712EA3355A4", + "Last-Modified" : "Wed, 23 Feb 2022 21:24:46 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "21e10aeb-501e-0006-487d-11a3ac000000", - "x-ms-client-request-id" : "8d582db8-db4e-4c3f-91fd-45e15acd30ca", - "Date" : "Mon, 24 Jan 2022 23:53:50 GMT" + "x-ms-request-id" : "1db433f0-a01e-0013-6bfb-286135000000", + "x-ms-client-request-id" : "204e537d-4863-48ec-9b32-5980c9576232", + "Date" : "Wed, 23 Feb 2022 21:24:45 GMT" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/59f9966c159f9966c2ed23815821dda85333c420e995/59f9966c359f9966c2ed796686bb65ce65d514e0e8b6", + "Uri" : "https://REDACTED.blob.core.windows.net/59f9966c159f9966c4b2633324b3d78ed4a584aec81a/59f9966c359f9966c4b26189396702db445b04a0c890", "Headers" : { - "x-ms-version" : "2021-02-12", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.3 azsdk-java-azure-storage-blob-nio/12.0.0-beta.15 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "ab55abb9-aea5-4398-8e9b-84a60726d2d7" + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "505ca1e1-088c-406f-bc97-6ec93c755aad" }, "Response" : { - "x-ms-version" : "2021-02-12", + "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "BlobNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "f1dbe783-c01e-002a-437d-112191000000", - "x-ms-client-request-id" : "ab55abb9-aea5-4398-8e9b-84a60726d2d7", - "Date" : "Mon, 24 Jan 2022 23:53:50 GMT" + "x-ms-request-id" : "1db433f5-a01e-0013-6efb-286135000000", + "x-ms-client-request-id" : "505ca1e1-088c-406f-bc97-6ec93c755aad", + "Date" : "Wed, 23 Feb 2022 21:24:45 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/59f9966c159f9966c4b2633324b3d78ed4a584aec81a/59f9966c359f9966c4b26189396702db445b04a0c890", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "79adbf9c-9056-46c2-8671-ea2988cf38be" + }, + "Response" : { + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "1db433f7-a01e-0013-70fb-286135000000", + "x-ms-client-request-id" : "79adbf9c-9056-46c2-8671-ea2988cf38be", + "Date" : "Wed, 23 Feb 2022 21:24:45 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/59f9966c159f9966c4b2633324b3d78ed4a584aec81a?restype=container&comp=list&prefix=59f9966c359f9966c4b26189396702db445b04a0c890/&delimiter=/&maxresults=2&include=metadata", + "Headers" : { + "x-ms-version" : "2021-04-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", + "x-ms-client-request-id" : "3307164a-9dea-4fb2-b800-1c27937eb7ae" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2021-04-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1db433f9-a01e-0013-72fb-286135000000", + "Body" : "59f9966c359f9966c4b26189396702db445b04a0c890/2/", + "x-ms-client-request-id" : "3307164a-9dea-4fb2-b800-1c27937eb7ae", + "Date" : "Wed, 23 Feb 2022 21:24:45 GMT", + "Content-Type" : "application/xml" }, "Exception" : null } ], - "variables" : [ "59f9966c059f9966c2ed35975e8f0b6ba19164c8faac", "59f9966c159f9966c2ed23815821dda85333c420e995", "59f9966c259f9966c2ed669894f9f52e1bd464f3e9f1", "59f9966c359f9966c2ed796686bb65ce65d514e0e8b6" ] + "variables" : [ "59f9966c059f9966c4b284471f952b276ae434ce69b7", "59f9966c159f9966c4b2633324b3d78ed4a584aec81a", "59f9966c259f9966c4b28641377b5003b98af44b593d", "59f9966c359f9966c4b26189396702db445b04a0c890" ] } \ No newline at end of file From 1b539d36ef7ed6d756f1b73e6a79fa6827a85636 Mon Sep 17 00:00:00 2001 From: Rick Ley Date: Thu, 24 Feb 2022 10:32:04 -0800 Subject: [PATCH 05/11] PR feedback --- .../blob/nio/AzureBlobFileAttributes.java | 142 ++++-------------- 1 file changed, 33 insertions(+), 109 deletions(-) diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java index 93b7b1f253195..cfe764ff31af4 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java @@ -97,15 +97,11 @@ static Map> getAttributeSuppliers(AzureBlobFileAttribut * Returns the creation time. The creation time is the time that the file was created. Returns null if this is a * virtual directory. * - * @return The creation time or + * @return The creation time or null if this is a virtual directory */ @Override public FileTime creationTime() { - if (!this.isVirtualDirectory) { - return FileTime.from(this.properties.getCreationTime().toInstant()); - } else { - return null; - } + return !this.isVirtualDirectory ? FileTime.from(this.properties.getCreationTime().toInstant()) : null; } /** @@ -115,11 +111,7 @@ public FileTime creationTime() { */ @Override public FileTime lastModifiedTime() { - if (!this.isVirtualDirectory) { - return FileTime.from(this.properties.getLastModified().toInstant()); - } else { - return null; - } + return !this.isVirtualDirectory ? FileTime.from(this.properties.getLastModified().toInstant()) : null; } /** @@ -128,11 +120,7 @@ public FileTime lastModifiedTime() { * @return the eTag of the blob or null if this is a virtual directory */ public String eTag() { - if (!this.isVirtualDirectory) { - return this.properties.getETag(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.getETag() : null; } /** @@ -141,22 +129,21 @@ public String eTag() { * @return {@link BlobHttpHeaders} or null if this is a virtual directory */ public BlobHttpHeaders blobHttpHeaders() { - if (!this.isVirtualDirectory) { + if (this.isVirtualDirectory) { + return null; + } /* - We return these all as one value so it's consistent with the way of setting, especially the setAttribute method + We return these all as one value, so it's consistent with the way of setting, especially the setAttribute method that accepts a string argument for the name of the property. Returning them individually would mean we have to support setting them individually as well, which is not possible due to service constraints. */ - return new BlobHttpHeaders() - .setContentType(this.properties.getContentType()) - .setContentLanguage(this.properties.getContentLanguage()) - .setContentMd5(this.properties.getContentMd5()) - .setContentDisposition(this.properties.getContentDisposition()) - .setContentEncoding(this.properties.getContentEncoding()) - .setCacheControl(this.properties.getCacheControl()); - } else { - return null; - } + return new BlobHttpHeaders() + .setContentType(this.properties.getContentType()) + .setContentLanguage(this.properties.getContentLanguage()) + .setContentMd5(this.properties.getContentMd5()) + .setContentDisposition(this.properties.getContentDisposition()) + .setContentEncoding(this.properties.getContentEncoding()) + .setCacheControl(this.properties.getCacheControl()); } /** @@ -165,11 +152,7 @@ public BlobHttpHeaders blobHttpHeaders() { * @return the type of the blob or null if this is a virtual directory */ public BlobType blobType() { - if (!this.isVirtualDirectory) { - return this.properties.getBlobType(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.getBlobType() : null; } /** @@ -179,11 +162,7 @@ public BlobType blobType() { * @return the identifier of the last copy operation or null if this is a virtual directory */ public String copyId() { - if (!this.isVirtualDirectory) { - return this.properties.getCopyId(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.getCopyId() : null; } /** @@ -193,11 +172,7 @@ public String copyId() { * @return the status of the last copy operation or null if this is a virtual directory */ public CopyStatusType copyStatus() { - if (!this.isVirtualDirectory) { - return this.properties.getCopyStatus(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.getCopyStatus() : null; } /** @@ -207,11 +182,7 @@ public CopyStatusType copyStatus() { * @return the source blob URL from the last copy operation or null if this is a virtual directory */ public String copySource() { - if (!this.isVirtualDirectory) { - return this.properties.getCopySource(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.getCopySource() : null; } /** @@ -223,11 +194,7 @@ public String copySource() { * virtual directory */ public String copyProgress() { - if (!this.isVirtualDirectory) { - return this.properties.getCopyProgress(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.getCopyProgress() : null; } /** @@ -237,11 +204,7 @@ public String copyProgress() { * @return the completion time of the last copy operation or null if this is a virtual directory */ public OffsetDateTime copyCompletionTime() { - if (!this.isVirtualDirectory) { - return this.properties.getCopyCompletionTime(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.getCopyCompletionTime() : null; } /** @@ -253,11 +216,7 @@ public OffsetDateTime copyCompletionTime() { * @return the description of the last copy failure or null if this is a virtual directory */ public String copyStatusDescription() { - if (!this.isVirtualDirectory) { - return this.properties.getCopyStatusDescription(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.getCopyStatusDescription() : null; } /** @@ -266,11 +225,7 @@ public String copyStatusDescription() { * @return the status of the blob being encrypted on the server or null if this is a virtual directory */ public Boolean isServerEncrypted() { - if (!this.isVirtualDirectory) { - return this.properties.isServerEncrypted(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.isServerEncrypted() : null; } /** @@ -280,11 +235,7 @@ public Boolean isServerEncrypted() { * @return the tier of the blob or null if this is a virtual directory */ public AccessTier accessTier() { - if (!this.isVirtualDirectory) { - return this.properties.getAccessTier(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.getAccessTier() : null; } /** @@ -295,11 +246,7 @@ public AccessTier accessTier() { * @return the status of the tier being inferred for the blob or null if this is a virtual directory */ public Boolean isAccessTierInferred() { - if (!this.isVirtualDirectory) { - return this.properties.isAccessTierInferred(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.isAccessTierInferred() : null; } /** @@ -309,11 +256,7 @@ public Boolean isAccessTierInferred() { * @return the archive status of the blob or null if this is a virtual directory */ public ArchiveStatus archiveStatus() { - if (!this.isVirtualDirectory) { - return this.properties.getArchiveStatus(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.getArchiveStatus() : null; } /** @@ -322,11 +265,7 @@ public ArchiveStatus archiveStatus() { * @return the time when the access tier for the blob was last changed or null if this is a virtual directory */ public OffsetDateTime accessTierChangeTime() { - if (!this.isVirtualDirectory) { - return this.properties.getAccessTierChangeTime(); - } else { - return null; - } + return !this.isVirtualDirectory ? this.properties.getAccessTierChangeTime() : null; } /** @@ -335,11 +274,7 @@ public OffsetDateTime accessTierChangeTime() { * @return the metadata associated with this blob or null if this is a virtual directory */ public Map metadata() { - if (!this.isVirtualDirectory) { - return Collections.unmodifiableMap(this.properties.getMetadata()); - } else { - return null; - } + return !this.isVirtualDirectory ? Collections.unmodifiableMap(this.properties.getMetadata()) : null; } /** @@ -348,15 +283,11 @@ public Map metadata() { * Last access time is not supported by the blob service. In this case, it is typical for implementations to return * the {@link #lastModifiedTime()}. * - * @return the time of last modification null if this is a virtual directory + * @return the time of last modification or null if this is a virtual directory */ @Override public FileTime lastAccessTime() { - if (!this.isVirtualDirectory) { - return this.lastModifiedTime(); - } else { - return null; - } + return !this.isVirtualDirectory ? FileTime.from(this.properties.getLastAccessedTime().toInstant()) : null; } /** @@ -366,11 +297,8 @@ public FileTime lastAccessTime() { */ @Override public boolean isRegularFile() { - if (!this.isVirtualDirectory) { - return !this.properties.getMetadata().getOrDefault(AzureResource.DIR_METADATA_MARKER, "false").equals("true"); - } else { - return false; - } + return !this.isVirtualDirectory + && !this.properties.getMetadata().getOrDefault(AzureResource.DIR_METADATA_MARKER, "false").equals("true"); } /** @@ -426,11 +354,7 @@ public boolean isOther() { */ @Override public long size() { - if (!this.isVirtualDirectory) { - return properties.getBlobSize(); - } else { - return 0; - } + return !this.isVirtualDirectory ? properties.getBlobSize() : 0; } /** From 2e32caf9dc1dec7be78a7f5f89bc8f5c24f6b8ba Mon Sep 17 00:00:00 2001 From: Rick Ley Date: Fri, 25 Feb 2022 10:04:04 -0800 Subject: [PATCH 06/11] Updated readme samples --- .../java/com/azure/storage/blob/nio/ReadmeSamples.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sdk/storage/azure-storage-blob-nio/src/samples/java/com/azure/storage/blob/nio/ReadmeSamples.java b/sdk/storage/azure-storage-blob-nio/src/samples/java/com/azure/storage/blob/nio/ReadmeSamples.java index b3732ae9d585f..ae983a7524c10 100644 --- a/sdk/storage/azure-storage-blob-nio/src/samples/java/com/azure/storage/blob/nio/ReadmeSamples.java +++ b/sdk/storage/azure-storage-blob-nio/src/samples/java/com/azure/storage/blob/nio/ReadmeSamples.java @@ -28,7 +28,14 @@ */ public class ReadmeSamples { - private FileSystem myFs = FileSystems.newFileSystem(new URI("azb://?account=", ""); + private static final Map CONFIG = new HashMap<>(){{ + put(AzureFileSystem.AZURE_STORAGE_SHARED_KEY_CREDENTIAL, SHARE_KEY_CREDENTIAL); + put(AzureFileSystem.AZURE_STORAGE_FILE_STORES, CONTAINER_STORES); + }}; + private FileSystem myFs = FileSystems.newFileSystem(new URI("azb://?endpoint= Date: Fri, 25 Feb 2022 12:32:06 -0800 Subject: [PATCH 07/11] CI fix --- .../samples/java/com/azure/storage/blob/nio/ReadmeSamples.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/storage/azure-storage-blob-nio/src/samples/java/com/azure/storage/blob/nio/ReadmeSamples.java b/sdk/storage/azure-storage-blob-nio/src/samples/java/com/azure/storage/blob/nio/ReadmeSamples.java index ae983a7524c10..c30100a15647c 100644 --- a/sdk/storage/azure-storage-blob-nio/src/samples/java/com/azure/storage/blob/nio/ReadmeSamples.java +++ b/sdk/storage/azure-storage-blob-nio/src/samples/java/com/azure/storage/blob/nio/ReadmeSamples.java @@ -31,7 +31,7 @@ public class ReadmeSamples { private static final String CONTAINER_STORES = "container1,container2"; // A comma separated list of container names private static final StorageSharedKeyCredential SHARE_KEY_CREDENTIAL = new StorageSharedKeyCredential("", ""); - private static final Map CONFIG = new HashMap<>(){{ + private static final Map CONFIG = new HashMap(){{ put(AzureFileSystem.AZURE_STORAGE_SHARED_KEY_CREDENTIAL, SHARE_KEY_CREDENTIAL); put(AzureFileSystem.AZURE_STORAGE_FILE_STORES, CONTAINER_STORES); }}; From 399a0313a2a691e2ce15d9a03256ead3cfaadce6 Mon Sep 17 00:00:00 2001 From: Rick Ley Date: Fri, 25 Feb 2022 13:03:39 -0800 Subject: [PATCH 08/11] Ci fixes --- .../java/com/azure/storage/blob/nio/ReadmeSamples.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sdk/storage/azure-storage-blob-nio/src/samples/java/com/azure/storage/blob/nio/ReadmeSamples.java b/sdk/storage/azure-storage-blob-nio/src/samples/java/com/azure/storage/blob/nio/ReadmeSamples.java index c30100a15647c..6c8c5e06e0b31 100644 --- a/sdk/storage/azure-storage-blob-nio/src/samples/java/com/azure/storage/blob/nio/ReadmeSamples.java +++ b/sdk/storage/azure-storage-blob-nio/src/samples/java/com/azure/storage/blob/nio/ReadmeSamples.java @@ -31,10 +31,12 @@ public class ReadmeSamples { private static final String CONTAINER_STORES = "container1,container2"; // A comma separated list of container names private static final StorageSharedKeyCredential SHARE_KEY_CREDENTIAL = new StorageSharedKeyCredential("", ""); - private static final Map CONFIG = new HashMap(){{ - put(AzureFileSystem.AZURE_STORAGE_SHARED_KEY_CREDENTIAL, SHARE_KEY_CREDENTIAL); - put(AzureFileSystem.AZURE_STORAGE_FILE_STORES, CONTAINER_STORES); - }}; + private static final Map CONFIG = new HashMap() { + { + put(AzureFileSystem.AZURE_STORAGE_SHARED_KEY_CREDENTIAL, SHARE_KEY_CREDENTIAL); + put(AzureFileSystem.AZURE_STORAGE_FILE_STORES, CONTAINER_STORES); + } + }; private FileSystem myFs = FileSystems.newFileSystem(new URI("azb://?endpoint= Date: Wed, 2 Mar 2022 13:52:00 -0800 Subject: [PATCH 09/11] Pr feedback --- .../azure-storage-blob-nio/CHANGELOG.md | 1 + .../blob/nio/AzureBlobFileAttributes.java | 2 +- .../azure/storage/blob/nio/AzureResource.java | 20 ++++++++++++++++++- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/sdk/storage/azure-storage-blob-nio/CHANGELOG.md b/sdk/storage/azure-storage-blob-nio/CHANGELOG.md index 722dbc6cbcb1f..686b8b56c10e4 100644 --- a/sdk/storage/azure-storage-blob-nio/CHANGELOG.md +++ b/sdk/storage/azure-storage-blob-nio/CHANGELOG.md @@ -12,6 +12,7 @@ ### Bugs Fixed ### Other Changes +- Enabling support for Files.exists() to support virtual directories required supporting virtual directories in reading file attributes. This required introducing a perf hit in the way of an extra getProps request ## 12.0.0-beta.16 (2022-02-11) diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java index cfe764ff31af4..29bc22e86b82b 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java @@ -53,7 +53,7 @@ public final class AzureBlobFileAttributes implements BasicFileAttributes { try { props = resource.getBlobClient().getProperties(); } catch (BlobStorageException e) { - if (e.getStatusCode() == 404 && this.resource.checkDirectoryExists()) { + if (e.getStatusCode() == 404 && this.resource.checkVirtualDirectoryExists()) { this.isVirtualDirectory = true; this.properties = null; return; diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureResource.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureResource.java index d53cb370632df..3dfdc2392d6e9 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureResource.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureResource.java @@ -84,6 +84,15 @@ boolean checkDirectoryExists() throws IOException { return dirStatus.equals(DirectoryStatus.EMPTY) || dirStatus.equals(DirectoryStatus.NOT_EMPTY); } + /* + This method will check specifically whether there is a virtual directory at this location. It must be known before + that there is no file present at the destination. + */ + boolean checkVirtualDirectoryExists() throws IOException { + DirectoryStatus dirStatus = this.checkDirStatus(false); + return dirStatus.equals(DirectoryStatus.EMPTY); // Virtual directories cannot be empty + } + /** * This method will check if a directory is extant and/or empty and accommodates virtual directories. This method * will not check the status of root directories. @@ -92,7 +101,6 @@ DirectoryStatus checkDirStatus() throws IOException { if (this.blobClient == null) { throw LoggingUtility.logError(logger, new IllegalArgumentException("The blob client was null.")); } - BlobContainerClient containerClient = this.getContainerClient(); /* * Do a get properties first on the directory name. This will determine if it is concrete&&exists or is either @@ -114,6 +122,16 @@ DirectoryStatus checkDirStatus() throws IOException { return DirectoryStatus.NOT_A_DIRECTORY; } + return checkDirStatus(exists); + } + + /* + This method will determine the status of the directory given it is already known whether or not there is an object + at the target. + */ + DirectoryStatus checkDirStatus(boolean exists) throws IOException { + BlobContainerClient containerClient = this.getContainerClient(); + // List on the directory name + '/' so that we only get things under the directory if any ListBlobsOptions listOptions = new ListBlobsOptions().setMaxResultsPerPage(2) .setPrefix(this.blobClient.getBlobName() + AzureFileSystem.PATH_SEPARATOR) From 31670797c6443dcc35737b12c79395e2d8f905ad Mon Sep 17 00:00:00 2001 From: Rick Ley Date: Wed, 2 Mar 2022 15:19:48 -0800 Subject: [PATCH 10/11] woops --- .../src/main/java/com/azure/storage/blob/nio/AzureResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureResource.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureResource.java index 3dfdc2392d6e9..d15e922f6576a 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureResource.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureResource.java @@ -90,7 +90,7 @@ boolean checkDirectoryExists() throws IOException { */ boolean checkVirtualDirectoryExists() throws IOException { DirectoryStatus dirStatus = this.checkDirStatus(false); - return dirStatus.equals(DirectoryStatus.EMPTY); // Virtual directories cannot be empty + return dirStatus.equals(DirectoryStatus.NOT_EMPTY); // Virtual directories cannot be empty } /** From f621559c2dec1dd5c3d43df204a497a076020782 Mon Sep 17 00:00:00 2001 From: Rick Ley Date: Thu, 3 Mar 2022 11:10:48 -0800 Subject: [PATCH 11/11] Updated recording file --- .../CompositeTestFilesCreateDirs.json | 304 ++++++++---------- 1 file changed, 133 insertions(+), 171 deletions(-) diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesCreateDirs.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesCreateDirs.json index d9a2eebd535b0..4d74f9a61d224 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesCreateDirs.json +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestFilesCreateDirs.json @@ -1,11 +1,11 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc?restype=container", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "9c43646b-69d9-43dc-bdad-122e5308fa87" + "x-ms-client-request-id" : "243d871d-d2e0-4cd0-be4a-0a7282496b39" }, "Response" : { "content-length" : "225", @@ -14,41 +14,41 @@ "x-ms-error-code" : "ContainerNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "8d4c15ee-a01e-009b-6ee9-28d9ec000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:8d4c15ee-a01e-009b-6ee9-28d9ec000000\nTime:2022-02-23T19:12:10.2496023Z", - "x-ms-client-request-id" : "9c43646b-69d9-43dc-bdad-122e5308fa87", - "Date" : "Wed, 23 Feb 2022 19:12:10 GMT", + "x-ms-request-id" : "2a923056-201e-00ce-0432-2f329b000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:2a923056-201e-00ce-0432-2f329b000000\nTime:2022-03-03T19:09:47.0802373Z", + "x-ms-client-request-id" : "243d871d-d2e0-4cd0-be4a-0a7282496b39", + "Date" : "Thu, 03 Mar 2022 19:09:46 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc?restype=container", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "be517457-0643-4f3a-9732-e886a0989ad3" + "x-ms-client-request-id" : "0c0b3b14-b428-4509-b335-1f8db4575e52" }, "Response" : { "content-length" : "0", "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8D9F700644FE7DF", - "Last-Modified" : "Wed, 23 Feb 2022 19:12:10 GMT", + "eTag" : "0x8D9FD49623A930D", + "Last-Modified" : "Thu, 03 Mar 2022 19:09:47 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "8d4c163f-a01e-009b-3de9-28d9ec000000", - "x-ms-client-request-id" : "be517457-0643-4f3a-9732-e886a0989ad3", - "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" + "x-ms-request-id" : "2a923069-201e-00ce-1432-2f329b000000", + "x-ms-client-request-id" : "0c0b3b14-b428-4509-b335-1f8db4575e52", + "Date" : "Thu, 03 Mar 2022 19:09:46 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed622a14eed62d26433889469912600154f3eae6?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed622a14eed62893436286e6f9e8a3e334b4ab72?restype=container", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "c9faa80d-a04d-4bb0-82bb-532ae3d2bf9c" + "x-ms-client-request-id" : "e3dcc6cf-6723-4ded-a3ec-60cc77bc3e47" }, "Response" : { "content-length" : "225", @@ -57,41 +57,41 @@ "x-ms-error-code" : "ContainerNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "8d4c169e-a01e-009b-1ae9-28d9ec000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:8d4c169e-a01e-009b-1ae9-28d9ec000000\nTime:2022-02-23T19:12:10.6843596Z", - "x-ms-client-request-id" : "c9faa80d-a04d-4bb0-82bb-532ae3d2bf9c", - "Date" : "Wed, 23 Feb 2022 19:12:10 GMT", + "x-ms-request-id" : "2a923078-201e-00ce-2232-2f329b000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:2a923078-201e-00ce-2232-2f329b000000\nTime:2022-03-03T19:09:47.3360978Z", + "x-ms-client-request-id" : "e3dcc6cf-6723-4ded-a3ec-60cc77bc3e47", + "Date" : "Thu, 03 Mar 2022 19:09:46 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed622a14eed62d26433889469912600154f3eae6?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed622a14eed62893436286e6f9e8a3e334b4ab72?restype=container", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "25020a1a-1cc0-49fd-9f5c-26215d3117b9" + "x-ms-client-request-id" : "680a7ae2-0e64-4884-946d-2bcd59504268" }, "Response" : { "content-length" : "0", "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8D9F7006477B579", - "Last-Modified" : "Wed, 23 Feb 2022 19:12:10 GMT", + "eTag" : "0x8D9FD4962551C2E", + "Last-Modified" : "Thu, 03 Mar 2022 19:09:47 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "8d4c16b5-a01e-009b-2fe9-28d9ec000000", - "x-ms-client-request-id" : "25020a1a-1cc0-49fd-9f5c-26215d3117b9", - "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" + "x-ms-request-id" : "2a923083-201e-00ce-2b32-2f329b000000", + "x-ms-client-request-id" : "680a7ae2-0e64-4884-946d-2bcd59504268", + "Date" : "Thu, 03 Mar 2022 19:09:46 GMT" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc/mydir1%2Fmydir2", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "e987f205-78b2-4e93-988e-896809bc1191" + "x-ms-client-request-id" : "37a201a2-5ab8-47eb-9787-c0def243143f" }, "Response" : { "x-ms-version" : "2021-04-10", @@ -99,18 +99,18 @@ "x-ms-error-code" : "BlobNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "8d4c16cd-a01e-009b-46e9-28d9ec000000", - "x-ms-client-request-id" : "e987f205-78b2-4e93-988e-896809bc1191", - "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" + "x-ms-request-id" : "2a92308a-201e-00ce-3132-2f329b000000", + "x-ms-client-request-id" : "37a201a2-5ab8-47eb-9787-c0def243143f", + "Date" : "Thu, 03 Mar 2022 19:09:46 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container&comp=list&prefix=mydir1/mydir2/&delimiter=/&maxresults=2&include=metadata", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc?restype=container&comp=list&prefix=mydir1/mydir2/&delimiter=/&maxresults=2&include=metadata", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "ffc76b9b-de39-4816-af8e-9af18eea1e8a" + "x-ms-client-request-id" : "9b898033-a569-4212-8efe-092ca01a6370" }, "Response" : { "Transfer-Encoding" : "chunked", @@ -118,20 +118,20 @@ "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "x-ms-request-id" : "8d4c16db-a01e-009b-54e9-28d9ec000000", - "Body" : "mydir1/mydir2/2/", - "x-ms-client-request-id" : "ffc76b9b-de39-4816-af8e-9af18eea1e8a", - "Date" : "Wed, 23 Feb 2022 19:12:10 GMT", + "x-ms-request-id" : "2a923094-201e-00ce-3b32-2f329b000000", + "Body" : "mydir1/mydir2/2/", + "x-ms-client-request-id" : "9b898033-a569-4212-8efe-092ca01a6370", + "Date" : "Thu, 03 Mar 2022 19:09:46 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc/mydir1%2Fmydir2", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "862f435b-5c60-4ced-8f4d-9ce599e70368" + "x-ms-client-request-id" : "8e2f920d-05a2-4042-8cff-303aa04548ee" }, "Response" : { "x-ms-version" : "2021-04-10", @@ -139,37 +139,18 @@ "x-ms-error-code" : "BlobNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "8d4c16e9-a01e-009b-62e9-28d9ec000000", - "x-ms-client-request-id" : "862f435b-5c60-4ced-8f4d-9ce599e70368", - "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "bc9fc0a4-3a5a-4ed1-a0fe-0eaf1e3b5af2" - }, - "Response" : { - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "BlobNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "8d4c16f2-a01e-009b-6be9-28d9ec000000", - "x-ms-client-request-id" : "bc9fc0a4-3a5a-4ed1-a0fe-0eaf1e3b5af2", - "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" + "x-ms-request-id" : "2a9230a1-201e-00ce-4832-2f329b000000", + "x-ms-client-request-id" : "8e2f920d-05a2-4042-8cff-303aa04548ee", + "Date" : "Thu, 03 Mar 2022 19:09:46 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container&comp=list&prefix=mydir1/mydir2/&delimiter=/&maxresults=2&include=metadata", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc?restype=container&comp=list&prefix=mydir1/mydir2/&delimiter=/&maxresults=2&include=metadata", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "b1bd4ecc-e68a-41de-a01f-c838a047baf6" + "x-ms-client-request-id" : "f783b55d-1377-4fa9-9b6a-07fdd30fc993" }, "Response" : { "Transfer-Encoding" : "chunked", @@ -177,39 +158,20 @@ "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "x-ms-request-id" : "8d4c16fc-a01e-009b-75e9-28d9ec000000", - "Body" : "mydir1/mydir2/2/", - "x-ms-client-request-id" : "b1bd4ecc-e68a-41de-a01f-c838a047baf6", - "Date" : "Wed, 23 Feb 2022 19:12:10 GMT", + "x-ms-request-id" : "2a9230ad-201e-00ce-5432-2f329b000000", + "Body" : "mydir1/mydir2/2/", + "x-ms-client-request-id" : "f783b55d-1377-4fa9-9b6a-07fdd30fc993", + "Date" : "Thu, 03 Mar 2022 19:09:46 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "168103f6-fb49-45c0-8e1d-0f219de88b54" - }, - "Response" : { - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "BlobNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "8d4c170a-a01e-009b-01e9-28d9ec000000", - "x-ms-client-request-id" : "168103f6-fb49-45c0-8e1d-0f219de88b54", - "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc/mydir1", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "c90faf36-1d80-4141-aaac-c1d249b4f86a" + "x-ms-client-request-id" : "d306ebd6-aceb-4753-af81-65e5f61e1c81" }, "Response" : { "x-ms-version" : "2021-04-10", @@ -217,18 +179,18 @@ "x-ms-error-code" : "BlobNotFound", "retry-after" : "0", "StatusCode" : "404", - "x-ms-request-id" : "8d4c1712-a01e-009b-09e9-28d9ec000000", - "x-ms-client-request-id" : "c90faf36-1d80-4141-aaac-c1d249b4f86a", - "Date" : "Wed, 23 Feb 2022 19:12:10 GMT" + "x-ms-request-id" : "2a9230b0-201e-00ce-5732-2f329b000000", + "x-ms-client-request-id" : "d306ebd6-aceb-4753-af81-65e5f61e1c81", + "Date" : "Thu, 03 Mar 2022 19:09:46 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container&comp=list&prefix=mydir1/&delimiter=/&maxresults=2&include=metadata", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc?restype=container&comp=list&prefix=mydir1/&delimiter=/&maxresults=2&include=metadata", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "d4427a67-95e8-41a7-be8c-b09b455b5705" + "x-ms-client-request-id" : "7b214117-9163-420a-87d2-5c8f0e465929" }, "Response" : { "Transfer-Encoding" : "chunked", @@ -236,20 +198,20 @@ "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "x-ms-request-id" : "8d4c1715-a01e-009b-0ce9-28d9ec000000", - "Body" : "mydir1/2/", - "x-ms-client-request-id" : "d4427a67-95e8-41a7-be8c-b09b455b5705", - "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", + "x-ms-request-id" : "2a9230b5-201e-00ce-5a32-2f329b000000", + "Body" : "mydir1/2/", + "x-ms-client-request-id" : "7b214117-9163-420a-87d2-5c8f0e465929", + "Date" : "Thu, 03 Mar 2022 19:09:46 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1?comp=blocklist", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc/mydir1?comp=blocklist", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "651379e0-a938-4656-a112-7feda6efe536", + "x-ms-client-request-id" : "b4df0621-9566-4dd2-9fbc-e987c2d615a7", "Content-Type" : "application/xml" }, "Response" : { @@ -257,23 +219,23 @@ "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-content-crc64" : "p1vsGtjjPsk=", - "eTag" : "0x8D9F70064BCB570", - "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", + "eTag" : "0x8D9FD4962AE2B7A", + "Last-Modified" : "Thu, 03 Mar 2022 19:09:47 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "8d4c171e-a01e-009b-15e9-28d9ec000000", + "x-ms-request-id" : "2a9230c4-201e-00ce-6932-2f329b000000", "x-ms-request-server-encrypted" : "true", - "x-ms-client-request-id" : "651379e0-a938-4656-a112-7feda6efe536", - "Date" : "Wed, 23 Feb 2022 19:12:11 GMT" + "x-ms-client-request-id" : "b4df0621-9566-4dd2-9fbc-e987c2d615a7", + "Date" : "Thu, 03 Mar 2022 19:09:47 GMT" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc/mydir1", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "79a1514b-f899-4c89-9931-0c2b9d817f02" + "x-ms-client-request-id" : "f9a80d89-8941-46e3-8e64-df9d2c39ed3e" }, "Response" : { "content-length" : "0", @@ -281,30 +243,30 @@ "x-ms-lease-status" : "unlocked", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-lease-state" : "available", - "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", + "Last-Modified" : "Thu, 03 Mar 2022 19:09:47 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", + "Date" : "Thu, 03 Mar 2022 19:09:47 GMT", "x-ms-blob-type" : "BlockBlob", "Accept-Ranges" : "bytes", "x-ms-server-encrypted" : "true", "x-ms-meta-hdi_isfolder" : "true", "x-ms-access-tier-inferred" : "true", "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Wed, 23 Feb 2022 19:12:11 GMT", - "eTag" : "0x8D9F70064BCB570", - "x-ms-request-id" : "8d4c172e-a01e-009b-23e9-28d9ec000000", - "x-ms-client-request-id" : "79a1514b-f899-4c89-9931-0c2b9d817f02", + "x-ms-creation-time" : "Thu, 03 Mar 2022 19:09:47 GMT", + "eTag" : "0x8D9FD4962AE2B7A", + "x-ms-request-id" : "2a9230c9-201e-00ce-6e32-2f329b000000", + "x-ms-client-request-id" : "f9a80d89-8941-46e3-8e64-df9d2c39ed3e", "Content-Type" : "application/octet-stream" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container&comp=list&prefix=mydir1/&delimiter=/&maxresults=2&include=metadata", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc?restype=container&comp=list&prefix=mydir1/&delimiter=/&maxresults=2&include=metadata", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "16e2b4d9-7f5c-47cd-b3f3-dcaa5eb52792" + "x-ms-client-request-id" : "235ff540-2204-41b8-aaf1-e5380870ee1a" }, "Response" : { "Transfer-Encoding" : "chunked", @@ -312,20 +274,20 @@ "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "x-ms-request-id" : "8d4c173b-a01e-009b-30e9-28d9ec000000", - "Body" : "mydir1/2/", - "x-ms-client-request-id" : "16e2b4d9-7f5c-47cd-b3f3-dcaa5eb52792", - "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", + "x-ms-request-id" : "2a9230d4-201e-00ce-7932-2f329b000000", + "Body" : "mydir1/2/", + "x-ms-client-request-id" : "235ff540-2204-41b8-aaf1-e5380870ee1a", + "Date" : "Thu, 03 Mar 2022 19:09:47 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2?comp=blocklist", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc/mydir1%2Fmydir2?comp=blocklist", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "52f50372-6b9c-4e83-b7ae-12f3b04a0b5a", + "x-ms-client-request-id" : "4108ea37-f754-4203-bc85-2613b7a3b04e", "Content-Type" : "application/xml" }, "Response" : { @@ -333,23 +295,23 @@ "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-content-crc64" : "p1vsGtjjPsk=", - "eTag" : "0x8D9F70064CF5065", - "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", + "eTag" : "0x8D9FD4962C8DB75", + "Last-Modified" : "Thu, 03 Mar 2022 19:09:48 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "8d4c1743-a01e-009b-38e9-28d9ec000000", + "x-ms-request-id" : "2a9230d8-201e-00ce-7d32-2f329b000000", "x-ms-request-server-encrypted" : "true", - "x-ms-client-request-id" : "52f50372-6b9c-4e83-b7ae-12f3b04a0b5a", - "Date" : "Wed, 23 Feb 2022 19:12:11 GMT" + "x-ms-client-request-id" : "4108ea37-f754-4203-bc85-2613b7a3b04e", + "Date" : "Thu, 03 Mar 2022 19:09:47 GMT" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc/mydir1%2Fmydir2", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "51aa409c-9cd1-4206-b19b-0114eb7660e6" + "x-ms-client-request-id" : "599ca03c-8933-4501-8992-cabc29b01b8b" }, "Response" : { "content-length" : "0", @@ -357,30 +319,30 @@ "x-ms-lease-status" : "unlocked", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-lease-state" : "available", - "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", + "Last-Modified" : "Thu, 03 Mar 2022 19:09:48 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", + "Date" : "Thu, 03 Mar 2022 19:09:47 GMT", "x-ms-blob-type" : "BlockBlob", "Accept-Ranges" : "bytes", "x-ms-server-encrypted" : "true", "x-ms-meta-hdi_isfolder" : "true", "x-ms-access-tier-inferred" : "true", "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Wed, 23 Feb 2022 19:12:11 GMT", - "eTag" : "0x8D9F70064CF5065", - "x-ms-request-id" : "8d4c174e-a01e-009b-43e9-28d9ec000000", - "x-ms-client-request-id" : "51aa409c-9cd1-4206-b19b-0114eb7660e6", + "x-ms-creation-time" : "Thu, 03 Mar 2022 19:09:48 GMT", + "eTag" : "0x8D9FD4962C8DB75", + "x-ms-request-id" : "2a9230e0-201e-00ce-0532-2f329b000000", + "x-ms-client-request-id" : "599ca03c-8933-4501-8992-cabc29b01b8b", "Content-Type" : "application/octet-stream" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5?restype=container&comp=list&prefix=mydir1/mydir2/&delimiter=/&maxresults=2&include=metadata", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc?restype=container&comp=list&prefix=mydir1/mydir2/&delimiter=/&maxresults=2&include=metadata", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "fbee0da6-03bd-401a-b06a-1e997d791945" + "x-ms-client-request-id" : "dc8cb7d7-4d33-4b2c-b13d-e3b94bb15ce7" }, "Response" : { "Transfer-Encoding" : "chunked", @@ -388,20 +350,20 @@ "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "x-ms-request-id" : "8d4c1755-a01e-009b-4ae9-28d9ec000000", - "Body" : "mydir1/mydir2/2/", - "x-ms-client-request-id" : "fbee0da6-03bd-401a-b06a-1e997d791945", - "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", + "x-ms-request-id" : "2a9230e7-201e-00ce-0c32-2f329b000000", + "Body" : "mydir1/mydir2/2/", + "x-ms-client-request-id" : "dc8cb7d7-4d33-4b2c-b13d-e3b94bb15ce7", + "Date" : "Thu, 03 Mar 2022 19:09:47 GMT", "Content-Type" : "application/xml" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2%2Fmydir3?comp=blocklist", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc/mydir1%2Fmydir2%2Fmydir3?comp=blocklist", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "6e554da4-6779-493a-934a-dbba29fc9bdd", + "x-ms-client-request-id" : "998d1b01-7960-4fa1-8bf3-b2a25026dd77", "Content-Type" : "application/xml" }, "Response" : { @@ -409,23 +371,23 @@ "x-ms-version" : "2021-04-10", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-content-crc64" : "p1vsGtjjPsk=", - "eTag" : "0x8D9F70064E1EB54", - "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", + "eTag" : "0x8D9FD4962DE8319", + "Last-Modified" : "Thu, 03 Mar 2022 19:09:48 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "8d4c1773-a01e-009b-5ae9-28d9ec000000", + "x-ms-request-id" : "2a9230ee-201e-00ce-1332-2f329b000000", "x-ms-request-server-encrypted" : "true", - "x-ms-client-request-id" : "6e554da4-6779-493a-934a-dbba29fc9bdd", - "Date" : "Wed, 23 Feb 2022 19:12:11 GMT" + "x-ms-client-request-id" : "998d1b01-7960-4fa1-8bf3-b2a25026dd77", + "Date" : "Thu, 03 Mar 2022 19:09:47 GMT" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc/mydir1", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "81da9a00-f8b2-4fa1-a668-4657c5ecc856" + "x-ms-client-request-id" : "ed9a8dac-003a-438c-bc4e-b3f4e8c684e3" }, "Response" : { "content-length" : "0", @@ -433,30 +395,30 @@ "x-ms-lease-status" : "unlocked", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-lease-state" : "available", - "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", + "Last-Modified" : "Thu, 03 Mar 2022 19:09:47 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", + "Date" : "Thu, 03 Mar 2022 19:09:47 GMT", "x-ms-blob-type" : "BlockBlob", "Accept-Ranges" : "bytes", "x-ms-server-encrypted" : "true", "x-ms-meta-hdi_isfolder" : "true", "x-ms-access-tier-inferred" : "true", "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Wed, 23 Feb 2022 19:12:11 GMT", - "eTag" : "0x8D9F70064BCB570", - "x-ms-request-id" : "8d4c1779-a01e-009b-60e9-28d9ec000000", - "x-ms-client-request-id" : "81da9a00-f8b2-4fa1-a668-4657c5ecc856", + "x-ms-creation-time" : "Thu, 03 Mar 2022 19:09:47 GMT", + "eTag" : "0x8D9FD4962AE2B7A", + "x-ms-request-id" : "2a9230f2-201e-00ce-1732-2f329b000000", + "x-ms-client-request-id" : "ed9a8dac-003a-438c-bc4e-b3f4e8c684e3", "Content-Type" : "application/octet-stream" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc/mydir1%2Fmydir2", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "850c351f-d403-4cf3-a6d9-df841510a163" + "x-ms-client-request-id" : "dc16a877-126b-451b-ac06-d81f3eea9d3a" }, "Response" : { "content-length" : "0", @@ -464,30 +426,30 @@ "x-ms-lease-status" : "unlocked", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-lease-state" : "available", - "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", + "Last-Modified" : "Thu, 03 Mar 2022 19:09:48 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", + "Date" : "Thu, 03 Mar 2022 19:09:47 GMT", "x-ms-blob-type" : "BlockBlob", "Accept-Ranges" : "bytes", "x-ms-server-encrypted" : "true", "x-ms-meta-hdi_isfolder" : "true", "x-ms-access-tier-inferred" : "true", "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Wed, 23 Feb 2022 19:12:11 GMT", - "eTag" : "0x8D9F70064CF5065", - "x-ms-request-id" : "8d4c1780-a01e-009b-67e9-28d9ec000000", - "x-ms-client-request-id" : "850c351f-d403-4cf3-a6d9-df841510a163", + "x-ms-creation-time" : "Thu, 03 Mar 2022 19:09:48 GMT", + "eTag" : "0x8D9FD4962C8DB75", + "x-ms-request-id" : "2a9230fb-201e-00ce-1f32-2f329b000000", + "x-ms-client-request-id" : "dc16a877-126b-451b-ac06-d81f3eea9d3a", "Content-Type" : "application/octet-stream" }, "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed62d2635782421892ba31134b458a5/mydir1%2Fmydir2%2Fmydir3", + "Uri" : "https://REDACTED.blob.core.windows.net/a14eed621a14eed628935428048ab2ca0099144cdbcc/mydir1%2Fmydir2%2Fmydir3", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-blob/12.15.0-beta.4 azsdk-java-azure-storage-blob-nio/12.0.0-beta.17 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "e1054cf4-4d12-45fc-a5a8-47f1b032cc7f" + "x-ms-client-request-id" : "95c23258-0e61-47b3-bdbc-d51adbf1cff0" }, "Response" : { "content-length" : "0", @@ -495,23 +457,23 @@ "x-ms-lease-status" : "unlocked", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "x-ms-lease-state" : "available", - "Last-Modified" : "Wed, 23 Feb 2022 19:12:11 GMT", + "Last-Modified" : "Thu, 03 Mar 2022 19:09:48 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Wed, 23 Feb 2022 19:12:11 GMT", + "Date" : "Thu, 03 Mar 2022 19:09:47 GMT", "x-ms-blob-type" : "BlockBlob", "Accept-Ranges" : "bytes", "x-ms-server-encrypted" : "true", "x-ms-meta-hdi_isfolder" : "true", "x-ms-access-tier-inferred" : "true", "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Wed, 23 Feb 2022 19:12:11 GMT", - "eTag" : "0x8D9F70064E1EB54", - "x-ms-request-id" : "8d4c1783-a01e-009b-6ae9-28d9ec000000", - "x-ms-client-request-id" : "e1054cf4-4d12-45fc-a5a8-47f1b032cc7f", + "x-ms-creation-time" : "Thu, 03 Mar 2022 19:09:48 GMT", + "eTag" : "0x8D9FD4962DE8319", + "x-ms-request-id" : "2a9230ff-201e-00ce-2332-2f329b000000", + "x-ms-client-request-id" : "95c23258-0e61-47b3-bdbc-d51adbf1cff0", "Content-Type" : "application/octet-stream" }, "Exception" : null } ], - "variables" : [ "a14eed620a14eed62d26290758be6923c1d3f4727862", "a14eed621a14eed62d2635782421892ba31134b458a5", "a14eed622a14eed62d26433889469912600154f3eae6" ] + "variables" : [ "a14eed620a14eed628932512711ca9fdb443646ecb9f", "a14eed621a14eed628935428048ab2ca0099144cdbcc", "a14eed622a14eed62893436286e6f9e8a3e334b4ab72" ] } \ No newline at end of file