Skip to content

Commit

Permalink
DXE-4485 Merge pull request #57 from akamai/release/6.0.1
Browse files Browse the repository at this point in the history
Release/6.0.1
  • Loading branch information
mimazaka authored Dec 17, 2024
2 parents 2036ea0 + bfd9d22 commit 631da42
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 19 deletions.
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# Change log

## 6.0.1 (December 17, 2024)

### Fixes

* Fixed vulnerability by upgrading the `asynchttpclient` module to 3.0.1 .
* Removed checks in the `AsyncHttpClientEdgeGridRequestSigner` class for the `ReactiveStreamsBodyGenerator` case, which is no longer available in a new version of the `asynchttpclient` module.
* Fixed some build errors by upgrading the JaCoCo library.

## 6.0.0 (August 21, 2024)

### BREAKING CHANGES

* Replaced deprecated `ApacheHttpTransport` with `com.google.api.client.http.apache.v2.ApacheHttpTransport` in `edgegrid-signer-google-http-client`.
* Updated `README.md` for `edgegrid-signer-google-http-client` to include changes in the instructions for signing HTTP requests with specified client credentials.
* Replaced the deprecated `ApacheHttpTransport` method with `com.google.api.client.http.apache.v2.ApacheHttpTransport` in the `edgegrid-signer-google-http-client` module.
* Updated the `README.md` file for the `edgegrid-signer-google-http-client` module to include changes in the instructions for signing HTTP requests with specified client credentials.

### Improvements

* Add support for `ProxySelector` in `ApacheHttpClientEdgeGridRoutePlanner` to enable the use of custom proxy servers.
* Added support for `ProxySelector` in the `ApacheHttpClientEdgeGridRoutePlanner` method to enable the use of custom proxy servers.

### Fixes

Expand Down
2 changes: 1 addition & 1 deletion edgegrid-signer-apache-http-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>edgegrid-signer-parent</artifactId>
<groupId>com.akamai.edgegrid</groupId>
<version>6.0.0</version>
<version>6.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion edgegrid-signer-apache-http-client5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>edgegrid-signer-parent</artifactId>
<groupId>com.akamai.edgegrid</groupId>
<version>6.0.0</version>
<version>6.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion edgegrid-signer-async-http-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>edgegrid-signer-parent</artifactId>
<groupId>com.akamai.edgegrid</groupId>
<version>6.0.0</version>
<version>6.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.asynchttpclient.RequestBuilderBase;
import org.asynchttpclient.request.body.generator.FileBodyGenerator;
import org.asynchttpclient.request.body.generator.InputStreamBodyGenerator;
import org.asynchttpclient.request.body.generator.ReactiveStreamsBodyGenerator;
import org.asynchttpclient.uri.Uri;

import java.net.URI;
Expand Down Expand Up @@ -112,8 +111,6 @@ private byte[] serializeBody(Request request) {
throw new UnsupportedOperationException("Serializing FileBodyGenerator in request body is not supported");
} else if (request.getBodyGenerator() instanceof InputStreamBodyGenerator) {
throw new UnsupportedOperationException("Serializing InputStreamBodyGenerator in request body is not supported");
} else if (request.getBodyGenerator() instanceof ReactiveStreamsBodyGenerator) {
throw new UnsupportedOperationException("Serializing ReactiveStreamsBodyGenerator in request body is not supported");
} else if (request.getBodyGenerator() != null) {
throw new UnsupportedOperationException("Serializing generic BodyGenerator in request body is not supported");
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void testCalculateAndAddSignatureForGet(Request request) throws Exception
.host("endpoint.net")
.build();

RequestBuilder requestToUpdate = new RequestBuilder(request);
RequestBuilder requestToUpdate = new RequestBuilder(request.toString());
new AsyncHttpClientEdgeGridSignatureCalculator(credential).calculateAndAddSignature(
request, requestToUpdate);
Request updatedRequest = requestToUpdate.build();
Expand All @@ -65,7 +65,7 @@ public void testPreservingQueryString() throws Exception {
.build();

Request request = new RequestBuilder().setUrl("http://localhost/test?x=y").build();
RequestBuilder requestToUpdate = new RequestBuilder(request);
RequestBuilder requestToUpdate = new RequestBuilder(request.toString());

new AsyncHttpClientEdgeGridSignatureCalculator(credential).calculateAndAddSignature(
request, requestToUpdate);
Expand All @@ -86,7 +86,7 @@ public void testNotDuplicatingQueryString() throws Exception {
.build();

Request request = new RequestBuilder().setUrl("http://localhost/test").addQueryParam("x", "y").build();
RequestBuilder requestToUpdate = new RequestBuilder(request);
RequestBuilder requestToUpdate = new RequestBuilder(request.toString());

new AsyncHttpClientEdgeGridSignatureCalculator(credential).calculateAndAddSignature(
request, requestToUpdate);
Expand Down
2 changes: 1 addition & 1 deletion edgegrid-signer-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>edgegrid-signer-parent</artifactId>
<groupId>com.akamai.edgegrid</groupId>
<version>6.0.0</version>
<version>6.0.1</version>
</parent>

<artifactId>edgegrid-signer-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion edgegrid-signer-google-http-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>edgegrid-signer-parent</artifactId>
<groupId>com.akamai.edgegrid</groupId>
<version>6.0.0</version>
<version>6.0.1</version>
</parent>

<artifactId>edgegrid-signer-google-http-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion edgegrid-signer-rest-assured/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>edgegrid-signer-parent</artifactId>
<groupId>com.akamai.edgegrid</groupId>
<version>6.0.0</version>
<version>6.0.1</version>
</parent>

<artifactId>edgegrid-signer-rest-assured</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion edgerc-reader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>edgegrid-signer-parent</artifactId>
<groupId>com.akamai.edgegrid</groupId>
<version>6.0.0</version>
<version>6.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.akamai.edgegrid</groupId>
<artifactId>edgegrid-signer-parent</artifactId>
<version>6.0.0</version>
<version>6.0.1</version>

<modules>
<module>edgegrid-signer-apache-http-client</module>
Expand Down Expand Up @@ -161,7 +161,7 @@
<dependency>
<groupId>org.asynchttpclient</groupId>
<artifactId>async-http-client</artifactId>
<version>2.12.3</version>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
Expand Down Expand Up @@ -200,7 +200,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.10</version>
<version>0.8.12</version>
<executions>
<execution>
<id>prepare-agent</id>
Expand Down

0 comments on commit 631da42

Please sign in to comment.