diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java index 5a8c4182b7ac1..6c6b54a15b3c1 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java @@ -32,12 +32,15 @@ import com.azure.storage.file.datalake.implementation.models.SourceModifiedAccessConditions; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.implementation.util.DataLakeSasImplUtil; +import com.azure.storage.file.datalake.implementation.util.ModelHelper; import com.azure.storage.file.datalake.implementation.util.TransformUtils; import com.azure.storage.file.datalake.models.AccessControlChangeCounters; import com.azure.storage.file.datalake.models.AccessControlChangeFailure; import com.azure.storage.file.datalake.models.AccessControlChangeResult; import com.azure.storage.file.datalake.models.AccessControlChanges; +import com.azure.storage.file.datalake.models.DataLakeAclChangeFailedException; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.DataLakeStorageException; import com.azure.storage.file.datalake.models.PathAccessControl; import com.azure.storage.file.datalake.models.PathAccessControlEntry; import com.azure.storage.file.datalake.models.PathHttpHeaders; @@ -666,6 +669,9 @@ Mono> setAccessControlWithResponse(List setAccessControlRecursive(List accessControlList) { try { @@ -688,6 +694,9 @@ public Mono setAccessControlRecursive(List> setAccessControlRecursiveWithResponse( PathSetAccessControlRecursiveOptions options) { @@ -714,9 +723,12 @@ public Mono> setAccessControlRecursiveWithRe * * @param accessControlList The POSIX access control list for the file or directory. * @return A reactive response containing the result of the operation. + * + * @throws DataLakeAclChangeFailedException if a request to storage throws a + * {@link DataLakeStorageException} or a {@link Exception} to wrap the exception with the continuation token. */ - public Mono updateAccessControlRecursive(List accessControlList) - { + public Mono updateAccessControlRecursive( + List accessControlList) { try { return updateAccessControlRecursiveWithResponse( new PathUpdateAccessControlRecursiveOptions(accessControlList)) @@ -738,6 +750,9 @@ public Mono updateAccessControlRecursive(List> updateAccessControlRecursiveWithResponse( PathUpdateAccessControlRecursiveOptions options) { @@ -764,6 +779,9 @@ public Mono> updateAccessControlRecursiveWit * * @param accessControlList The POSIX access control list for the file or directory. * @return A reactive response containing the result of the operation. + * + * @throws DataLakeAclChangeFailedException if a request to storage throws a + * {@link DataLakeStorageException} or a {@link Exception} to wrap the exception with the continuation token. */ public Mono removeAccessControlRecursive( List accessControlList) { @@ -788,6 +806,9 @@ public Mono removeAccessControlRecursive( * * @param options {@link PathRemoveAccessControlRecursiveOptions} * @return A reactive response containing the result of the operation. + * + * @throws DataLakeAclChangeFailedException if a request to storage throws a + * {@link DataLakeStorageException} or a {@link Exception} to wrap the exception with the continuation token. */ public Mono> removeAccessControlRecursiveWithResponse( PathRemoveAccessControlRecursiveOptions options) { @@ -818,6 +839,15 @@ Mono> setAccessControlRecursiveWithResponse( return this.dataLakeStorage.paths().setAccessControlRecursiveWithRestResponseAsync(mode, null, continuationToken, continueOnFailure, batchSize, accessControlList, null, contextFinal) + .onErrorMap(e -> { + if (e instanceof DataLakeStorageException) { + return logger.logExceptionAsError(ModelHelper.changeAclRequestFailed((DataLakeStorageException) e, + continuationToken)); + } else if (e instanceof Exception) { + return logger.logExceptionAsError(ModelHelper.changeAclFailed((Exception) e, continuationToken)); + } + return e; + }) .flatMap(response -> setAccessControlRecursiveWithResponseHelper(response, maxBatches, directoriesSuccessfulCount, filesSuccessfulCount, failureCount, batchesCount, progressHandler, accessControlList, mode, batchSize, continueOnFailure, continuationToken, null, contextFinal)); @@ -921,6 +951,15 @@ Determine if we are finished either because there is no new continuation (failur // If we're not finished, issue another request return this.dataLakeStorage.paths().setAccessControlRecursiveWithRestResponseAsync(mode, null, effectiveNextToken, continueOnFailure, batchSize, accessControlStr, null, context) + .onErrorMap(e -> { + if (e instanceof DataLakeStorageException) { + return logger.logExceptionAsError(ModelHelper.changeAclRequestFailed((DataLakeStorageException) e, + effectiveNextToken)); + } else if (e instanceof Exception) { + return logger.logExceptionAsError(ModelHelper.changeAclFailed((Exception) e, effectiveNextToken)); + } + return e; + }) .flatMap(response2 -> setAccessControlRecursiveWithResponseHelper(response2, maxBatches, directoriesSuccessfulCount, filesSuccessfulCount, failureCount, batchesCount, progressHandler, accessControlStr, mode, batchSize, continueOnFailure, effectiveNextToken, finalBatchFailures, context)); diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java index 425bbae656665..7f175d05a9f5d 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java @@ -21,7 +21,9 @@ import com.azure.storage.file.datalake.implementation.models.SourceModifiedAccessConditions; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.models.AccessControlChangeResult; +import com.azure.storage.file.datalake.models.DataLakeAclChangeFailedException; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.DataLakeStorageException; import com.azure.storage.file.datalake.models.PathAccessControl; import com.azure.storage.file.datalake.models.PathAccessControlEntry; import com.azure.storage.file.datalake.models.PathHttpHeaders; @@ -372,6 +374,9 @@ public Response setPermissionsWithResponse(PathPermissions permissions * * @param accessControlList The POSIX access control list for the file or directory. * @return The result of the operation. + * + * @throws DataLakeAclChangeFailedException if a request to storage throws a + * {@link DataLakeStorageException} or a {@link Exception} to wrap the exception with the continuation token. */ public AccessControlChangeResult setAccessControlRecursive(List accessControlList) { return setAccessControlRecursiveWithResponse(new PathSetAccessControlRecursiveOptions(accessControlList), null, @@ -392,6 +397,9 @@ public AccessControlChangeResult setAccessControlRecursive(List setAccessControlRecursiveWithResponse( PathSetAccessControlRecursiveOptions options, Duration timeout, Context context) { @@ -416,6 +424,9 @@ public Response setAccessControlRecursiveWithResponse * * @param accessControlList The POSIX access control list for the file or directory. * @return The result of the operation. + * + * @throws DataLakeAclChangeFailedException if a request to storage throws a + * {@link DataLakeStorageException} or a {@link Exception} to wrap the exception with the continuation token. */ public AccessControlChangeResult updateAccessControlRecursive(List accessControlList) { return updateAccessControlRecursiveWithResponse(new PathUpdateAccessControlRecursiveOptions(accessControlList), @@ -436,6 +447,9 @@ public AccessControlChangeResult updateAccessControlRecursive(List updateAccessControlRecursiveWithResponse( PathUpdateAccessControlRecursiveOptions options, Duration timeout, Context context) { @@ -460,6 +474,9 @@ public Response updateAccessControlRecursiveWithRespo * * @param accessControlList The POSIX access control list for the file or directory. * @return The result of the operation. + * + * @throws DataLakeAclChangeFailedException if a request to storage throws a + * {@link DataLakeStorageException} or a {@link Exception} to wrap the exception with the continuation token. */ public AccessControlChangeResult removeAccessControlRecursive( List accessControlList) { @@ -481,6 +498,9 @@ public AccessControlChangeResult removeAccessControlRecursive( * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. * @param context Additional context that is passed through the Http pipeline during the service call. * @return A response containing the result of the operation. + * + * @throws DataLakeAclChangeFailedException if a request to storage throws a + * {@link DataLakeStorageException} or a {@link Exception} to wrap the exception with the continuation token. */ public Response removeAccessControlRecursiveWithResponse( PathRemoveAccessControlRecursiveOptions options, Duration timeout, Context context) { diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/ModelHelper.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/ModelHelper.java index afc09827a7257..617deb0b5f4f2 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/ModelHelper.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/ModelHelper.java @@ -6,6 +6,8 @@ import com.azure.storage.common.ParallelTransferOptions; import com.azure.storage.common.implementation.Constants; import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.file.datalake.models.DataLakeAclChangeFailedException; +import com.azure.storage.file.datalake.models.DataLakeStorageException; /** * This class provides helper methods for common model patterns. @@ -76,4 +78,20 @@ public static ParallelTransferOptions populateAndApplyDefaults(ParallelTransferO .setProgressReceiver(other.getProgressReceiver()) .setMaxSingleUploadSizeLong(maxSingleUploadSize); } + + public static DataLakeAclChangeFailedException changeAclRequestFailed(DataLakeStorageException e, + String continuationToken) { + String message = String.format("An error occurred while recursively changing the access control list. See the " + + "exception of type %s with status=%s and error code=%s for more information. You can resume changing " + + "the access control list using continuationToken=%s after addressing the error.", e.getClass(), + e.getStatusCode(), e.getErrorCode(), continuationToken); + return new DataLakeAclChangeFailedException(message, e, continuationToken); + } + + public static DataLakeAclChangeFailedException changeAclFailed(Exception e, String continuationToken) { + String message = String.format("An error occurred while recursively changing the access control list. See the " + + "exception of type %s for more information. You can resume changing the access control list using " + + "continuationToken=%s after addressing the error.", e.getClass(), continuationToken); + return new DataLakeAclChangeFailedException(message, e, continuationToken); + } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeAclChangeFailedException.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeAclChangeFailedException.java new file mode 100644 index 0000000000000..8c7f2d10961a6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeAclChangeFailedException.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +/** + * An exception thrown when an operation is interrupted and can be continued later on. + */ +public class DataLakeAclChangeFailedException extends RuntimeException { + + private final String continuationToken; + + /** + * Initializes a new instance of DataLakeAclChangeFailedException with a specified error message, and a reference + * to the inner exception that is the cause of this exception. + * + * @param message The message that describes the error. + * @param e The exception thrown. + * @param continuationToken The continuation token returned from the previous successful response. + */ + public DataLakeAclChangeFailedException(String message, Exception e, String continuationToken) { + super(message, e); + this.continuationToken = continuationToken; + } + + /** + * Initializes a new instance of DataLakeAclChangeFailedException with a specified error message, HTTP status code, + * error code, and a reference to the inner exception that is the cause of this exception. + * + * @param message The message that describes the error. + * @param e The exception thrown from the failed request. + * @param continuationToken The continuation token returned from the previous successful response. + */ + public DataLakeAclChangeFailedException(String message, DataLakeStorageException e, String continuationToken) { + super(message, e); + this.continuationToken = continuationToken; + } + + /** + * @return the continuation token to resume a datalake recursive acl function. + */ + public String getContinuationToken() { + return continuationToken; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/APISpec.groovy b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/APISpec.groovy index 80b21af56c2c5..faf93e50e8f71 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/APISpec.groovy +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/APISpec.groovy @@ -3,6 +3,7 @@ package com.azure.storage.file.datalake import com.azure.core.http.HttpClient 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 @@ -465,6 +466,24 @@ class APISpec extends Specification { return builder.credential(credential).buildDirectoryClient() } + DataLakeDirectoryClient getDirectoryClient(StorageSharedKeyCredential credential, String endpoint, String pathName, HttpPipelinePolicy... policies) { + DataLakePathClientBuilder builder = new DataLakePathClientBuilder() + .endpoint(endpoint) + .pathName(pathName) + .httpClient(getHttpClient()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + + for (HttpPipelinePolicy policy : policies) { + builder.addPolicy(policy) + } + + if (testMode == TestMode.RECORD) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + + return builder.credential(credential).buildDirectoryClient() + } + DataLakeDirectoryClient getDirectoryClient(String sasToken, String endpoint, String pathName) { DataLakePathClientBuilder builder = new DataLakePathClientBuilder() .endpoint(endpoint) @@ -734,6 +753,14 @@ class APISpec extends Specification { } } + def getMockRequest() { + HttpHeaders headers = new HttpHeaders() + headers.put(Constants.HeaderConstants.CONTENT_ENCODING, "en-US") + URL url = new URL("http://devtest.blob.core.windows.net/test-container/test-blob") + HttpRequest request = new HttpRequest(HttpMethod.POST, url, headers, null) + return request + } + // Only sleep if test is running in live mode def sleepIfRecord(long milliseconds) { if (testMode != TestMode.PLAYBACK) { diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DirectoryAPITest.groovy b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DirectoryAPITest.groovy index bc3662e689a4e..d8170f3da25a9 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DirectoryAPITest.groovy +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DirectoryAPITest.groovy @@ -1,6 +1,12 @@ package com.azure.storage.file.datalake +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.policy.HttpPipelinePolicy import com.azure.core.http.rest.Response +import com.azure.core.test.http.MockHttpResponse import com.azure.core.util.Context import com.azure.identity.DefaultAzureCredentialBuilder import com.azure.storage.blob.BlobUrlParts @@ -12,6 +18,7 @@ import com.azure.storage.file.datalake.options.PathSetAccessControlRecursiveOpti import com.azure.storage.file.datalake.options.PathUpdateAccessControlRecursiveOptions import com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues import com.azure.storage.file.datalake.sas.PathSasPermission +import reactor.core.publisher.Mono import spock.lang.Unroll import java.util.function.Consumer @@ -823,7 +830,36 @@ class DirectoryAPITest extends APISpec { new PathSetAccessControlRecursiveOptions(pathAccessControlEntries), null, null) then: - thrown(DataLakeStorageException) + def e = thrown(DataLakeAclChangeFailedException) + e.getCause().class == DataLakeStorageException.class + } + + @Unroll + def "Set ACL recursive error middle of batches"() { + setup: + setupStandardRecursiveAclTest() + + def options = new PathSetAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(2) + + // Mock a policy that will return an error on the call with the continuation token + HttpPipelinePolicy mockPolicy = { HttpPipelineCallContext context, HttpPipelineNextPolicy next -> + return context.getHttpRequest().getUrl().toString().contains("continuation") ? Mono.error(error) : next.process() + } + + dc = getDirectoryClient(primaryCredential, dc.getDirectoryUrl(), dc.getObjectPath(), mockPolicy) + + when: + def result = dc.setAccessControlRecursiveWithResponse(options, null, null).getValue() + + then: + def e = thrown(DataLakeAclChangeFailedException) + e.getCause().class == error.class + + where: + error || _ + new IllegalArgumentException() || _ + new DataLakeStorageException("error", getStubResponse(500, new HttpRequest(HttpMethod.PUT, new URL("https://www.fake.com"))), null) || _ } def "Update ACL recursive"() { @@ -1191,7 +1227,36 @@ class DirectoryAPITest extends APISpec { new PathUpdateAccessControlRecursiveOptions(pathAccessControlEntries), null, null) then: - thrown(DataLakeStorageException) + def e = thrown(DataLakeAclChangeFailedException) + e.getCause().class == DataLakeStorageException.class + } + + @Unroll + def "Update ACL recursive error middle of batches"() { + setup: + setupStandardRecursiveAclTest() + + def options = new PathUpdateAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(2) + + // Mock a policy that will return an error on the call with the continuation token + HttpPipelinePolicy mockPolicy = { HttpPipelineCallContext context, HttpPipelineNextPolicy next -> + return context.getHttpRequest().getUrl().toString().contains("continuation") ? Mono.error(error) : next.process() + } + + dc = getDirectoryClient(primaryCredential, dc.getDirectoryUrl(), dc.getObjectPath(), mockPolicy) + + when: + def result = dc.updateAccessControlRecursiveWithResponse(options, null, null).getValue() + + then: + def e = thrown(DataLakeAclChangeFailedException) + e.getCause().class == error.class + + where: + error || _ + new IllegalArgumentException() || _ + new DataLakeStorageException("error", getStubResponse(500, new HttpRequest(HttpMethod.PUT, new URL("https://www.fake.com"))), null) || _ } def "Remove ACL recursive"() { @@ -1558,7 +1623,36 @@ class DirectoryAPITest extends APISpec { new PathRemoveAccessControlRecursiveOptions(removeAccessControlEntries), null, null) then: - thrown(DataLakeStorageException) + def e = thrown(DataLakeAclChangeFailedException) + e.getCause().class == DataLakeStorageException.class + } + + @Unroll + def "Remove ACL recursive error middle of batches"() { + setup: + setupStandardRecursiveAclTest() + + def options = new PathRemoveAccessControlRecursiveOptions(removeAccessControlEntries) + .setBatchSize(2) + + // Mock a policy that will return an error on the call with the continuation token + HttpPipelinePolicy mockPolicy = { HttpPipelineCallContext context, HttpPipelineNextPolicy next -> + return context.getHttpRequest().getUrl().toString().contains("continuation") ? Mono.error(error) : next.process() + } + + dc = getDirectoryClient(primaryCredential, dc.getDirectoryUrl(), dc.getObjectPath(), mockPolicy) + + when: + def result = dc.removeAccessControlRecursiveWithResponse(options, null, null).getValue() + + then: + def e = thrown(DataLakeAclChangeFailedException) + e.getCause().class == error.class + + where: + error || _ + new IllegalArgumentException() || _ + new DataLakeStorageException("error", getStubResponse(500, new HttpRequest(HttpMethod.PUT, new URL("https://www.fake.com"))), null) || _ } def setupStandardRecursiveAclTest() { diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursiveerrormiddleofbatches[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursiveerrormiddleofbatches[0].json new file mode 100644 index 0000000000000..f01137c6e7746 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursiveerrormiddleofbatches[0].json @@ -0,0 +1,235 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches008018c442767?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "e50595ff-9b87-4095-837b-8bb9831d92ee" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F44CAABE9", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "efa43eb1-e01e-0088-1b68-97a8a9000000", + "Date" : "Wed, 30 Sep 2020 20:27:35 GMT", + "x-ms-client-request-id" : "e50595ff-9b87-4095-837b-8bb9831d92ee" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches008018c442767/javapathremoveaclrecursiveerrormiddleofbatches1364332f7fa?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "858d17bc-fe49-4062-94c8-05d6c94a589b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F456A572D", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "41b6be96-e01f-0043-7b68-97abfc000000", + "Date" : "Wed, 30 Sep 2020 20:27:36 GMT", + "x-ms-client-request-id" : "858d17bc-fe49-4062-94c8-05d6c94a589b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches008018c442767/javapathremoveaclrecursiveerrormiddleofbatches1364332f7fa/javapathremoveaclrecursiveerrormiddleofbatches24342268878?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "3091ce5e-bf8b-4b5e-9496-c4358ea00c7a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F4588980D", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "41b6be97-e01f-0043-7c68-97abfc000000", + "Date" : "Wed, 30 Sep 2020 20:27:36 GMT", + "x-ms-client-request-id" : "3091ce5e-bf8b-4b5e-9496-c4358ea00c7a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches008018c442767/javapathremoveaclrecursiveerrormiddleofbatches1364332f7fa/javapathremoveaclrecursiveerrormiddleofbatches24342268878/javapathremoveaclrecursiveerrormiddleofbatches363953300a0?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "32c8441f-6bd9-41c3-93bb-3055e0cecc24" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F459AF537", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "41b6be98-e01f-0043-7d68-97abfc000000", + "Date" : "Wed, 30 Sep 2020 20:27:36 GMT", + "x-ms-client-request-id" : "32c8441f-6bd9-41c3-93bb-3055e0cecc24" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches008018c442767/javapathremoveaclrecursiveerrormiddleofbatches1364332f7fa/javapathremoveaclrecursiveerrormiddleofbatches24342268878/javapathremoveaclrecursiveerrormiddleofbatches436435ff2a9?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "ce6b9a74-8145-43b0-8435-15e95f247826" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F45A99664", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "41b6be99-e01f-0043-7e68-97abfc000000", + "Date" : "Wed, 30 Sep 2020 20:27:36 GMT", + "x-ms-client-request-id" : "ce6b9a74-8145-43b0-8435-15e95f247826" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches008018c442767/javapathremoveaclrecursiveerrormiddleofbatches1364332f7fa/javapathremoveaclrecursiveerrormiddleofbatches542933ace73?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "3430dd39-227e-4483-badd-e97d92ba777b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F45B7803B", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "41b6be9a-e01f-0043-7f68-97abfc000000", + "Date" : "Wed, 30 Sep 2020 20:27:36 GMT", + "x-ms-client-request-id" : "3430dd39-227e-4483-badd-e97d92ba777b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches008018c442767/javapathremoveaclrecursiveerrormiddleofbatches1364332f7fa/javapathremoveaclrecursiveerrormiddleofbatches542933ace73/javapathremoveaclrecursiveerrormiddleofbatches6579748556a?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "d59bb7f2-19ac-4da5-bfd8-02e024dcf130" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F45C9675B", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "41b6be9b-e01f-0043-8068-97abfc000000", + "Date" : "Wed, 30 Sep 2020 20:27:36 GMT", + "x-ms-client-request-id" : "d59bb7f2-19ac-4da5-bfd8-02e024dcf130" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches008018c442767/javapathremoveaclrecursiveerrormiddleofbatches1364332f7fa/javapathremoveaclrecursiveerrormiddleofbatches777222043b7?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "2b577e25-bd42-4b7e-b553-7b25c150da41" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F45D889DD", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "41b6be9c-e01f-0043-0168-97abfc000000", + "Date" : "Wed, 30 Sep 2020 20:27:38 GMT", + "x-ms-client-request-id" : "2b577e25-bd42-4b7e-b553-7b25c150da41" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches008018c442767/javapathremoveaclrecursiveerrormiddleofbatches1364332f7fa?mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "dbef357e-d2f2-44ec-856c-ef30aa9a2b5c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBaciOiNidvilkQYnQIYlwIvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlZXJyb3JtaWRkbGVvZmJhdGNoZXMwMDgwMThjNDQyNzY3ATAxRDY5NzY4MjI1NDA3NzIvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmVlcnJvcm1pZGRsZW9mYmF0Y2hlczEzNjQzMzJmN2ZhL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlZXJyb3JtaWRkbGVvZmJhdGNoZXMyNDM0MjI2ODg3OC9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWVycm9ybWlkZGxlb2ZiYXRjaGVzMzYzOTUzMzAwYTAWAAAA", + "x-ms-request-id" : "41b6be9d-e01f-0043-0268-97abfc000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Wed, 30 Sep 2020 20:27:38 GMT", + "x-ms-client-request-id" : "dbef357e-d2f2-44ec-856c-ef30aa9a2b5c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsremoveaclrecursiveerrormiddleofbatches&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "2d7010d9-3684-43de-881d-6ad8a2fe38ba" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "efa44034-e01e-0088-4568-97a8a9000000", + "Body" : "jtfsremoveaclrecursiveerrormiddleofbatchesjtfsremoveaclrecursiveerrormiddleofbatches008018c442767Wed, 30 Sep 2020 20:27:36 GMT\"0x8D8657F44CAABE9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Wed, 30 Sep 2020 20:27:38 GMT", + "x-ms-client-request-id" : "2d7010d9-3684-43de-881d-6ad8a2fe38ba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches008018c442767?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "845e3203-d1a0-4a72-8178-a3982d3b1249" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "efa4405c-e01e-0088-6668-97a8a9000000", + "Date" : "Wed, 30 Sep 2020 20:27:38 GMT", + "x-ms-client-request-id" : "845e3203-d1a0-4a72-8178-a3982d3b1249" + }, + "Exception" : null + } ], + "variables" : [ "jtfsremoveaclrecursiveerrormiddleofbatches008018c442767", "javapathremoveaclrecursiveerrormiddleofbatches1364332f7fa", "javapathremoveaclrecursiveerrormiddleofbatches24342268878", "javapathremoveaclrecursiveerrormiddleofbatches363953300a0", "javapathremoveaclrecursiveerrormiddleofbatches436435ff2a9", "javapathremoveaclrecursiveerrormiddleofbatches542933ace73", "javapathremoveaclrecursiveerrormiddleofbatches6579748556a", "javapathremoveaclrecursiveerrormiddleofbatches777222043b7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursiveerrormiddleofbatches[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursiveerrormiddleofbatches[1].json new file mode 100644 index 0000000000000..ba430e44ca3e4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursiveerrormiddleofbatches[1].json @@ -0,0 +1,235 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches098521a710a9b?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "4b8d8dce-c359-4e16-8861-ffe10e5a52c3" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F46933B4C", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "efa4407a-e01e-0088-8068-97a8a9000000", + "Date" : "Wed, 30 Sep 2020 20:27:38 GMT", + "x-ms-client-request-id" : "4b8d8dce-c359-4e16-8861-ffe10e5a52c3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches098521a710a9b/javapathremoveaclrecursiveerrormiddleofbatches1581831eaa4?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "70cc03e1-d65b-4570-877c-16c1365a177b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F46D59192", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7fda7953-b01f-0095-3168-97a515000000", + "Date" : "Wed, 30 Sep 2020 20:27:38 GMT", + "x-ms-client-request-id" : "70cc03e1-d65b-4570-877c-16c1365a177b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches098521a710a9b/javapathremoveaclrecursiveerrormiddleofbatches1581831eaa4/javapathremoveaclrecursiveerrormiddleofbatches208925b385d?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "f1803298-7a9a-43b2-a159-36af34257c1f" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F46E3A682", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7fda7956-b01f-0095-3268-97a515000000", + "Date" : "Wed, 30 Sep 2020 20:27:38 GMT", + "x-ms-client-request-id" : "f1803298-7a9a-43b2-a159-36af34257c1f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches098521a710a9b/javapathremoveaclrecursiveerrormiddleofbatches1581831eaa4/javapathremoveaclrecursiveerrormiddleofbatches208925b385d/javapathremoveaclrecursiveerrormiddleofbatches341881407b7?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "0468490c-c9df-4aee-9fe6-91bdf054530d" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F46F36B60", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7fda7957-b01f-0095-3368-97a515000000", + "Date" : "Wed, 30 Sep 2020 20:27:39 GMT", + "x-ms-client-request-id" : "0468490c-c9df-4aee-9fe6-91bdf054530d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches098521a710a9b/javapathremoveaclrecursiveerrormiddleofbatches1581831eaa4/javapathremoveaclrecursiveerrormiddleofbatches208925b385d/javapathremoveaclrecursiveerrormiddleofbatches4776009bc52?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "bff7c799-cfde-4d7b-95c9-c1fdb5f88186" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F47024E81", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7fda7958-b01f-0095-3468-97a515000000", + "Date" : "Wed, 30 Sep 2020 20:27:39 GMT", + "x-ms-client-request-id" : "bff7c799-cfde-4d7b-95c9-c1fdb5f88186" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches098521a710a9b/javapathremoveaclrecursiveerrormiddleofbatches1581831eaa4/javapathremoveaclrecursiveerrormiddleofbatches514084552eb?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "397e8552-c410-4456-ac1d-1819335f60f6" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F471176AD", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7fda7959-b01f-0095-3568-97a515000000", + "Date" : "Wed, 30 Sep 2020 20:27:39 GMT", + "x-ms-client-request-id" : "397e8552-c410-4456-ac1d-1819335f60f6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches098521a710a9b/javapathremoveaclrecursiveerrormiddleofbatches1581831eaa4/javapathremoveaclrecursiveerrormiddleofbatches514084552eb/javapathremoveaclrecursiveerrormiddleofbatches6383298275c?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "2c84f2d3-0ee8-40b1-8587-41dab291103b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F47221B71", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7fda795a-b01f-0095-3668-97a515000000", + "Date" : "Wed, 30 Sep 2020 20:27:39 GMT", + "x-ms-client-request-id" : "2c84f2d3-0ee8-40b1-8587-41dab291103b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches098521a710a9b/javapathremoveaclrecursiveerrormiddleofbatches1581831eaa4/javapathremoveaclrecursiveerrormiddleofbatches776752d3fea?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "fe81d76e-089c-4cb4-9c26-2e65c56e0956" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F4733783B", + "Last-Modified" : "Wed, 30 Sep 2020 20:27:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7fda795b-b01f-0095-3768-97a515000000", + "Date" : "Wed, 30 Sep 2020 20:27:39 GMT", + "x-ms-client-request-id" : "fe81d76e-089c-4cb4-9c26-2e65c56e0956" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches098521a710a9b/javapathremoveaclrecursiveerrormiddleofbatches1581831eaa4?mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "ca55c13e-9092-4b5d-928f-0134e1bed9f3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBa+0qqGwoLo1E4YnQIYlwIvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlZXJyb3JtaWRkbGVvZmJhdGNoZXMwOTg1MjFhNzEwYTliATAxRDY5NzY4MjQxQzcwMEYvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmVlcnJvcm1pZGRsZW9mYmF0Y2hlczE1ODE4MzFlYWE0L2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlZXJyb3JtaWRkbGVvZmJhdGNoZXMyMDg5MjViMzg1ZC9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWVycm9ybWlkZGxlb2ZiYXRjaGVzMzQxODgxNDA3YjcWAAAA", + "x-ms-request-id" : "7fda795d-b01f-0095-3968-97a515000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Wed, 30 Sep 2020 20:27:40 GMT", + "x-ms-client-request-id" : "ca55c13e-9092-4b5d-928f-0134e1bed9f3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsremoveaclrecursiveerrormiddleofbatches&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "96936458-fc17-467d-a9a0-25e5df4d2122" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "efa4415e-e01e-0088-4368-97a8a9000000", + "Body" : "jtfsremoveaclrecursiveerrormiddleofbatchesjtfsremoveaclrecursiveerrormiddleofbatches098521a710a9bWed, 30 Sep 2020 20:27:39 GMT\"0x8D8657F46933B4C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Wed, 30 Sep 2020 20:27:40 GMT", + "x-ms-client-request-id" : "96936458-fc17-467d-a9a0-25e5df4d2122", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursiveerrormiddleofbatches098521a710a9b?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "9a2af807-e2e5-4a91-9eca-1728a60d690b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "efa44171-e01e-0088-5368-97a8a9000000", + "Date" : "Wed, 30 Sep 2020 20:27:40 GMT", + "x-ms-client-request-id" : "9a2af807-e2e5-4a91-9eca-1728a60d690b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsremoveaclrecursiveerrormiddleofbatches098521a710a9b", "javapathremoveaclrecursiveerrormiddleofbatches1581831eaa4", "javapathremoveaclrecursiveerrormiddleofbatches208925b385d", "javapathremoveaclrecursiveerrormiddleofbatches341881407b7", "javapathremoveaclrecursiveerrormiddleofbatches4776009bc52", "javapathremoveaclrecursiveerrormiddleofbatches514084552eb", "javapathremoveaclrecursiveerrormiddleofbatches6383298275c", "javapathremoveaclrecursiveerrormiddleofbatches776752d3fea" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursiveerrormiddleofbatches[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursiveerrormiddleofbatches[0].json new file mode 100644 index 0000000000000..cdb1265288e83 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursiveerrormiddleofbatches[0].json @@ -0,0 +1,235 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches05607458368e93b?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "cf9a43af-c038-4d0b-9b85-e714c2b14e9a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F6670B8F5", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "982fc98d-101e-0047-6c68-9726fb000000", + "Date" : "Wed, 30 Sep 2020 20:28:32 GMT", + "x-ms-client-request-id" : "cf9a43af-c038-4d0b-9b85-e714c2b14e9a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches05607458368e93b/javapathsetaclrecursiveerrormiddleofbatches1511126b0e44e?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "98ca1e6b-3c74-4457-a45a-9b35243544e7" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F66FB02E6", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3cb7b318-001f-0016-2768-97bb77000000", + "Date" : "Wed, 30 Sep 2020 20:28:32 GMT", + "x-ms-client-request-id" : "98ca1e6b-3c74-4457-a45a-9b35243544e7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches05607458368e93b/javapathsetaclrecursiveerrormiddleofbatches1511126b0e44e/javapathsetaclrecursiveerrormiddleofbatches2568305395346?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "037ea567-bb75-488b-a2fd-0140143cae5e" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F670E538B", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3cb7b319-001f-0016-2868-97bb77000000", + "Date" : "Wed, 30 Sep 2020 20:28:32 GMT", + "x-ms-client-request-id" : "037ea567-bb75-488b-a2fd-0140143cae5e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches05607458368e93b/javapathsetaclrecursiveerrormiddleofbatches1511126b0e44e/javapathsetaclrecursiveerrormiddleofbatches2568305395346/javapathsetaclrecursiveerrormiddleofbatches307515f9a7f94?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "740f3356-fc52-4563-90e0-6e4146544ebd" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F671E16F7", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3cb7b31b-001f-0016-2968-97bb77000000", + "Date" : "Wed, 30 Sep 2020 20:28:32 GMT", + "x-ms-client-request-id" : "740f3356-fc52-4563-90e0-6e4146544ebd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches05607458368e93b/javapathsetaclrecursiveerrormiddleofbatches1511126b0e44e/javapathsetaclrecursiveerrormiddleofbatches2568305395346/javapathsetaclrecursiveerrormiddleofbatches4554656929f03?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "15e07afc-3cb8-43d0-90bf-c7e37bc83089" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F672DAF79", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3cb7b31c-001f-0016-2a68-97bb77000000", + "Date" : "Wed, 30 Sep 2020 20:28:32 GMT", + "x-ms-client-request-id" : "15e07afc-3cb8-43d0-90bf-c7e37bc83089" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches05607458368e93b/javapathsetaclrecursiveerrormiddleofbatches1511126b0e44e/javapathsetaclrecursiveerrormiddleofbatches50172970bf747?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "f13c4b0d-ddb5-4641-8cd5-9c7eff3e6d3b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F673C7E54", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3cb7b31d-001f-0016-2b68-97bb77000000", + "Date" : "Wed, 30 Sep 2020 20:28:33 GMT", + "x-ms-client-request-id" : "f13c4b0d-ddb5-4641-8cd5-9c7eff3e6d3b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches05607458368e93b/javapathsetaclrecursiveerrormiddleofbatches1511126b0e44e/javapathsetaclrecursiveerrormiddleofbatches50172970bf747/javapathsetaclrecursiveerrormiddleofbatches642442dd34ec8?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "19ad6f9f-8537-4961-9550-fdeb8d35776f" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F674B9597", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3cb7b31e-001f-0016-2c68-97bb77000000", + "Date" : "Wed, 30 Sep 2020 20:28:33 GMT", + "x-ms-client-request-id" : "19ad6f9f-8537-4961-9550-fdeb8d35776f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches05607458368e93b/javapathsetaclrecursiveerrormiddleofbatches1511126b0e44e/javapathsetaclrecursiveerrormiddleofbatches7895220989396?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "ff46f063-7bd8-4d3a-96c4-3085376a0fb1" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F675AA22E", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3cb7b31f-001f-0016-2d68-97bb77000000", + "Date" : "Wed, 30 Sep 2020 20:28:33 GMT", + "x-ms-client-request-id" : "ff46f063-7bd8-4d3a-96c4-3085376a0fb1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches05607458368e93b/javapathsetaclrecursiveerrormiddleofbatches1511126b0e44e?mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "1f0b389e-aae2-4e93-bbed-e33c3ae2b337" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBa9vKPf4tPvrn4YmQIYkwIvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlZXJyb3JtaWRkbGVvZmJhdGNoZXMwNTYwNzQ1ODM2OGU5M2IBMDFENjk3Njg0M0ZBM0E5Mi9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWVycm9ybWlkZGxlb2ZiYXRjaGVzMTUxMTEyNmIwZTQ0ZS9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWVycm9ybWlkZGxlb2ZiYXRjaGVzMjU2ODMwNTM5NTM0Ni9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWVycm9ybWlkZGxlb2ZiYXRjaGVzMzA3NTE1ZjlhN2Y5NBYAAAA=", + "x-ms-request-id" : "3cb7b320-001f-0016-2e68-97bb77000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Wed, 30 Sep 2020 20:28:33 GMT", + "x-ms-client-request-id" : "1f0b389e-aae2-4e93-bbed-e33c3ae2b337" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfssetaclrecursiveerrormiddleofbatches&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "34cfda4f-7c82-4c98-b7ea-d47d51f190f2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "982fcc9f-101e-0047-3e68-9726fb000000", + "Body" : "jtfssetaclrecursiveerrormiddleofbatchesjtfssetaclrecursiveerrormiddleofbatches05607458368e93bWed, 30 Sep 2020 20:28:32 GMT\"0x8D8657F6670B8F5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Wed, 30 Sep 2020 20:28:34 GMT", + "x-ms-client-request-id" : "34cfda4f-7c82-4c98-b7ea-d47d51f190f2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches05607458368e93b?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "60ff9029-0e10-4ee2-a5ad-c5cbe27ba1c2" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "982fcd02-101e-0047-1968-9726fb000000", + "Date" : "Wed, 30 Sep 2020 20:28:34 GMT", + "x-ms-client-request-id" : "60ff9029-0e10-4ee2-a5ad-c5cbe27ba1c2" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaclrecursiveerrormiddleofbatches05607458368e93b", "javapathsetaclrecursiveerrormiddleofbatches1511126b0e44e", "javapathsetaclrecursiveerrormiddleofbatches2568305395346", "javapathsetaclrecursiveerrormiddleofbatches307515f9a7f94", "javapathsetaclrecursiveerrormiddleofbatches4554656929f03", "javapathsetaclrecursiveerrormiddleofbatches50172970bf747", "javapathsetaclrecursiveerrormiddleofbatches642442dd34ec8", "javapathsetaclrecursiveerrormiddleofbatches7895220989396" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursiveerrormiddleofbatches[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursiveerrormiddleofbatches[1].json new file mode 100644 index 0000000000000..ba067e448c5c3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursiveerrormiddleofbatches[1].json @@ -0,0 +1,235 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches067308a0856f7a6?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "5177e16f-d4e5-4c49-ab26-66e2d8a78dc4" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F67F295AC", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "982fcd4a-101e-0047-5a68-9726fb000000", + "Date" : "Wed, 30 Sep 2020 20:28:34 GMT", + "x-ms-client-request-id" : "5177e16f-d4e5-4c49-ab26-66e2d8a78dc4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches067308a0856f7a6/javapathsetaclrecursiveerrormiddleofbatches105436caf9ab8?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "6f1e726b-860a-49d2-b5a5-61d0272038a1" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F6831D33B", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ac8443ea-901f-0014-3668-9705cf000000", + "Date" : "Wed, 30 Sep 2020 20:28:35 GMT", + "x-ms-client-request-id" : "6f1e726b-860a-49d2-b5a5-61d0272038a1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches067308a0856f7a6/javapathsetaclrecursiveerrormiddleofbatches105436caf9ab8/javapathsetaclrecursiveerrormiddleofbatches231454cf4498f?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "a3bb1e3a-be0e-4372-846f-b0c548b51228" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F6840D508", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ac8443eb-901f-0014-3768-9705cf000000", + "Date" : "Wed, 30 Sep 2020 20:28:35 GMT", + "x-ms-client-request-id" : "a3bb1e3a-be0e-4372-846f-b0c548b51228" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches067308a0856f7a6/javapathsetaclrecursiveerrormiddleofbatches105436caf9ab8/javapathsetaclrecursiveerrormiddleofbatches231454cf4498f/javapathsetaclrecursiveerrormiddleofbatches3832553438171?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "e793cf7a-2384-4c81-a9a7-7112d1c3cbba" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F6855DF6E", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ac8443ec-901f-0014-3868-9705cf000000", + "Date" : "Wed, 30 Sep 2020 20:28:35 GMT", + "x-ms-client-request-id" : "e793cf7a-2384-4c81-a9a7-7112d1c3cbba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches067308a0856f7a6/javapathsetaclrecursiveerrormiddleofbatches105436caf9ab8/javapathsetaclrecursiveerrormiddleofbatches231454cf4498f/javapathsetaclrecursiveerrormiddleofbatches4198642009346?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "ba2ee804-13f2-4ac9-b5a4-2f622f08fa62" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F686504FA", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ac8443ed-901f-0014-3968-9705cf000000", + "Date" : "Wed, 30 Sep 2020 20:28:35 GMT", + "x-ms-client-request-id" : "ba2ee804-13f2-4ac9-b5a4-2f622f08fa62" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches067308a0856f7a6/javapathsetaclrecursiveerrormiddleofbatches105436caf9ab8/javapathsetaclrecursiveerrormiddleofbatches563807c60a549?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "0a90b42c-6955-4821-b242-5d4525496053" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F68734AD4", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ac8443ee-901f-0014-3a68-9705cf000000", + "Date" : "Wed, 30 Sep 2020 20:28:35 GMT", + "x-ms-client-request-id" : "0a90b42c-6955-4821-b242-5d4525496053" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches067308a0856f7a6/javapathsetaclrecursiveerrormiddleofbatches105436caf9ab8/javapathsetaclrecursiveerrormiddleofbatches563807c60a549/javapathsetaclrecursiveerrormiddleofbatches6140938aae84a?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "6df60c3d-1df4-44cc-b825-b85dd707c490" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F688217DF", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ac8443ef-901f-0014-3b68-9705cf000000", + "Date" : "Wed, 30 Sep 2020 20:28:35 GMT", + "x-ms-client-request-id" : "6df60c3d-1df4-44cc-b825-b85dd707c490" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches067308a0856f7a6/javapathsetaclrecursiveerrormiddleofbatches105436caf9ab8/javapathsetaclrecursiveerrormiddleofbatches72082505ccfac?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "cb01b3f0-5375-4cef-8694-42342aaf8a1b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F6890F300", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ac8443f0-901f-0014-3c68-9705cf000000", + "Date" : "Wed, 30 Sep 2020 20:28:35 GMT", + "x-ms-client-request-id" : "cb01b3f0-5375-4cef-8694-42342aaf8a1b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches067308a0856f7a6/javapathsetaclrecursiveerrormiddleofbatches105436caf9ab8?mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "0a309574-b3e2-4b95-ab49-ccdcdf57b908" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBaqn+2B1bS7yBMYmQIYkwIvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlZXJyb3JtaWRkbGVvZmJhdGNoZXMwNjczMDhhMDg1NmY3YTYBMDFENjk3Njg0NTdCRjA1RS9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWVycm9ybWlkZGxlb2ZiYXRjaGVzMTA1NDM2Y2FmOWFiOC9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWVycm9ybWlkZGxlb2ZiYXRjaGVzMjMxNDU0Y2Y0NDk4Zi9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWVycm9ybWlkZGxlb2ZiYXRjaGVzMzgzMjU1MzQzODE3MRYAAAA=", + "x-ms-request-id" : "ac8443f1-901f-0014-3d68-9705cf000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Wed, 30 Sep 2020 20:28:35 GMT", + "x-ms-client-request-id" : "0a309574-b3e2-4b95-ab49-ccdcdf57b908" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfssetaclrecursiveerrormiddleofbatches&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "5195fd72-e3d6-4057-b57f-dd0a181ed5c6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "982fcf6d-101e-0047-4368-9726fb000000", + "Body" : "jtfssetaclrecursiveerrormiddleofbatchesjtfssetaclrecursiveerrormiddleofbatches067308a0856f7a6Wed, 30 Sep 2020 20:28:35 GMT\"0x8D8657F67F295AC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Wed, 30 Sep 2020 20:28:36 GMT", + "x-ms-client-request-id" : "5195fd72-e3d6-4057-b57f-dd0a181ed5c6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursiveerrormiddleofbatches067308a0856f7a6?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "1361f222-8456-4251-8369-d8b01d5c42fd" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "982fcf95-101e-0047-6968-9726fb000000", + "Date" : "Wed, 30 Sep 2020 20:28:36 GMT", + "x-ms-client-request-id" : "1361f222-8456-4251-8369-d8b01d5c42fd" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaclrecursiveerrormiddleofbatches067308a0856f7a6", "javapathsetaclrecursiveerrormiddleofbatches105436caf9ab8", "javapathsetaclrecursiveerrormiddleofbatches231454cf4498f", "javapathsetaclrecursiveerrormiddleofbatches3832553438171", "javapathsetaclrecursiveerrormiddleofbatches4198642009346", "javapathsetaclrecursiveerrormiddleofbatches563807c60a549", "javapathsetaclrecursiveerrormiddleofbatches6140938aae84a", "javapathsetaclrecursiveerrormiddleofbatches72082505ccfac" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursiveerrormiddleofbatches[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursiveerrormiddleofbatches[0].json new file mode 100644 index 0000000000000..c32ef62c7c21a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursiveerrormiddleofbatches[0].json @@ -0,0 +1,235 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches08129886284a3?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "3625d646-8d92-4b1d-b390-c07fa4bebf66" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F5418AA54", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2128d20b-e01e-001e-0a68-97a178000000", + "Date" : "Wed, 30 Sep 2020 20:28:01 GMT", + "x-ms-client-request-id" : "3625d646-8d92-4b1d-b390-c07fa4bebf66" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches08129886284a3/javapathupdateaclrecursiveerrormiddleofbatches1755744c7fd?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "35817743-8fd2-4161-b66a-c9bd37473604" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F548DB61E", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e7113f77-401f-0007-7a68-9721c3000000", + "Date" : "Wed, 30 Sep 2020 20:28:02 GMT", + "x-ms-client-request-id" : "35817743-8fd2-4161-b66a-c9bd37473604" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches08129886284a3/javapathupdateaclrecursiveerrormiddleofbatches1755744c7fd/javapathupdateaclrecursiveerrormiddleofbatches211211732ce?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "aca7bedc-0194-4596-b110-fa390464e367" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F54A55F66", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e7113f78-401f-0007-7b68-9721c3000000", + "Date" : "Wed, 30 Sep 2020 20:28:02 GMT", + "x-ms-client-request-id" : "aca7bedc-0194-4596-b110-fa390464e367" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches08129886284a3/javapathupdateaclrecursiveerrormiddleofbatches1755744c7fd/javapathupdateaclrecursiveerrormiddleofbatches211211732ce/javapathupdateaclrecursiveerrormiddleofbatches391181cb20d?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "3c8f032e-0029-473f-834c-5e8513b18dab" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F54B57753", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e7113f79-401f-0007-7c68-9721c3000000", + "Date" : "Wed, 30 Sep 2020 20:28:02 GMT", + "x-ms-client-request-id" : "3c8f032e-0029-473f-834c-5e8513b18dab" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches08129886284a3/javapathupdateaclrecursiveerrormiddleofbatches1755744c7fd/javapathupdateaclrecursiveerrormiddleofbatches211211732ce/javapathupdateaclrecursiveerrormiddleofbatches4174892179a?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "dae611e0-62bc-416c-b620-c8e1aa8a8f83" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F54C80D17", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e7113f7a-401f-0007-7d68-9721c3000000", + "Date" : "Wed, 30 Sep 2020 20:28:02 GMT", + "x-ms-client-request-id" : "dae611e0-62bc-416c-b620-c8e1aa8a8f83" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches08129886284a3/javapathupdateaclrecursiveerrormiddleofbatches1755744c7fd/javapathupdateaclrecursiveerrormiddleofbatches51885921031?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "860bd45e-8d46-4900-a7c7-33e3189c8f84" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F54D9355B", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e7113f7b-401f-0007-7e68-9721c3000000", + "Date" : "Wed, 30 Sep 2020 20:28:02 GMT", + "x-ms-client-request-id" : "860bd45e-8d46-4900-a7c7-33e3189c8f84" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches08129886284a3/javapathupdateaclrecursiveerrormiddleofbatches1755744c7fd/javapathupdateaclrecursiveerrormiddleofbatches51885921031/javapathupdateaclrecursiveerrormiddleofbatches648974dec3f?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "77be0e7c-b5c0-4491-8f96-c2abf81d505a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F54EBD0D1", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e7113f7c-401f-0007-7f68-9721c3000000", + "Date" : "Wed, 30 Sep 2020 20:28:02 GMT", + "x-ms-client-request-id" : "77be0e7c-b5c0-4491-8f96-c2abf81d505a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches08129886284a3/javapathupdateaclrecursiveerrormiddleofbatches1755744c7fd/javapathupdateaclrecursiveerrormiddleofbatches799258942a2?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "dc5ad9ef-c916-47e2-ae43-a4f5848451c5" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F54FC189F", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e7113f7d-401f-0007-8068-9721c3000000", + "Date" : "Wed, 30 Sep 2020 20:28:02 GMT", + "x-ms-client-request-id" : "dc5ad9ef-c916-47e2-ae43-a4f5848451c5" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches08129886284a3/javapathupdateaclrecursiveerrormiddleofbatches1755744c7fd?mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "6588bfc6-5f3f-47d3-974e-5de0c3d15b25" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBb3ia2N8dLu0X8YnQIYlwIvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzdXBkYXRlYWNscmVjdXJzaXZlZXJyb3JtaWRkbGVvZmJhdGNoZXMwODEyOTg4NjI4NGEzATAxRDY5NzY4MzFBMjBGMjQvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmVlcnJvcm1pZGRsZW9mYmF0Y2hlczE3NTU3NDRjN2ZkL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlZXJyb3JtaWRkbGVvZmJhdGNoZXMyMTEyMTE3MzJjZS9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWVycm9ybWlkZGxlb2ZiYXRjaGVzMzkxMTgxY2IyMGQWAAAA", + "x-ms-request-id" : "e7113f7e-401f-0007-0168-9721c3000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Wed, 30 Sep 2020 20:28:03 GMT", + "x-ms-client-request-id" : "6588bfc6-5f3f-47d3-974e-5de0c3d15b25" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsupdateaclrecursiveerrormiddleofbatches&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "6b6b323e-487e-4a36-829b-77d898d30865" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2128d32a-e01e-001e-7268-97a178000000", + "Body" : "jtfsupdateaclrecursiveerrormiddleofbatchesjtfsupdateaclrecursiveerrormiddleofbatches08129886284a3Wed, 30 Sep 2020 20:28:01 GMT\"0x8D8657F5418AA54\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Wed, 30 Sep 2020 20:28:03 GMT", + "x-ms-client-request-id" : "6b6b323e-487e-4a36-829b-77d898d30865", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches08129886284a3?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "f6f33a38-cc43-4b11-b3dc-46ccb8d6aa8e" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2128d34c-e01e-001e-0868-97a178000000", + "Date" : "Wed, 30 Sep 2020 20:28:03 GMT", + "x-ms-client-request-id" : "f6f33a38-cc43-4b11-b3dc-46ccb8d6aa8e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsupdateaclrecursiveerrormiddleofbatches08129886284a3", "javapathupdateaclrecursiveerrormiddleofbatches1755744c7fd", "javapathupdateaclrecursiveerrormiddleofbatches211211732ce", "javapathupdateaclrecursiveerrormiddleofbatches391181cb20d", "javapathupdateaclrecursiveerrormiddleofbatches4174892179a", "javapathupdateaclrecursiveerrormiddleofbatches51885921031", "javapathupdateaclrecursiveerrormiddleofbatches648974dec3f", "javapathupdateaclrecursiveerrormiddleofbatches799258942a2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursiveerrormiddleofbatches[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursiveerrormiddleofbatches[1].json new file mode 100644 index 0000000000000..978997315f285 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursiveerrormiddleofbatches[1].json @@ -0,0 +1,235 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches073221211d2f0?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "63f7c916-2d2c-4059-ab10-e17f2be195a7" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F55BB8294", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2128d35e-e01e-001e-1968-97a178000000", + "Date" : "Wed, 30 Sep 2020 20:28:04 GMT", + "x-ms-client-request-id" : "63f7c916-2d2c-4059-ab10-e17f2be195a7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches073221211d2f0/javapathupdateaclrecursiveerrormiddleofbatches1392587e508?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "23bbedf8-415c-4812-ae6e-c57411e37346" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F55FECD15", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3c71a158-901f-0082-6468-970c1e000000", + "Date" : "Wed, 30 Sep 2020 20:28:04 GMT", + "x-ms-client-request-id" : "23bbedf8-415c-4812-ae6e-c57411e37346" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches073221211d2f0/javapathupdateaclrecursiveerrormiddleofbatches1392587e508/javapathupdateaclrecursiveerrormiddleofbatches20744800fba?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "0caa0ce4-d376-4c15-a123-58eadcd5e4a0" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F560D750F", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3c71a159-901f-0082-6568-970c1e000000", + "Date" : "Wed, 30 Sep 2020 20:28:04 GMT", + "x-ms-client-request-id" : "0caa0ce4-d376-4c15-a123-58eadcd5e4a0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches073221211d2f0/javapathupdateaclrecursiveerrormiddleofbatches1392587e508/javapathupdateaclrecursiveerrormiddleofbatches20744800fba/javapathupdateaclrecursiveerrormiddleofbatches3613959e63a?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "d2738c79-acd3-4521-b2fc-9c37a802f587" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F56203243", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3c71a15a-901f-0082-6668-970c1e000000", + "Date" : "Wed, 30 Sep 2020 20:28:04 GMT", + "x-ms-client-request-id" : "d2738c79-acd3-4521-b2fc-9c37a802f587" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches073221211d2f0/javapathupdateaclrecursiveerrormiddleofbatches1392587e508/javapathupdateaclrecursiveerrormiddleofbatches20744800fba/javapathupdateaclrecursiveerrormiddleofbatches462381d23aa?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "14bf0307-adfb-42ca-b494-379165b6d127" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F5632878B", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3c71a15b-901f-0082-6768-970c1e000000", + "Date" : "Wed, 30 Sep 2020 20:28:04 GMT", + "x-ms-client-request-id" : "14bf0307-adfb-42ca-b494-379165b6d127" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches073221211d2f0/javapathupdateaclrecursiveerrormiddleofbatches1392587e508/javapathupdateaclrecursiveerrormiddleofbatches569989cb799?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "924c6599-4fb3-4bd8-8955-2c9378457cf2" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F5645565F", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3c71a15d-901f-0082-6868-970c1e000000", + "Date" : "Wed, 30 Sep 2020 20:28:05 GMT", + "x-ms-client-request-id" : "924c6599-4fb3-4bd8-8955-2c9378457cf2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches073221211d2f0/javapathupdateaclrecursiveerrormiddleofbatches1392587e508/javapathupdateaclrecursiveerrormiddleofbatches569989cb799/javapathupdateaclrecursiveerrormiddleofbatches64298847a90?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "71b5f1f0-b47f-4bc8-becf-59b1d1fd7374" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F565441B4", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3c71a15e-901f-0082-6968-970c1e000000", + "Date" : "Wed, 30 Sep 2020 20:28:05 GMT", + "x-ms-client-request-id" : "71b5f1f0-b47f-4bc8-becf-59b1d1fd7374" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches073221211d2f0/javapathupdateaclrecursiveerrormiddleofbatches1392587e508/javapathupdateaclrecursiveerrormiddleofbatches792092f047e?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "b673277b-b8cb-45f4-a25a-17be5628c2a8" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D8657F5663308B", + "Last-Modified" : "Wed, 30 Sep 2020 20:28:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3c71a15f-901f-0082-6a68-970c1e000000", + "Date" : "Wed, 30 Sep 2020 20:28:05 GMT", + "x-ms-client-request-id" : "b673277b-b8cb-45f4-a25a-17be5628c2a8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches073221211d2f0/javapathupdateaclrecursiveerrormiddleofbatches1392587e508?mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "7de025f1-37b6-454d-b0ea-280a21dd5839" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBa3opvOyLKG3hYYnQIYlwIvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzdXBkYXRlYWNscmVjdXJzaXZlZXJyb3JtaWRkbGVvZmJhdGNoZXMwNzMyMjEyMTFkMmYwATAxRDY5NzY4MzM0NEU3QkEvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmVlcnJvcm1pZGRsZW9mYmF0Y2hlczEzOTI1ODdlNTA4L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlZXJyb3JtaWRkbGVvZmJhdGNoZXMyMDc0NDgwMGZiYS9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWVycm9ybWlkZGxlb2ZiYXRjaGVzMzYxMzk1OWU2M2EWAAAA", + "x-ms-request-id" : "3c71a160-901f-0082-6b68-970c1e000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Wed, 30 Sep 2020 20:28:05 GMT", + "x-ms-client-request-id" : "7de025f1-37b6-454d-b0ea-280a21dd5839" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsupdateaclrecursiveerrormiddleofbatches&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "121d4c5b-24bf-44cd-8510-adbdf031bfd5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2128d3f9-e01e-001e-7c68-97a178000000", + "Body" : "jtfsupdateaclrecursiveerrormiddleofbatchesjtfsupdateaclrecursiveerrormiddleofbatches073221211d2f0Wed, 30 Sep 2020 20:28:04 GMT\"0x8D8657F55BB8294\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Wed, 30 Sep 2020 20:28:05 GMT", + "x-ms-client-request-id" : "121d4c5b-24bf-44cd-8510-adbdf031bfd5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursiveerrormiddleofbatches073221211d2f0?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.7; Windows 10; 10.0)", + "x-ms-client-request-id" : "b8d20826-cea8-4b9f-850a-313edfb3383d" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2128d40a-e01e-001e-0a68-97a178000000", + "Date" : "Wed, 30 Sep 2020 20:28:05 GMT", + "x-ms-client-request-id" : "b8d20826-cea8-4b9f-850a-313edfb3383d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsupdateaclrecursiveerrormiddleofbatches073221211d2f0", "javapathupdateaclrecursiveerrormiddleofbatches1392587e508", "javapathupdateaclrecursiveerrormiddleofbatches20744800fba", "javapathupdateaclrecursiveerrormiddleofbatches3613959e63a", "javapathupdateaclrecursiveerrormiddleofbatches462381d23aa", "javapathupdateaclrecursiveerrormiddleofbatches569989cb799", "javapathupdateaclrecursiveerrormiddleofbatches64298847a90", "javapathupdateaclrecursiveerrormiddleofbatches792092f047e" ] +} \ No newline at end of file