diff --git a/sdk/storage/azure-storage-blob-nio/CHANGELOG.md b/sdk/storage/azure-storage-blob-nio/CHANGELOG.md index 5d2d2d45dc8d..3dc8d3862dce 100644 --- a/sdk/storage/azure-storage-blob-nio/CHANGELOG.md +++ b/sdk/storage/azure-storage-blob-nio/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 12.0.0-beta.3 (Unreleased) +- Added support for FileSystemProvider.checkAccess method - Added support for file key on AzureBasicFileAttributes and AzureBlobFileAttributes ## 12.0.0-beta.2 (2020-08-13) diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributeView.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributeView.java index 6a37b89f07ff..b5ab3d94e6b7 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributeView.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributeView.java @@ -3,6 +3,8 @@ package com.azure.storage.blob.nio; +import com.azure.core.util.logging.ClientLogger; + import java.io.IOException; import java.nio.file.Path; import java.nio.file.attribute.BasicFileAttributeView; @@ -18,6 +20,7 @@ * {@link #setTimes(FileTime, FileTime, FileTime)} is not supported. */ public final class AzureBasicFileAttributeView implements BasicFileAttributeView { + private final ClientLogger logger = new ClientLogger(AzureBasicFileAttributeView.class); static final String NAME = "azureBasic"; @@ -61,6 +64,6 @@ public AzureBasicFileAttributes readAttributes() throws IOException { */ @Override public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException { - throw new UnsupportedOperationException(); + throw LoggingUtility.logError(logger, new UnsupportedOperationException()); } } diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributeView.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributeView.java index 9ac60153ec56..dbf7602e0322 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributeView.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributeView.java @@ -152,6 +152,6 @@ public void setTier(AccessTier tier) throws IOException { */ @Override public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException { - throw new UnsupportedOperationException(); + throw LoggingUtility.logError(logger, new UnsupportedOperationException()); } } diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureDirectoryStream.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureDirectoryStream.java index ba3aa96c5fbd..e598212f5389 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureDirectoryStream.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureDirectoryStream.java @@ -148,7 +148,7 @@ public Path next() { @Override public void remove() { - throw new UnsupportedOperationException(); + throw LoggingUtility.logError(logger, new UnsupportedOperationException()); } private Path getNextListResult(BlobItem blobItem) { diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileStore.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileStore.java index 8495b7d334d1..92a811e8a633 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileStore.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileStore.java @@ -181,7 +181,8 @@ public V getFileStoreAttributeView(Class a */ @Override public Object getAttribute(String s) throws IOException { - throw new UnsupportedOperationException("FileStoreAttributeViews aren't supported."); + throw LoggingUtility.logError(logger, new UnsupportedOperationException("FileStoreAttributeViews aren't" + + " supported.")); } BlobContainerClient getContainerClient() { diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystem.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystem.java index 6e661d75ec75..10904223c56c 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystem.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystem.java @@ -178,7 +178,7 @@ public final class AzureFileSystem extends FileSystem { this.fileStores = this.initializeFileStores(config); } catch (RuntimeException e) { throw LoggingUtility.logError(logger, new IllegalArgumentException("There was an error parsing the " - + "configurations map. Please ensure all fields are set to a legal value of the correct type.")); + + "configurations map. Please ensure all fields are set to a legal value of the correct type.", e)); } catch (IOException e) { throw LoggingUtility.logError(logger, new IOException("Initializing FileStores failed. FileSystem could not be opened.", e)); 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 eb0b06cd952f..6e2743a591b1 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 @@ -21,6 +21,7 @@ import java.net.HttpURLConnection; import java.net.URI; import java.nio.channels.SeekableByteChannel; +import java.nio.file.AccessDeniedException; import java.nio.file.AccessMode; import java.nio.file.CopyOption; import java.nio.file.DirectoryNotEmptyException; @@ -268,7 +269,7 @@ public Path getPath(URI uri) { @Override public SeekableByteChannel newByteChannel(Path path, Set set, FileAttribute... fileAttributes) throws IOException { - throw new UnsupportedOperationException(); + throw LoggingUtility.logError(logger, new UnsupportedOperationException()); } /** @@ -366,14 +367,16 @@ public OutputStream newOutputStream(Path path, OpenOption... options) throws IOE StandardOpenOption.TRUNCATE_EXISTING); for (OpenOption option : optionsList) { if (!supportedOptions.contains(option)) { - throw new UnsupportedOperationException("Unsupported option: " + option.toString()); + throw LoggingUtility.logError(logger, new UnsupportedOperationException("Unsupported option: " + + option.toString())); } } // Write and truncate must be specified if (!optionsList.contains(StandardOpenOption.WRITE) || !optionsList.contains(StandardOpenOption.TRUNCATE_EXISTING)) { - throw new IllegalArgumentException("Write and TruncateExisting must be specified to open an OutputStream"); + throw LoggingUtility.logError(logger, + new IllegalArgumentException("Write and TruncateExisting must be specified to open an OutputStream")); } AzureResource resource = new AzureResource(path); @@ -742,7 +745,7 @@ public void copy(Path source, Path destination, CopyOption... copyOptions) throw */ @Override public void move(Path path, Path path1, CopyOption... copyOptions) throws IOException { - throw new UnsupportedOperationException(); + throw LoggingUtility.logError(logger, new UnsupportedOperationException()); } /** @@ -754,7 +757,7 @@ public void move(Path path, Path path1, CopyOption... copyOptions) throws IOExce */ @Override public boolean isSameFile(Path path, Path path1) throws IOException { - throw new UnsupportedOperationException(); + throw LoggingUtility.logError(logger, new UnsupportedOperationException()); } /** @@ -781,15 +784,18 @@ public boolean isHidden(Path path) throws IOException { */ @Override public FileStore getFileStore(Path path) throws IOException { - throw new UnsupportedOperationException(); + throw LoggingUtility.logError(logger, new UnsupportedOperationException()); } /** - * Unsupported. + * Checks the existence, and optionally the accessibility, of a file. + *

