From 78fc7cf419be4d6aa4d34d942cc4c0b80456f86a Mon Sep 17 00:00:00 2001 From: alzimmermsft <48699787+alzimmermsft@users.noreply.github.com> Date: Tue, 8 Sep 2020 12:30:12 -0700 Subject: [PATCH 1/2] Fix AppConfiguration live tests --- .../azure-data-appconfiguration/pom.xml | 10 +++++----- .../main/java/com/azure/core/http/rest/RestProxy.java | 4 ++-- sdk/identity/azure-identity/pom.xml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sdk/appconfiguration/azure-data-appconfiguration/pom.xml b/sdk/appconfiguration/azure-data-appconfiguration/pom.xml index 49743d4228d2f..80344921f063a 100644 --- a/sdk/appconfiguration/azure-data-appconfiguration/pom.xml +++ b/sdk/appconfiguration/azure-data-appconfiguration/pom.xml @@ -36,25 +36,25 @@ com.azure azure-core - 1.8.0 + 1.9.0-beta.1 com.azure azure-core-http-netty - 1.6.0 + 1.7.0-beta.1 com.azure azure-core-test - 1.4.1 + 1.5.0-beta.1 test com.azure azure-core-http-okhttp - 1.3.0 + 1.4.0-beta.1 test @@ -90,7 +90,7 @@ com.azure azure-identity - 1.1.0 + 1.2.0-beta.1 test diff --git a/sdk/core/azure-core/src/main/java/com/azure/core/http/rest/RestProxy.java b/sdk/core/azure-core/src/main/java/com/azure/core/http/rest/RestProxy.java index c5144ce8f81fc..6582d6193ad77 100644 --- a/sdk/core/azure-core/src/main/java/com/azure/core/http/rest/RestProxy.java +++ b/sdk/core/azure-core/src/main/java/com/azure/core/http/rest/RestProxy.java @@ -279,7 +279,7 @@ private HttpRequest configRequest(final HttpRequest request, final SwaggerMethod serializer.serialize(bodyContentObject, SerializerEncoding.JSON, stream); request.setHeader("Content-Length", String.valueOf(stream.size())); - request.setBody(Flux.just(ByteBuffer.wrap(stream.toByteArray(), 0, stream.size()))); + request.setBody(Flux.defer(() -> Flux.just(ByteBuffer.wrap(stream.toByteArray(), 0, stream.size())))); } else if (FluxUtil.isFluxByteBuffer(methodParser.getBodyJavaType())) { // Content-Length or Transfer-Encoding: chunked must be provided by a user-specified header when a // Flowable is given for the body. @@ -298,7 +298,7 @@ private HttpRequest configRequest(final HttpRequest request, final SwaggerMethod serializer.serialize(bodyContentObject, SerializerEncoding.fromHeaders(request.getHeaders()), stream); request.setHeader("Content-Length", String.valueOf(stream.size())); - request.setBody(Flux.just(ByteBuffer.wrap(stream.toByteArray(), 0, stream.size()))); + request.setBody(Flux.defer(() -> Flux.just(ByteBuffer.wrap(stream.toByteArray(), 0, stream.size())))); } } diff --git a/sdk/identity/azure-identity/pom.xml b/sdk/identity/azure-identity/pom.xml index fd9b15a1d0fb6..7ccbe93da7c5b 100644 --- a/sdk/identity/azure-identity/pom.xml +++ b/sdk/identity/azure-identity/pom.xml @@ -27,7 +27,7 @@ com.azure azure-core - 1.8.0 + 1.9.0-beta.1 com.microsoft.azure From e1c41cce914ee6c537a96004c25e05e46530e6b3 Mon Sep 17 00:00:00 2001 From: alzimmermsft <48699787+alzimmermsft@users.noreply.github.com> Date: Tue, 8 Sep 2020 12:50:06 -0700 Subject: [PATCH 2/2] Update Form Recognizer and Text Analytics as additional validation, fix version checks --- eng/versioning/version_client.txt | 5 +++++ .../azure-data-appconfiguration/pom.xml | 10 +++++----- sdk/formrecognizer/azure-ai-formrecognizer/pom.xml | 10 +++++----- sdk/identity/azure-identity/pom.xml | 4 ++-- sdk/textanalytics/azure-ai-textanalytics/pom.xml | 10 +++++----- 5 files changed, 22 insertions(+), 17 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index d481b5a2a6c32..fc5cf296090b2 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -130,6 +130,11 @@ com.microsoft.azure:spring-cloud-azure-eventhubs-stream-binder;1.2.8-beta.1;1.2. # Format; # unreleased_:;dependency-version # note: The unreleased dependencies will not be manipulated with the automatic PR creation code. +unreleased_com.azure:azure-core;1.9.0-beta.1 +unreleased_com.azure:azure-core-test;1.5.0-beta.1 +unreleased_com.azure:azure-core-http-netty;1.7.0-beta.1 +unreleased_com.azure:azure-core-http-okhttp;1.4.0-beta.1 +unreleased_com.azure:azure-identity;1.2.0-beta.1 unreleased_com.azure:azure-core-amqp;1.5.0-beta.1 unreleased_com.azure:azure-messaging-servicebus;7.0.0-beta.5 unreleased_com.azure:azure-security-keyvault-keys;4.3.0-beta.1 diff --git a/sdk/appconfiguration/azure-data-appconfiguration/pom.xml b/sdk/appconfiguration/azure-data-appconfiguration/pom.xml index 80344921f063a..2ff392161f545 100644 --- a/sdk/appconfiguration/azure-data-appconfiguration/pom.xml +++ b/sdk/appconfiguration/azure-data-appconfiguration/pom.xml @@ -36,25 +36,25 @@ com.azure azure-core - 1.9.0-beta.1 + 1.9.0-beta.1 com.azure azure-core-http-netty - 1.7.0-beta.1 + 1.7.0-beta.1 com.azure azure-core-test - 1.5.0-beta.1 + 1.5.0-beta.1 test com.azure azure-core-http-okhttp - 1.4.0-beta.1 + 1.4.0-beta.1 test @@ -90,7 +90,7 @@ com.azure azure-identity - 1.2.0-beta.1 + 1.2.0-beta.1 test diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/pom.xml b/sdk/formrecognizer/azure-ai-formrecognizer/pom.xml index cba43d5f080b3..1560a251de677 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/pom.xml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/pom.xml @@ -36,25 +36,25 @@ com.azure azure-core - 1.8.0 + 1.9.0-beta.1 com.azure azure-core-http-netty - 1.6.0 + 1.7.0-beta.1 com.azure azure-core-test - 1.4.1 + 1.5.0-beta.1 test com.azure azure-core-http-okhttp - 1.3.0 + 1.4.0-beta.1 test @@ -78,7 +78,7 @@ com.azure azure-identity - 1.1.0 + 1.2.0-beta.1 test diff --git a/sdk/identity/azure-identity/pom.xml b/sdk/identity/azure-identity/pom.xml index 7ccbe93da7c5b..415ab05714fc9 100644 --- a/sdk/identity/azure-identity/pom.xml +++ b/sdk/identity/azure-identity/pom.xml @@ -27,7 +27,7 @@ com.azure azure-core - 1.9.0-beta.1 + 1.9.0-beta.1 com.microsoft.azure @@ -83,7 +83,7 @@ com.azure azure-core-http-netty - 1.6.0 + 1.7.0-beta.1 test diff --git a/sdk/textanalytics/azure-ai-textanalytics/pom.xml b/sdk/textanalytics/azure-ai-textanalytics/pom.xml index 7b8eeea35fc73..796cf748693ea 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/pom.xml +++ b/sdk/textanalytics/azure-ai-textanalytics/pom.xml @@ -36,12 +36,12 @@ com.azure azure-core - 1.8.0 + 1.9.0-beta.1 com.azure azure-core-http-netty - 1.6.0 + 1.7.0-beta.1 + 1.5.0-beta.1 test com.azure azure-core-http-okhttp - 1.3.0 + 1.4.0-beta.1 test @@ -88,7 +88,7 @@ com.azure azure-identity - 1.1.0 + 1.2.0-beta.1 test