+ * This method may only be used to check the existence of a file. It is not possible to determine the permissions + * granted to a given client, so if any mode argument is specified, an {@link UnsupportedOperationException} will be + * thrown. * - * @param path path - * @param accessModes accessMode - * @throws UnsupportedOperationException Operation is not supported. + * @param path the path to the file to check + * @param accessModes The access modes to check; may have zero elements * @throws NoSuchFileException if a file does not exist * @throws java.nio.file.AccessDeniedException the requested access would be denied or the access cannot be * determined because the Java virtual machine has insufficient privileges or other reasons @@ -798,7 +804,32 @@ public FileStore getFileStore(Path path) throws IOException { */ @Override public void checkAccess(Path path, AccessMode... accessModes) throws IOException { - throw new UnsupportedOperationException(); + if (accessModes != null && accessModes.length != 0) { + throw LoggingUtility.logError(logger, new AccessDeniedException("The access cannot be determined.")); + } + AzurePath.ensureFileSystemOpen(path); + + /* + Some static utility methods in the jdk require checking access on a root. ReadAttributes is not supported on + roots as they are containers. Furthermore, we always assume that roots exist as they are verified at creation + and cannot be deleted by the file system. Thus, we prefer a short circuit for roots. + */ + if (path instanceof AzurePath && ((AzurePath) path).isRoot()) { + return; + } + + // Read attributes already wraps BlobStorageException in an IOException. + try { + readAttributes(path, BasicFileAttributes.class); + } catch (IOException e) { + Throwable cause = e.getCause(); + if (cause instanceof BlobStorageException + && BlobErrorCode.BLOB_NOT_FOUND.equals(((BlobStorageException) cause).getErrorCode())) { + throw LoggingUtility.logError(logger, new NoSuchFileException(path.toString())); + } else { + throw LoggingUtility.logError(logger, e); + } + } } /** @@ -858,7 +889,7 @@ public A readAttributes(Path path, Class type } else if (type == AzureBlobFileAttributes.class) { view = AzureBlobFileAttributeView.class; } else { - throw new UnsupportedOperationException(); + throw LoggingUtility.logError(logger, new UnsupportedOperationException()); } /* diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzurePath.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzurePath.java index 7d4b204f82c8..8ed728ae6735 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzurePath.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzurePath.java @@ -727,7 +727,8 @@ BlobClient toBlobClient() throws IOException { String blobName = this.withoutRoot(); if (blobName.isEmpty()) { - throw new IOException("Cannot get a blob client to a path that only contains the root or is an empty path"); + throw LoggingUtility.logError(logger, new IOException("Cannot get a blob client to a path that only " + + "contains the root or is an empty path")); } return containerClient.getBlobClient(blobName); diff --git a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/APISpec.groovy b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/APISpec.groovy index b823ff1a0b21..4206b3b402c7 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/APISpec.groovy +++ b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/APISpec.groovy @@ -159,7 +159,7 @@ class APISpec extends Specification { interceptorManager.close() } - + static Mono collectBytesInBuffer(Flux content) { return FluxUtil.collectBytesInByteBufferStream(content).map { bytes -> ByteBuffer.wrap(bytes) } } @@ -372,13 +372,17 @@ class APISpec extends Specification { } } - Map initializeConfigMap() { + Map initializeConfigMap(HttpPipelinePolicy... policies) { def config = [:] config[AzureFileSystem.AZURE_STORAGE_HTTP_CLIENT] = getHttpClient() + def policyList = [] + for (HttpPipelinePolicy policy : policies) { + policyList.push(policy) + } if (testMode == TestMode.RECORD) { - config[AzureFileSystem.AZURE_STORAGE_HTTP_POLICIES] = - [interceptorManager.getRecordPolicy()] as HttpPipelinePolicy[] + policyList.push(interceptorManager.getRecordPolicy()) } + config[AzureFileSystem.AZURE_STORAGE_HTTP_POLICIES] = policyList as HttpPipelinePolicy[] config[AzureFileSystem.AZURE_STORAGE_USE_HTTPS] = defaultEndpointTemplate.startsWith("https") return config as Map } 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 4c8908edb900..6281198abadd 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 @@ -3,15 +3,28 @@ package com.azure.storage.blob.nio +import com.azure.core.http.HttpHeaders +import com.azure.core.http.HttpMethod +import com.azure.core.http.HttpPipelineCallContext +import com.azure.core.http.HttpPipelineNextPolicy +import com.azure.core.http.HttpRequest +import com.azure.core.http.HttpResponse +import com.azure.core.http.policy.HttpPipelinePolicy import com.azure.storage.blob.BlobClient import com.azure.storage.blob.models.AccessTier +import com.azure.storage.blob.models.BlobErrorCode import com.azure.storage.blob.models.BlobHttpHeaders import com.azure.storage.blob.specialized.AppendBlobClient import com.azure.storage.blob.specialized.BlockBlobClient +import reactor.core.publisher.Flux +import reactor.core.publisher.Mono import spock.lang.Requires import spock.lang.Unroll import java.nio.ByteBuffer +import java.nio.charset.Charset +import java.nio.file.AccessDeniedException +import java.nio.file.AccessMode import java.nio.file.DirectoryNotEmptyException import java.nio.file.FileAlreadyExistsException import java.nio.file.FileSystem @@ -1058,6 +1071,152 @@ class AzureFileSystemProviderTest extends APISpec { thrown(IOException) } + def "CheckAccess"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + def os = fs.provider().newOutputStream(path) + os.close() + + when: + fs.provider().checkAccess(path) + + then: + notThrown(Exception) + } + + def "CheckAccess root"() { + setup: + def fs = createFS(config) + def path = fs.getPath(getDefaultDir(fs)) + + when: + fs.provider().checkAccess(path) + + then: + notThrown(Exception) + } + + @Unroll + def "CheckAccess AccessDenied"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + def os = fs.provider().newOutputStream(path) + os.close() + + when: + fs.provider().checkAccess(path, mode) + + then: + thrown(AccessDeniedException) + + where: + mode | _ + AccessMode.READ | _ + AccessMode.WRITE | _ + AccessMode.EXECUTE | _ + } + + def "CheckAccess IOException"() { + setup: + config = initializeConfigMap(new CheckAccessIoExceptionPolicy()) + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + def os = fs.provider().newOutputStream(path) + os.close() + + when: + fs.provider().checkAccess(path) + + then: + def e = thrown(IOException) + !(e instanceof NoSuchFileException) + } + + class CheckAccessIoExceptionPolicy implements HttpPipelinePolicy { + @Override + Mono process(HttpPipelineCallContext httpPipelineCallContext, HttpPipelineNextPolicy httpPipelineNextPolicy) { + HttpRequest request = httpPipelineCallContext.getHttpRequest() + // GetProperties call to blob + if (request.getUrl().getPath().split("/").size() == 3 && request.getHttpMethod() == (HttpMethod.HEAD)) { + return Mono.just(new checkAccessIoExceptionResponse(request)) + } else { + return httpPipelineNextPolicy.process() + } + } + } + + class checkAccessIoExceptionResponse extends HttpResponse { + protected checkAccessIoExceptionResponse(HttpRequest request) { + super(request) + } + + @Override + int getStatusCode() { + return 403 + } + + @Override + String getHeaderValue(String s) { + return request.getHeaders().getValue(s) + } + + @Override + HttpHeaders getHeaders() { + HttpHeaders headers = new HttpHeaders(); + headers.put("x-ms-error-code", BlobErrorCode.AUTHORIZATION_FAILURE.toString()) + return headers + } + + @Override + Flux getBody() { + return Flux.just(ByteBuffer.allocate(0)) + } + + @Override + Mono getBodyAsByteArray() { + return Mono.just(new byte[0]) + } + + @Override + Mono getBodyAsString() { + return Mono.just("") + } + + @Override + Mono getBodyAsString(Charset charset) { + return Mono.just("") + } + } + + def "CheckAccess no file"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + + when: + fs.provider().checkAccess(path) + + then: + thrown(NoSuchFileException) + } + + def "CheckAccess fs closed"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + def os = fs.provider().newOutputStream(path) + os.close() + + when: + fs.close() + fs.provider().checkAccess(path) + + then: + thrown(IOException) + } + @Unroll def "GetAttributeView"() { setup: 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 new file mode 100644 index 000000000000..f9c0e84d6224 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/CompositeTest.groovy @@ -0,0 +1,30 @@ +package com.azure.storage.blob.nio + +import java.nio.file.Files + +/** + * This test class is for testing static helper methods provided by the JDK. Customers often rely on these methods + * rather than using the file system or provider methods directly, so if a customer reports a scenario leverages one of + * these methods and we need to add support for it, we should capture that here. + */ +class CompositeTest extends APISpec { + def config = new HashMap() + + def setup() { + config = initializeConfigMap() + } + + def "Files createDirs"() { + setup: + def fs = createFS(config) + + when: + def dirs = fs.getPath('mydir1/mydir2/mydir3') + Files.createDirectories(dirs) + + then: + Files.isDirectory(fs.getPath('mydir1')) + Files.isDirectory(fs.getPath('mydir1/mydir2')) + Files.isDirectory(fs.getPath('mydir1/mydir2/mydir3')) + } +} diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccess.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccess.json new file mode 100644 index 000000000000..7335aefd66ff --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccess.json @@ -0,0 +1,239 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccess1azurefilesystemprovidertestcheckaccess682465645?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a094191d-e83e-4afa-9b08-63808d7a57df" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 11 Dec 2020 21:26:05 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "bc43f829-801e-00a1-7e04-d02d5c000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:bc43f829-801e-00a1-7e04-d02d5c000000\nTime:2020-12-11T21:26:06.8236674Z", + "x-ms-client-request-id" : "a094191d-e83e-4afa-9b08-63808d7a57df", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccess1azurefilesystemprovidertestcheckaccess682465645?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c833f073-de9b-429c-aa37-5b08dd1526a7" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D89E1B5F441F2B", + "Last-Modified" : "Fri, 11 Dec 2020 21:26:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "bc43f85a-801e-00a1-2804-d02d5c000000", + "Date" : "Fri, 11 Dec 2020 21:26:06 GMT", + "x-ms-client-request-id" : "c833f073-de9b-429c-aa37-5b08dd1526a7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccess2azurefilesystemprovidertestcheckaccess682845437?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5098aa07-7575-4cd7-9dc3-93fb5b46eec1" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 11 Dec 2020 21:26:06 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "bc43f869-801e-00a1-3304-d02d5c000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:bc43f869-801e-00a1-3304-d02d5c000000\nTime:2020-12-11T21:26:07.4993058Z", + "x-ms-client-request-id" : "5098aa07-7575-4cd7-9dc3-93fb5b46eec1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccess2azurefilesystemprovidertestcheckaccess682845437?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3b3ecf9c-99c3-4b23-9367-ad910fc57bba" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D89E1B5F7ACCC6", + "Last-Modified" : "Fri, 11 Dec 2020 21:26:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "bc43f872-801e-00a1-3904-d02d5c000000", + "Date" : "Fri, 11 Dec 2020 21:26:06 GMT", + "x-ms-client-request-id" : "3b3ecf9c-99c3-4b23-9367-ad910fc57bba" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccess1azurefilesystemprovidertestcheckaccess682465645?prefix=javablobcheckaccess3214002e593a777cee4e03a1f&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "93f6cd2c-8eee-48d2-827e-d4e2e658fd1d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "bc43f879-801e-00a1-3f04-d02d5c000000", + "Body" : "javablobcheckaccess3214002e593a777cee4e03a1f2/", + "Date" : "Fri, 11 Dec 2020 21:26:06 GMT", + "x-ms-client-request-id" : "93f6cd2c-8eee-48d2-827e-d4e2e658fd1d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccess1azurefilesystemprovidertestcheckaccess682465645/javablobcheckaccess3214002e593a777cee4e03a1f", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "58408a4a-e73a-47a4-ab0f-9b574eef4f2e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Fri, 11 Dec 2020 21:26:08 GMT", + "x-ms-version-id" : "2020-12-11T21:26:08.1329271Z", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 11 Dec 2020 21:26:07 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D89E1B5FCA6077", + "Content-Length" : "0", + "x-ms-request-id" : "bc43f8ad-801e-00a1-6804-d02d5c000000", + "x-ms-client-request-id" : "58408a4a-e73a-47a4-ab0f-9b574eef4f2e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccess1azurefilesystemprovidertestcheckaccess682465645/javablobcheckaccess3214002e593a777cee4e03a1f", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "51fc1bb3-9ad4-4a56-b9f3-8783f760e9b4" + }, + "Response" : { + "x-ms-is-current-version" : "true", + "x-ms-version" : "2020-04-08", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "x-ms-lease-state" : "available", + "x-ms-version-id" : "2020-12-11T21:26:08.1329271Z", + "Last-Modified" : "Fri, 11 Dec 2020 21:26:08 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 11 Dec 2020 21:26:07 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D89E1B5FCA6077", + "x-ms-creation-time" : "Fri, 11 Dec 2020 21:26:08 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "bc43f8c2-801e-00a1-7a04-d02d5c000000", + "x-ms-client-request-id" : "51fc1bb3-9ad4-4a56-b9f3-8783f760e9b4", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtccheckaccess&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5f2b29b9-441d-44ed-ac01-a585df70123a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "bc43f8d8-801e-00a1-0e04-d02d5c000000", + "Body" : "jtccheckaccessjtccheckaccess1azurefilesystemprovidertestcheckaccess682465645Fri, 11 Dec 2020 21:26:07 GMT\"0x8D89E1B5F441F2B\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccheckaccess2azurefilesystemprovidertestcheckaccess682845437Fri, 11 Dec 2020 21:26:07 GMT\"0x8D89E1B5F7ACCC6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 11 Dec 2020 21:26:07 GMT", + "x-ms-client-request-id" : "5f2b29b9-441d-44ed-ac01-a585df70123a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccess1azurefilesystemprovidertestcheckaccess682465645?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ad0cd1d5-4d53-4110-8d0d-07813030aad3" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "bc43f8e9-801e-00a1-1704-d02d5c000000", + "Date" : "Fri, 11 Dec 2020 21:26:07 GMT", + "x-ms-client-request-id" : "ad0cd1d5-4d53-4110-8d0d-07813030aad3" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccess2azurefilesystemprovidertestcheckaccess682845437?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f738b9d0-e1c4-4523-82e9-575c86698954" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "bc43f8ef-801e-00a1-1d04-d02d5c000000", + "Date" : "Fri, 11 Dec 2020 21:26:07 GMT", + "x-ms-client-request-id" : "f738b9d0-e1c4-4523-82e9-575c86698954" + }, + "Exception" : null + } ], + "variables" : [ "jtccheckaccess0azurefilesystemprovidertestcheckaccess682293933", "jtccheckaccess1azurefilesystemprovidertestcheckaccess682465645", "jtccheckaccess2azurefilesystemprovidertestcheckaccess682845437", "javablobcheckaccess3214002e593a777cee4e03a1f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessaccessdenied[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessaccessdenied[0].json new file mode 100644 index 000000000000..9f71e86a5096 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessaccessdenied[0].json @@ -0,0 +1,204 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied110933f35b170faa1841f?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d86f1b40-d3ec-4ffe-8e2d-c24e79f76324" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 11 Dec 2020 21:27:39 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "ab53a83c-001e-0074-4e04-d0c2d1000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:ab53a83c-001e-0074-4e04-d0c2d1000000\nTime:2020-12-11T21:27:40.1021903Z", + "x-ms-client-request-id" : "d86f1b40-d3ec-4ffe-8e2d-c24e79f76324", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied110933f35b170faa1841f?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "4fbec1b0-6d89-4b9b-95e2-9a064bd537d4" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D89E1B96CC092B", + "Last-Modified" : "Fri, 11 Dec 2020 21:27:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ab53a852-001e-0074-5c04-d0c2d1000000", + "Date" : "Fri, 11 Dec 2020 21:27:39 GMT", + "x-ms-client-request-id" : "4fbec1b0-6d89-4b9b-95e2-9a064bd537d4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied285021fda0296153bc4ac?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ece570a8-34bf-41f7-8192-1ec68e7431bc" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 11 Dec 2020 21:27:39 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "ab53a864-001e-0074-6904-d0c2d1000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:ab53a864-001e-0074-6904-d0c2d1000000\nTime:2020-12-11T21:27:40.6246807Z", + "x-ms-client-request-id" : "ece570a8-34bf-41f7-8192-1ec68e7431bc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied285021fda0296153bc4ac?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b136c03f-fc3b-42fc-8233-b2d90e387480" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D89E1B96FA9E6A", + "Last-Modified" : "Fri, 11 Dec 2020 21:27:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ab53a86e-001e-0074-6f04-d0c2d1000000", + "Date" : "Fri, 11 Dec 2020 21:27:39 GMT", + "x-ms-client-request-id" : "b136c03f-fc3b-42fc-8233-b2d90e387480" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied110933f35b170faa1841f?prefix=javablobcheckaccessaccessdenied327403e763640d7a9a4&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "528a9066-b09c-49d3-8cd8-14e742c90017" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ab53a87e-001e-0074-7b04-d0c2d1000000", + "Body" : "javablobcheckaccessaccessdenied327403e763640d7a9a42/", + "Date" : "Fri, 11 Dec 2020 21:27:39 GMT", + "x-ms-client-request-id" : "528a9066-b09c-49d3-8cd8-14e742c90017", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied110933f35b170faa1841f/javablobcheckaccessaccessdenied327403e763640d7a9a4", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "707832dc-efac-46da-bbac-754d095c9ca9", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Fri, 11 Dec 2020 21:27:41 GMT", + "x-ms-version-id" : "2020-12-11T21:27:41.2015141Z", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 11 Dec 2020 21:27:40 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D89E1B97438425", + "Content-Length" : "0", + "x-ms-request-id" : "ab53a899-001e-0074-1204-d0c2d1000000", + "x-ms-client-request-id" : "707832dc-efac-46da-bbac-754d095c9ca9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtccheckaccessaccessdenied&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3cecd162-8e7f-4ed3-99fd-b363a6126b22" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ab53a8a1-001e-0074-1804-d0c2d1000000", + "Body" : "jtccheckaccessaccessdeniedjtccheckaccessaccessdenied110933f35b170faa1841fFri, 11 Dec 2020 21:27:40 GMT\"0x8D89E1B96CC092B\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccheckaccessaccessdenied285021fda0296153bc4acFri, 11 Dec 2020 21:27:40 GMT\"0x8D89E1B96FA9E6A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 11 Dec 2020 21:27:40 GMT", + "x-ms-client-request-id" : "3cecd162-8e7f-4ed3-99fd-b363a6126b22", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied110933f35b170faa1841f?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "22781c56-9089-4a2d-b516-4011b35e0afa" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ab53a8ac-001e-0074-2304-d0c2d1000000", + "Date" : "Fri, 11 Dec 2020 21:27:40 GMT", + "x-ms-client-request-id" : "22781c56-9089-4a2d-b516-4011b35e0afa" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied285021fda0296153bc4ac?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ed5c7659-a411-4450-ac91-da2737fce648" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ab53a8ae-001e-0074-2504-d0c2d1000000", + "Date" : "Fri, 11 Dec 2020 21:27:40 GMT", + "x-ms-client-request-id" : "ed5c7659-a411-4450-ac91-da2737fce648" + }, + "Exception" : null + } ], + "variables" : [ "jtccheckaccessaccessdenied09373173405d2d9767471", "jtccheckaccessaccessdenied110933f35b170faa1841f", "jtccheckaccessaccessdenied285021fda0296153bc4ac", "javablobcheckaccessaccessdenied327403e763640d7a9a4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessaccessdenied[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessaccessdenied[1].json new file mode 100644 index 000000000000..35a6b2a507b6 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessaccessdenied[1].json @@ -0,0 +1,204 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied1021978e31e96403a549b?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5dc04ff4-9a26-4d83-920c-7bdfea17f83f" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 11 Dec 2020 21:27:40 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "ab53a8b7-001e-0074-2c04-d0c2d1000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:ab53a8b7-001e-0074-2c04-d0c2d1000000\nTime:2020-12-11T21:27:41.8668472Z", + "x-ms-client-request-id" : "5dc04ff4-9a26-4d83-920c-7bdfea17f83f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied1021978e31e96403a549b?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "297635ec-65a0-45f9-9949-102281d7950f" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D89E1B97B93A3C", + "Last-Modified" : "Fri, 11 Dec 2020 21:27:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ab53a8bb-001e-0074-2e04-d0c2d1000000", + "Date" : "Fri, 11 Dec 2020 21:27:41 GMT", + "x-ms-client-request-id" : "297635ec-65a0-45f9-9949-102281d7950f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied2344810c6bbc1a84384d7?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d6edb0a4-a6d1-4381-ad4c-32dd311333ac" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 11 Dec 2020 21:27:41 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "ab53a8c3-001e-0074-3204-d0c2d1000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:ab53a8c3-001e-0074-3204-d0c2d1000000\nTime:2020-12-11T21:27:42.0820497Z", + "x-ms-client-request-id" : "d6edb0a4-a6d1-4381-ad4c-32dd311333ac", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied2344810c6bbc1a84384d7?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "664321ab-4998-4f69-96b6-38fe03f18bf7" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D89E1B97DB9793", + "Last-Modified" : "Fri, 11 Dec 2020 21:27:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ab53a8ce-001e-0074-3c04-d0c2d1000000", + "Date" : "Fri, 11 Dec 2020 21:27:41 GMT", + "x-ms-client-request-id" : "664321ab-4998-4f69-96b6-38fe03f18bf7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied1021978e31e96403a549b?prefix=javablobcheckaccessaccessdenied318284622740200e084&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "97aec64f-44dd-49dd-a06a-5471252e293e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ab53a8d2-001e-0074-3f04-d0c2d1000000", + "Body" : "javablobcheckaccessaccessdenied318284622740200e0842/", + "Date" : "Fri, 11 Dec 2020 21:27:41 GMT", + "x-ms-client-request-id" : "97aec64f-44dd-49dd-a06a-5471252e293e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied1021978e31e96403a549b/javablobcheckaccessaccessdenied318284622740200e084", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "cc01ce7d-d6d1-4877-bd34-fd45d2daa058", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Fri, 11 Dec 2020 21:27:42 GMT", + "x-ms-version-id" : "2020-12-11T21:27:42.4296837Z", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 11 Dec 2020 21:27:41 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D89E1B97FEEB85", + "Content-Length" : "0", + "x-ms-request-id" : "ab53a8da-001e-0074-4604-d0c2d1000000", + "x-ms-client-request-id" : "cc01ce7d-d6d1-4877-bd34-fd45d2daa058" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtccheckaccessaccessdenied&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "96d62176-9af8-4ad5-8780-101ee8a8aa35" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ab53a8e3-001e-0074-4f04-d0c2d1000000", + "Body" : "jtccheckaccessaccessdeniedjtccheckaccessaccessdenied1021978e31e96403a549bFri, 11 Dec 2020 21:27:41 GMT\"0x8D89E1B97B93A3C\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccheckaccessaccessdenied2344810c6bbc1a84384d7Fri, 11 Dec 2020 21:27:42 GMT\"0x8D89E1B97DB9793\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 11 Dec 2020 21:27:41 GMT", + "x-ms-client-request-id" : "96d62176-9af8-4ad5-8780-101ee8a8aa35", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied1021978e31e96403a549b?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "084d4802-f9ac-4901-8649-7c25cfb25dcd" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ab53a8e6-001e-0074-5204-d0c2d1000000", + "Date" : "Fri, 11 Dec 2020 21:27:41 GMT", + "x-ms-client-request-id" : "084d4802-f9ac-4901-8649-7c25cfb25dcd" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied2344810c6bbc1a84384d7?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "91a4e7dd-e3e0-48dd-806d-355cfba755d9" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ab53a8ec-001e-0074-5604-d0c2d1000000", + "Date" : "Fri, 11 Dec 2020 21:27:41 GMT", + "x-ms-client-request-id" : "91a4e7dd-e3e0-48dd-806d-355cfba755d9" + }, + "Exception" : null + } ], + "variables" : [ "jtccheckaccessaccessdenied057113a47e1c80a1944c0", "jtccheckaccessaccessdenied1021978e31e96403a549b", "jtccheckaccessaccessdenied2344810c6bbc1a84384d7", "javablobcheckaccessaccessdenied318284622740200e084" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessaccessdenied[2].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessaccessdenied[2].json new file mode 100644 index 000000000000..db9802496956 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessaccessdenied[2].json @@ -0,0 +1,204 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied104882117b11bc166a4dc?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "65b3bda6-d17e-40c0-adbd-f98bf8b18833" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 11 Dec 2020 21:27:41 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "ab53a8f0-001e-0074-5804-d0c2d1000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:ab53a8f0-001e-0074-5804-d0c2d1000000\nTime:2020-12-11T21:27:42.9128294Z", + "x-ms-client-request-id" : "65b3bda6-d17e-40c0-adbd-f98bf8b18833", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied104882117b11bc166a4dc?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "1b29e5d7-819f-4c65-b45b-bb10a3cd83cc" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D89E1B98597154", + "Last-Modified" : "Fri, 11 Dec 2020 21:27:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ab53a902-001e-0074-6204-d0c2d1000000", + "Date" : "Fri, 11 Dec 2020 21:27:42 GMT", + "x-ms-client-request-id" : "1b29e5d7-819f-4c65-b45b-bb10a3cd83cc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied2547386b111316e97242d?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c25a3418-46db-4b1a-ba95-18f3128ff677" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 11 Dec 2020 21:27:42 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "ab53a908-001e-0074-6604-d0c2d1000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:ab53a908-001e-0074-6604-d0c2d1000000\nTime:2020-12-11T21:27:43.1540568Z", + "x-ms-client-request-id" : "c25a3418-46db-4b1a-ba95-18f3128ff677", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied2547386b111316e97242d?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "38b18425-ead3-4c4c-a1e9-a267cf0000e9" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D89E1B987D55A1", + "Last-Modified" : "Fri, 11 Dec 2020 21:27:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ab53a90e-001e-0074-6a04-d0c2d1000000", + "Date" : "Fri, 11 Dec 2020 21:27:42 GMT", + "x-ms-client-request-id" : "38b18425-ead3-4c4c-a1e9-a267cf0000e9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied104882117b11bc166a4dc?prefix=javablobcheckaccessaccessdenied303760f8cc3d32647c4&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "49dfa678-c43e-4f0b-8389-f8d51eca8e98" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ab53a915-001e-0074-7004-d0c2d1000000", + "Body" : "javablobcheckaccessaccessdenied303760f8cc3d32647c42/", + "Date" : "Fri, 11 Dec 2020 21:27:42 GMT", + "x-ms-client-request-id" : "49dfa678-c43e-4f0b-8389-f8d51eca8e98", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied104882117b11bc166a4dc/javablobcheckaccessaccessdenied303760f8cc3d32647c4", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f5f1046b-9315-4403-88a5-b7723acb9b37", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Fri, 11 Dec 2020 21:27:43 GMT", + "x-ms-version-id" : "2020-12-11T21:27:43.5097117Z", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 11 Dec 2020 21:27:42 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D89E1B98A3B81D", + "Content-Length" : "0", + "x-ms-request-id" : "ab53a924-001e-0074-7804-d0c2d1000000", + "x-ms-client-request-id" : "f5f1046b-9315-4403-88a5-b7723acb9b37" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtccheckaccessaccessdenied&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d2981d8a-a5cc-46fb-90b5-fd881b442865" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ab53a92e-001e-0074-0204-d0c2d1000000", + "Body" : "jtccheckaccessaccessdeniedjtccheckaccessaccessdenied104882117b11bc166a4dcFri, 11 Dec 2020 21:27:43 GMT\"0x8D89E1B98597154\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccheckaccessaccessdenied2547386b111316e97242dFri, 11 Dec 2020 21:27:43 GMT\"0x8D89E1B987D55A1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 11 Dec 2020 21:27:42 GMT", + "x-ms-client-request-id" : "d2981d8a-a5cc-46fb-90b5-fd881b442865", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied104882117b11bc166a4dc?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a948c03c-15f7-4002-b980-96078d99b5c1" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ab53a937-001e-0074-0a04-d0c2d1000000", + "Date" : "Fri, 11 Dec 2020 21:27:42 GMT", + "x-ms-client-request-id" : "a948c03c-15f7-4002-b980-96078d99b5c1" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessaccessdenied2547386b111316e97242d?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b3300067-70d7-4f58-b49a-326fa17a6709" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ab53a941-001e-0074-1404-d0c2d1000000", + "Date" : "Fri, 11 Dec 2020 21:27:42 GMT", + "x-ms-client-request-id" : "b3300067-70d7-4f58-b49a-326fa17a6709" + }, + "Exception" : null + } ], + "variables" : [ "jtccheckaccessaccessdenied023459d820a5ccbeda4d5", "jtccheckaccessaccessdenied104882117b11bc166a4dc", "jtccheckaccessaccessdenied2547386b111316e97242d", "javablobcheckaccessaccessdenied303760f8cc3d32647c4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessfsclosed.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessfsclosed.json new file mode 100644 index 000000000000..a48c140b5bca --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessfsclosed.json @@ -0,0 +1,204 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessfsclosed192708c04b9d9518b14d388?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7799324f-44e6-4bd4-a9ff-1053f2f7acbc" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 11 Dec 2020 21:31:00 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "a1da43f2-501e-0024-6404-d00081000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:a1da43f2-501e-0024-6404-d00081000000\nTime:2020-12-11T21:31:01.2131316Z", + "x-ms-client-request-id" : "7799324f-44e6-4bd4-a9ff-1053f2f7acbc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessfsclosed192708c04b9d9518b14d388?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "80221651-a1e0-466d-b3f0-22c99598b1a9" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D89E1C0EA79E1A", + "Last-Modified" : "Fri, 11 Dec 2020 21:31:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "a1da43f7-501e-0024-6704-d00081000000", + "Date" : "Fri, 11 Dec 2020 21:31:01 GMT", + "x-ms-client-request-id" : "80221651-a1e0-466d-b3f0-22c99598b1a9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessfsclosed25088540fd27c64702441cb?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8faf4c17-d7d1-462e-b1ad-ce28708963fb" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 11 Dec 2020 21:31:02 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "9ba8d780-d01e-00ac-2204-d0e588000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:9ba8d780-d01e-00ac-2204-d0e588000000\nTime:2020-12-11T21:31:02.1622481Z", + "x-ms-client-request-id" : "8faf4c17-d7d1-462e-b1ad-ce28708963fb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessfsclosed25088540fd27c64702441cb?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "64adb767-a09f-405c-a3c8-b28920b2634e" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D89E1C0F1BFFE8", + "Last-Modified" : "Fri, 11 Dec 2020 21:31:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "a1da440e-501e-0024-7904-d00081000000", + "Date" : "Fri, 11 Dec 2020 21:31:01 GMT", + "x-ms-client-request-id" : "64adb767-a09f-405c-a3c8-b28920b2634e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessfsclosed192708c04b9d9518b14d388?prefix=javablobcheckaccessfsclosed37757103fa1e945fdd453&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "108d7d32-fa2c-477d-9cf3-ffbcf12f06f3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "9ba8d793-d01e-00ac-3204-d0e588000000", + "Body" : "javablobcheckaccessfsclosed37757103fa1e945fdd4532/", + "Date" : "Fri, 11 Dec 2020 21:31:02 GMT", + "x-ms-client-request-id" : "108d7d32-fa2c-477d-9cf3-ffbcf12f06f3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessfsclosed192708c04b9d9518b14d388/javablobcheckaccessfsclosed37757103fa1e945fdd453", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "45a08ee2-3446-4ef8-8e37-a048191ccd50", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Fri, 11 Dec 2020 21:31:02 GMT", + "x-ms-version-id" : "2020-12-11T21:31:02.8711296Z", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 11 Dec 2020 21:31:02 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D89E1C0F77DB80", + "Content-Length" : "0", + "x-ms-request-id" : "a1da4429-501e-0024-0d04-d00081000000", + "x-ms-client-request-id" : "45a08ee2-3446-4ef8-8e37-a048191ccd50" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtccheckaccessfsclosed&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3795d188-73f4-43c6-8a07-8436026859db" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "9ba8d7c3-d01e-00ac-5c04-d0e588000000", + "Body" : "jtccheckaccessfsclosedjtccheckaccessfsclosed192708c04b9d9518b14d388Fri, 11 Dec 2020 21:31:01 GMT\"0x8D89E1C0EA79E1A\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccheckaccessfsclosed25088540fd27c64702441cbFri, 11 Dec 2020 21:31:02 GMT\"0x8D89E1C0F1BFFE8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 11 Dec 2020 21:31:03 GMT", + "x-ms-client-request-id" : "3795d188-73f4-43c6-8a07-8436026859db", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessfsclosed192708c04b9d9518b14d388?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f994e7ce-717a-4a15-aeb9-95fb34ed6ded" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "a1da4440-501e-0024-2004-d00081000000", + "Date" : "Fri, 11 Dec 2020 21:31:02 GMT", + "x-ms-client-request-id" : "f994e7ce-717a-4a15-aeb9-95fb34ed6ded" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessfsclosed25088540fd27c64702441cb?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5cd036fb-2c2b-4a8c-a0a4-a6a6386e36f3" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "9ba8d7fe-d01e-00ac-0804-d0e588000000", + "Date" : "Fri, 11 Dec 2020 21:31:03 GMT", + "x-ms-client-request-id" : "5cd036fb-2c2b-4a8c-a0a4-a6a6386e36f3" + }, + "Exception" : null + } ], + "variables" : [ "jtccheckaccessfsclosed08169005631bf174184a639", "jtccheckaccessfsclosed192708c04b9d9518b14d388", "jtccheckaccessfsclosed25088540fd27c64702441cb", "javablobcheckaccessfsclosed37757103fa1e945fdd453" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessioexception.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessioexception.json new file mode 100644 index 000000000000..7603fee9fc9d --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessioexception.json @@ -0,0 +1,218 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessioexception119603d0fbc6c1a6ed4f77?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "581bd54f-fa91-4b13-b37d-908197059e16" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Mon, 14 Dec 2020 20:42:44 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "0316ed3b-501e-008d-6059-d2c1f3000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:0316ed3b-501e-008d-6059-d2c1f3000000\nTime:2020-12-14T20:42:45.5085643Z", + "x-ms-client-request-id" : "581bd54f-fa91-4b13-b37d-908197059e16", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessioexception119603d0fbc6c1a6ed4f77?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3e499771-9fd6-406b-9444-75fb135507c0" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8A070CFEAA6EE", + "Last-Modified" : "Mon, 14 Dec 2020 20:42:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0316ed58-501e-008d-7959-d2c1f3000000", + "Date" : "Mon, 14 Dec 2020 20:42:45 GMT", + "x-ms-client-request-id" : "3e499771-9fd6-406b-9444-75fb135507c0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessioexception2371805b4fa20cda544be9?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f362a2ef-b4a6-491d-a430-bc8b01f0b83c" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Mon, 14 Dec 2020 20:42:45 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "0316ed6e-501e-008d-0459-d2c1f3000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:0316ed6e-501e-008d-0459-d2c1f3000000\nTime:2020-12-14T20:42:45.9950240Z", + "x-ms-client-request-id" : "f362a2ef-b4a6-491d-a430-bc8b01f0b83c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessioexception2371805b4fa20cda544be9?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "19867816-3d48-4893-94b7-9f190b750017" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8A070D015E011", + "Last-Modified" : "Mon, 14 Dec 2020 20:42:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0316ed7c-501e-008d-0d59-d2c1f3000000", + "Date" : "Mon, 14 Dec 2020 20:42:45 GMT", + "x-ms-client-request-id" : "19867816-3d48-4893-94b7-9f190b750017" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessioexception119603d0fbc6c1a6ed4f77?prefix=javablobcheckaccessioexception39555260ca46f6b5794&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c43a1d8a-1cd6-4d2d-90d1-d6e569bc2c9a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0316ed8e-501e-008d-1c59-d2c1f3000000", + "Body" : "javablobcheckaccessioexception39555260ca46f6b57942/", + "Date" : "Mon, 14 Dec 2020 20:42:45 GMT", + "x-ms-client-request-id" : "c43a1d8a-1cd6-4d2d-90d1-d6e569bc2c9a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessioexception119603d0fbc6c1a6ed4f77/javablobcheckaccessioexception39555260ca46f6b5794", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0ddf68df-b7d2-4e2f-8af6-bce239c50fa9", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 14 Dec 2020 20:42:46 GMT", + "x-ms-version-id" : "2020-12-14T20:42:46.5467722Z", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 14 Dec 2020 20:42:45 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D8A070D05D154A", + "Content-Length" : "0", + "x-ms-request-id" : "0316eda4-501e-008d-2e59-d2c1f3000000", + "x-ms-client-request-id" : "0ddf68df-b7d2-4e2f-8af6-bce239c50fa9" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessioexception119603d0fbc6c1a6ed4f77/javablobcheckaccessioexception39555260ca46f6b5794", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0fba4820-23b7-45dd-a90d-ceed29554fbe" + }, + "Response" : { + "x-ms-error-code" : "AuthorizationFailure", + "retry-after" : "0", + "StatusCode" : "403" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtccheckaccessioexception&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "6fcbeb5e-e8ce-4708-a9fe-7dbb6c160423" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0316edc0-501e-008d-4659-d2c1f3000000", + "Body" : "jtccheckaccessioexceptionjtccheckaccessioexception119603d0fbc6c1a6ed4f77Mon, 14 Dec 2020 20:42:45 GMT\"0x8D8A070CFEAA6EE\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccheckaccessioexception2371805b4fa20cda544be9Mon, 14 Dec 2020 20:42:46 GMT\"0x8D8A070D015E011\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 14 Dec 2020 20:42:45 GMT", + "x-ms-client-request-id" : "6fcbeb5e-e8ce-4708-a9fe-7dbb6c160423", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessioexception119603d0fbc6c1a6ed4f77?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b634555d-7533-4139-86d0-baba1a947d77" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0316edcb-501e-008d-4c59-d2c1f3000000", + "Date" : "Mon, 14 Dec 2020 20:42:46 GMT", + "x-ms-client-request-id" : "b634555d-7533-4139-86d0-baba1a947d77" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessioexception2371805b4fa20cda544be9?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "868d930d-d1cb-4c4d-914f-6f994175d85d" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0316edd0-501e-008d-5159-d2c1f3000000", + "Date" : "Mon, 14 Dec 2020 20:42:46 GMT", + "x-ms-client-request-id" : "868d930d-d1cb-4c4d-914f-6f994175d85d" + }, + "Exception" : null + } ], + "variables" : [ "jtccheckaccessioexception013592150c1b36b6bf42a2", "jtccheckaccessioexception119603d0fbc6c1a6ed4f77", "jtccheckaccessioexception2371805b4fa20cda544be9", "javablobcheckaccessioexception39555260ca46f6b5794" ] +} \ No newline at end of file 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 new file mode 100644 index 000000000000..cfda4f24f01b --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessnofile.json @@ -0,0 +1,176 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessnofile1399261304ac0624e64adf82?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "163d50e6-2e85-4284-9396-c155e23b02d3" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 11 Dec 2020 21:28:47 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "008130a3-c01e-0026-1d04-d0be39000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:008130a3-c01e-0026-1d04-d0be39000000\nTime:2020-12-11T21:28:48.1940558Z", + "x-ms-client-request-id" : "163d50e6-2e85-4284-9396-c155e23b02d3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessnofile1399261304ac0624e64adf82?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d025cff2-7ba4-4178-bb82-ea1f95d32725" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D89E1BBF6ABC81", + "Last-Modified" : "Fri, 11 Dec 2020 21:28:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "008130b8-c01e-0026-2c04-d0be39000000", + "Date" : "Fri, 11 Dec 2020 21:28:47 GMT", + "x-ms-client-request-id" : "d025cff2-7ba4-4178-bb82-ea1f95d32725" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessnofile238992f7d138ea1b5a4e339b?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "22573587-8165-48b7-b08d-156be5042985" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 11 Dec 2020 21:28:47 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "008130c6-c01e-0026-3504-d0be39000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:008130c6-c01e-0026-3504-d0be39000000\nTime:2020-12-11T21:28:48.8486791Z", + "x-ms-client-request-id" : "22573587-8165-48b7-b08d-156be5042985", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessnofile238992f7d138ea1b5a4e339b?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a94e2190-fca8-4123-927a-48fc29f49204" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D89E1BBFA90D2E", + "Last-Modified" : "Fri, 11 Dec 2020 21:28:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "008130ce-c01e-0026-3a04-d0be39000000", + "Date" : "Fri, 11 Dec 2020 21:28:48 GMT", + "x-ms-client-request-id" : "a94e2190-fca8-4123-927a-48fc29f49204" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessnofile1399261304ac0624e64adf82/javablobcheckaccessnofile341284ccd15d242d184ee0", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "76f5d23a-dba2-4434-916d-85b8278e98e7" + }, + "Response" : { + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "008130f6-c01e-0026-5804-d0be39000000", + "Date" : "Fri, 11 Dec 2020 21:28:48 GMT", + "x-ms-client-request-id" : "76f5d23a-dba2-4434-916d-85b8278e98e7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtccheckaccessnofile&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ce7c6962-94c1-49c4-ba18-225a44fa60db" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "00813109-c01e-0026-6704-d0be39000000", + "Body" : "jtccheckaccessnofilejtccheckaccessnofile1399261304ac0624e64adf82Fri, 11 Dec 2020 21:28:48 GMT\"0x8D89E1BBF6ABC81\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccheckaccessnofile238992f7d138ea1b5a4e339bFri, 11 Dec 2020 21:28:48 GMT\"0x8D89E1BBFA90D2E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 11 Dec 2020 21:28:48 GMT", + "x-ms-client-request-id" : "ce7c6962-94c1-49c4-ba18-225a44fa60db", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessnofile1399261304ac0624e64adf82?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ca5668a9-feba-4f53-bed6-dcc9b95dfda6" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "00813116-c01e-0026-7204-d0be39000000", + "Date" : "Fri, 11 Dec 2020 21:28:48 GMT", + "x-ms-client-request-id" : "ca5668a9-feba-4f53-bed6-dcc9b95dfda6" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessnofile238992f7d138ea1b5a4e339b?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "70c2dee6-ec31-49c8-b323-fec8a8928f8b" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0081311d-c01e-0026-7704-d0be39000000", + "Date" : "Fri, 11 Dec 2020 21:28:48 GMT", + "x-ms-client-request-id" : "70c2dee6-ec31-49c8-b323-fec8a8928f8b" + }, + "Exception" : null + } ], + "variables" : [ "jtccheckaccessnofile060573e0613cf7085745129d", "jtccheckaccessnofile1399261304ac0624e64adf82", "jtccheckaccessnofile238992f7d138ea1b5a4e339b", "javablobcheckaccessnofile341284ccd15d242d184ee0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessroot.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessroot.json new file mode 100644 index 000000000000..9a56d7740639 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestcheckaccessroot.json @@ -0,0 +1,155 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessroot12479440e12bf1f65c40ffb9f?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ecbbb142-bad2-45ae-9f75-e50559908152" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Tue, 15 Dec 2020 22:44:20 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "b4232763-f01e-005f-2733-d3421d000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:b4232763-f01e-005f-2733-d3421d000000\nTime:2020-12-15T22:44:20.9223487Z", + "x-ms-client-request-id" : "ecbbb142-bad2-45ae-9f75-e50559908152", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessroot12479440e12bf1f65c40ffb9f?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8b861efe-84ba-412e-8336-2661afed3a77" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8A14AF6B1AA10", + "Last-Modified" : "Tue, 15 Dec 2020 22:44:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b4232787-f01e-005f-4233-d3421d000000", + "Date" : "Tue, 15 Dec 2020 22:44:20 GMT", + "x-ms-client-request-id" : "8b861efe-84ba-412e-8336-2661afed3a77" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessroot2300171d9a26ff85e349cdb93?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c26d7c78-f766-4ab9-8855-048c757a3040" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Tue, 15 Dec 2020 22:44:20 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "b4232798-f01e-005f-4933-d3421d000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:b4232798-f01e-005f-4933-d3421d000000\nTime:2020-12-15T22:44:21.3127201Z", + "x-ms-client-request-id" : "c26d7c78-f766-4ab9-8855-048c757a3040", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessroot2300171d9a26ff85e349cdb93?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5fadc80b-6a1c-4a70-9d10-030ab3754b9c" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8A14AF6D98716", + "Last-Modified" : "Tue, 15 Dec 2020 22:44:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b423279f-f01e-005f-4e33-d3421d000000", + "Date" : "Tue, 15 Dec 2020 22:44:20 GMT", + "x-ms-client-request-id" : "5fadc80b-6a1c-4a70-9d10-030ab3754b9c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtccheckaccessroot&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c364603b-9c31-400e-b32c-cc9b57f1a108" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b42327b5-f01e-005f-6233-d3421d000000", + "Body" : "jtccheckaccessrootjtccheckaccessroot12479440e12bf1f65c40ffb9fTue, 15 Dec 2020 22:44:21 GMT\"0x8D8A14AF6B1AA10\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccheckaccessroot2300171d9a26ff85e349cdb93Tue, 15 Dec 2020 22:44:21 GMT\"0x8D8A14AF6D98716\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Tue, 15 Dec 2020 22:44:20 GMT", + "x-ms-client-request-id" : "c364603b-9c31-400e-b32c-cc9b57f1a108", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessroot12479440e12bf1f65c40ffb9f?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "9852198b-fe74-48c0-a2f8-d0ff4b4baeaa" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b42327d2-f01e-005f-7e33-d3421d000000", + "Date" : "Tue, 15 Dec 2020 22:44:21 GMT", + "x-ms-client-request-id" : "9852198b-fe74-48c0-a2f8-d0ff4b4baeaa" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtccheckaccessroot2300171d9a26ff85e349cdb93?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7f805fd0-8682-4ebb-810d-201759d58ed2" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b42327d6-f01e-005f-8033-d3421d000000", + "Date" : "Tue, 15 Dec 2020 22:44:21 GMT", + "x-ms-client-request-id" : "7f805fd0-8682-4ebb-810d-201759d58ed2" + }, + "Exception" : null + } ], + "variables" : [ "jtccheckaccessroot0050270455c90b51574910a35", "jtccheckaccessroot12479440e12bf1f65c40ffb9f", "jtccheckaccessroot2300171d9a26ff85e349cdb93" ] +} \ 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 new file mode 100644 index 000000000000..2bafaa3ae4c3 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/CompositeTestfilescreatedirs.json @@ -0,0 +1,446 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d0446fc1-e260-48b6-a5b3-4a22182c545c" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Tue, 15 Dec 2020 23:07:44 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "b4249d2e-f01e-005f-3937-d3421d000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:b4249d2e-f01e-005f-3937-d3421d000000\nTime:2020-12-15T23:07:45.4345836Z", + "x-ms-client-request-id" : "d0446fc1-e260-48b6-a5b3-4a22182c545c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "cd36024d-07b2-4f3a-9656-d2bcaa89cdd9" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8A14E3BDA7209", + "Last-Modified" : "Tue, 15 Dec 2020 23:07:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b4249d4a-f01e-005f-4b37-d3421d000000", + "Date" : "Tue, 15 Dec 2020 23:07:44 GMT", + "x-ms-client-request-id" : "cd36024d-07b2-4f3a-9656-d2bcaa89cdd9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs2compositetestfilescreatedirsda0552840663?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "90965bec-eaca-4238-b59c-0aa90a2ebd0a" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Tue, 15 Dec 2020 23:07:44 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ContainerNotFound", + "Content-Length" : "225", + "x-ms-request-id" : "b4249d60-f01e-005f-5e37-d3421d000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:b4249d60-f01e-005f-5e37-d3421d000000\nTime:2020-12-15T23:07:45.8369660Z", + "x-ms-client-request-id" : "90965bec-eaca-4238-b59c-0aa90a2ebd0a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs2compositetestfilescreatedirsda0552840663?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "9c84d2cd-9e09-4657-89b3-44120cb66b09" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8A14E3C03AEF9", + "Last-Modified" : "Tue, 15 Dec 2020 23:07:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b4249d6a-f01e-005f-6537-d3421d000000", + "Date" : "Tue, 15 Dec 2020 23:07:45 GMT", + "x-ms-client-request-id" : "9c84d2cd-9e09-4657-89b3-44120cb66b09" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b?prefix=mydir1/mydir2&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "84649d24-6f30-4ad9-b9a4-dfdccb2438e3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b4249d7e-f01e-005f-7337-d3421d000000", + "Body" : "mydir1/mydir22/", + "Date" : "Tue, 15 Dec 2020 23:07:45 GMT", + "x-ms-client-request-id" : "84649d24-6f30-4ad9-b9a4-dfdccb2438e3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b/mydir1%2Fmydir2", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "38c31e4d-869f-4766-96c2-3af3cfc1efcb" + }, + "Response" : { + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "b4249d8e-f01e-005f-0237-d3421d000000", + "Date" : "Tue, 15 Dec 2020 23:07:45 GMT", + "x-ms-client-request-id" : "38c31e4d-869f-4766-96c2-3af3cfc1efcb" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b/mydir1", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8a27aa48-9d97-4336-a9ce-5ddd0cd10da9" + }, + "Response" : { + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "b4249d93-f01e-005f-0637-d3421d000000", + "Date" : "Tue, 15 Dec 2020 23:07:45 GMT", + "x-ms-client-request-id" : "8a27aa48-9d97-4336-a9ce-5ddd0cd10da9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b/mydir1?comp=blocklist", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e72d9e2d-b6c8-485c-a013-143ef138e1d7", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Tue, 15 Dec 2020 23:07:46 GMT", + "x-ms-version-id" : "2020-12-15T23:07:46.5028573Z", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Tue, 15 Dec 2020 23:07:45 GMT", + "ETag" : "0x8D8A14E3C5AC7DD", + "Content-Length" : "0", + "x-ms-request-id" : "b4249d9c-f01e-005f-0e37-d3421d000000", + "x-ms-client-request-id" : "e72d9e2d-b6c8-485c-a013-143ef138e1d7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b?prefix=mydir1&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ead857b6-56c6-4423-a968-c62bb60a53e5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b4249da3-f01e-005f-1537-d3421d000000", + "Body" : "mydir12/mydir12020-12-15T23:07:46.5028573ZtrueTue, 15 Dec 2020 23:07:46 GMTTue, 15 Dec 2020 23:07:46 GMT0x8D8A14E3C5AC7DD0application/octet-streamBlockBlobHottrueunlockedavailabletruetrue", + "Date" : "Tue, 15 Dec 2020 23:07:45 GMT", + "x-ms-client-request-id" : "ead857b6-56c6-4423-a968-c62bb60a53e5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b/mydir1%2Fmydir2?comp=blocklist", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a10fc318-4c06-4a20-9ee3-8708dd91ada9", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Tue, 15 Dec 2020 23:07:46 GMT", + "x-ms-version-id" : "2020-12-15T23:07:46.7621028Z", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Tue, 15 Dec 2020 23:07:45 GMT", + "ETag" : "0x8D8A14E3C822F8B", + "Content-Length" : "0", + "x-ms-request-id" : "b4249dab-f01e-005f-1b37-d3421d000000", + "x-ms-client-request-id" : "a10fc318-4c06-4a20-9ee3-8708dd91ada9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b?prefix=mydir1/mydir2&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "aa99919f-8d3d-4881-926f-16a076d51c0e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b4249dac-f01e-005f-1c37-d3421d000000", + "Body" : "mydir1/mydir22/mydir1/mydir22020-12-15T23:07:46.7621028ZtrueTue, 15 Dec 2020 23:07:46 GMTTue, 15 Dec 2020 23:07:46 GMT0x8D8A14E3C822F8B0application/octet-streamBlockBlobHottrueunlockedavailabletruetrue", + "Date" : "Tue, 15 Dec 2020 23:07:45 GMT", + "x-ms-client-request-id" : "aa99919f-8d3d-4881-926f-16a076d51c0e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b/mydir1%2Fmydir2%2Fmydir3?comp=blocklist", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a410d7ba-4772-44a3-b070-8aca8b7a7c86", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Tue, 15 Dec 2020 23:07:46 GMT", + "x-ms-version-id" : "2020-12-15T23:07:46.9632934Z", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Tue, 15 Dec 2020 23:07:46 GMT", + "ETag" : "0x8D8A14E3CA109A6", + "Content-Length" : "0", + "x-ms-request-id" : "b4249db6-f01e-005f-2337-d3421d000000", + "x-ms-client-request-id" : "a410d7ba-4772-44a3-b070-8aca8b7a7c86" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b/mydir1", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "1ace643e-2487-4c08-8e90-322180725425" + }, + "Response" : { + "x-ms-is-current-version" : "true", + "x-ms-version" : "2020-04-08", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "x-ms-lease-state" : "available", + "x-ms-version-id" : "2020-12-15T23:07:46.5028573Z", + "Last-Modified" : "Tue, 15 Dec 2020 23:07:46 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Tue, 15 Dec 2020 23:07:46 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D8A14E3C5AC7DD", + "x-ms-creation-time" : "Tue, 15 Dec 2020 23:07:46 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "b4249dbe-f01e-005f-2b37-d3421d000000", + "x-ms-client-request-id" : "1ace643e-2487-4c08-8e90-322180725425", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b/mydir1%2Fmydir2", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0e29b8de-9dd4-46f2-ba3b-5e9e7034cf6a" + }, + "Response" : { + "x-ms-is-current-version" : "true", + "x-ms-version" : "2020-04-08", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "x-ms-lease-state" : "available", + "x-ms-version-id" : "2020-12-15T23:07:46.7621028Z", + "Last-Modified" : "Tue, 15 Dec 2020 23:07:46 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Tue, 15 Dec 2020 23:07:46 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D8A14E3C822F8B", + "x-ms-creation-time" : "Tue, 15 Dec 2020 23:07:46 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "b4249dc7-f01e-005f-3437-d3421d000000", + "x-ms-client-request-id" : "0e29b8de-9dd4-46f2-ba3b-5e9e7034cf6a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b/mydir1%2Fmydir2%2Fmydir3", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a9fc4223-2c89-4001-b7d5-e14fcf8a5fe3" + }, + "Response" : { + "x-ms-is-current-version" : "true", + "x-ms-version" : "2020-04-08", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "x-ms-lease-state" : "available", + "x-ms-version-id" : "2020-12-15T23:07:46.9632934Z", + "Last-Modified" : "Tue, 15 Dec 2020 23:07:46 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Tue, 15 Dec 2020 23:07:46 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-meta-hdi_isfolder" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D8A14E3CA109A6", + "x-ms-creation-time" : "Tue, 15 Dec 2020 23:07:46 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "b4249dcf-f01e-005f-3b37-d3421d000000", + "x-ms-client-request-id" : "a9fc4223-2c89-4001-b7d5-e14fcf8a5fe3", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcfilescreatedirs&comp=list", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "665aec0a-7604-490c-bd34-83ed0ccb6bc1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b4249de1-f01e-005f-4937-d3421d000000", + "Body" : "jtcfilescreatedirsjtcfilescreatedirs1compositetestfilescreatedirsda006811814bTue, 15 Dec 2020 23:07:45 GMT\"0x8D8A14E3BDA7209\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcfilescreatedirs2compositetestfilescreatedirsda0552840663Tue, 15 Dec 2020 23:07:45 GMT\"0x8D8A14E3C03AEF9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Tue, 15 Dec 2020 23:07:46 GMT", + "x-ms-client-request-id" : "665aec0a-7604-490c-bd34-83ed0ccb6bc1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs1compositetestfilescreatedirsda006811814b?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "45ad4f4f-1b4e-487e-a349-ec97f79f620d" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b4249ded-f01e-005f-5337-d3421d000000", + "Date" : "Tue, 15 Dec 2020 23:07:46 GMT", + "x-ms-client-request-id" : "45ad4f4f-1b4e-487e-a349-ec97f79f620d" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcfilescreatedirs2compositetestfilescreatedirsda0552840663?restype=container", + "Headers" : { + "x-ms-version" : "2020-04-08", + "User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.2 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "bac1d16a-65f8-475c-9640-90eb9f1e72ac" + }, + "Response" : { + "x-ms-version" : "2020-04-08", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b4249df9-f01e-005f-5c37-d3421d000000", + "Date" : "Tue, 15 Dec 2020 23:07:46 GMT", + "x-ms-client-request-id" : "bac1d16a-65f8-475c-9640-90eb9f1e72ac" + }, + "Exception" : null + } ], + "variables" : [ "jtcfilescreatedirs0compositetestfilescreatedirsda074984803c", "jtcfilescreatedirs1compositetestfilescreatedirsda006811814b", "jtcfilescreatedirs2compositetestfilescreatedirsda0552840663" ] +} \ No newline at end of file