You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2022/09/28 20:07:37 UTC

[httpcomponents-client] branch master updated (5187d7866 -> f3b96ff82)

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git


 discard 5187d7866 Be more lenient on slower build machines
 discard 960fc778f Bump mockito-core from 4.0.0 to 4.8.0 #383
 discard 371de52fc Bump mockito-core from 4.0.0 to 4.8.0
    omit 7ac0a028f Use Java 8 features and APIs
    omit 70654ae48 Register the standard GitHub page for a Code of Conduct with a link to the Apache Code of Conduct
    omit 3eb8c11af Use Objects.toString() instead of String type cast
    omit bb67e4c0b Don't make loops and anonymous methods so verbose by using Java 8 features
     new d100edf41 Use Objects.toString() instead of String type cast
     new 9df1d9eb4 Register the standard GitHub page for a Code of Conduct with a link to the Apache Code of Conduct
     new 3e0d4c901 Bump mockito-core from 4.0.0 to 4.8.0
     new cc84d3233 Bump mockito-core from 4.0.0 to 4.8.0 #383
     new f3b96ff82 Be more lenient on slower build machines

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (5187d7866)
            \
             N -- N -- N   refs/heads/master (f3b96ff82)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 RELEASE_NOTES.txt                                  |   2 +-
 .../http/cache/HttpAsyncCacheStorageAdaptor.java   |   3 +-
 .../hc/client5/http/cache/HttpCacheEntry.java      |   5 +-
 .../AbstractSerializingAsyncCacheStorage.java      |   7 +-
 .../cache/AbstractSerializingCacheStorage.java     |   7 +-
 .../http/impl/cache/BasicHttpAsyncCache.java       |   6 +-
 .../impl/cache/ByteArrayCacheEntrySerializer.java  |   7 +-
 .../hc/client5/http/impl/cache/CachingExec.java    |   5 +-
 .../impl/cache/DefaultAsyncCacheInvalidator.java   |  10 +-
 .../http/impl/cache/DefaultCacheInvalidator.java   |   4 +-
 .../cache/HttpByteArrayCacheEntrySerializer.java   |   8 +-
 .../http/impl/cache/ManagedHttpCacheStorage.java   |   4 +-
 .../impl/cache/ResponseProtocolCompliance.java     |   4 +-
 .../cache/ehcache/EhcacheHttpCacheStorage.java     |  13 +-
 ...HttpByteArrayCacheEntrySerializerTestUtils.java |   5 +-
 .../org/apache/hc/client5/http/fluent/Request.java |   6 +-
 .../client5/http/examples/fluent/FluentAsync.java  |  37 ++---
 .../hc/client5/testing/async/TestHttp1Async.java   |  16 +-
 .../client5/testing/sync/TestContentCodings.java   | 169 +++++++++++++--------
 .../hc/client5/testing/sync/TestRedirects.java     |  31 ++--
 .../org/apache/hc/client5/http/ContextBuilder.java |   4 +-
 .../http/async/methods/SimpleHttpRequest.java      |   6 +-
 .../http/async/methods/SimpleHttpResponse.java     |   7 +-
 .../apache/hc/client5/http/config/TlsConfig.java   |  11 +-
 .../hc/client5/http/cookie/BasicCookieStore.java   |  66 +++++---
 .../apache/hc/client5/http/cookie/CookieStore.java |  26 +---
 .../http/entity/mime/FormBodyPartBuilder.java      |   4 +-
 .../http/entity/mime/HttpRFC7578Multipart.java     |   3 +-
 .../hc/client5/http/entity/mime/MimeField.java     |   5 +-
 .../http/entity/mime/MultipartPartBuilder.java     |   4 +-
 .../apache/hc/client5/http/impl/RequestCopier.java |   7 +-
 .../hc/client5/http/impl/RequestSupport.java       |   4 +-
 .../client5/http/impl/async/AsyncProtocolExec.java |  13 +-
 .../http/impl/async/H2AsyncClientBuilder.java      |   2 +-
 .../impl/async/H2AsyncClientProtocolStarter.java   |   8 +-
 .../HttpAsyncClientProtocolNegotiationStarter.java |  17 ++-
 .../hc/client5/http/impl/auth/BasicScheme.java     |   4 +-
 .../hc/client5/http/impl/auth/DigestScheme.java    |   4 +-
 .../client5/http/impl/auth/HttpAuthenticator.java  |   8 +-
 .../http/impl/classic/ClassicRequestCopier.java    |   7 +-
 .../http/impl/classic/HttpClientBuilder.java       |   5 +-
 .../hc/client5/http/impl/classic/ProtocolExec.java |   6 +-
 .../client5/http/impl/cookie/CookieSpecBase.java   |   7 +-
 .../io/DefaultManagedHttpClientConnection.java     |  12 +-
 .../io/PoolingHttpClientConnectionManager.java     |   6 +-
 .../PoolingHttpClientConnectionManagerBuilder.java |   6 +-
 .../nio/PoolingAsyncClientConnectionManager.java   |   4 +-
 ...PoolingAsyncClientConnectionManagerBuilder.java |   4 +-
 .../http/impl/routing/BasicRouteDirector.java      |   2 +-
 .../impl/routing/SystemDefaultRoutePlanner.java    |   4 +-
 .../client5/http/protocol/RequestAddCookies.java   |  11 +-
 .../http/protocol/RequestDefaultHeaders.java       |   6 +-
 .../hc/client5/http/psl/PublicSuffixMatcher.java   |  42 ++---
 .../client5/http/ssl/DefaultHostnameVerifier.java  |   9 +-
 .../http/ssl/SSLConnectionSocketFactory.java       |   7 +-
 .../hc/client5/http/ssl/TlsSessionValidator.java   |   4 +-
 .../client5/http/examples/ClientCustomContext.java |   8 +-
 .../hc/client5/http/examples/ClientFormLogin.java  |   8 +-
 .../http/examples/ClientWithRequestFuture.java     |   6 +-
 59 files changed, 461 insertions(+), 255 deletions(-)


[httpcomponents-client] 02/05: Register the standard GitHub page for a Code of Conduct with a link to the Apache Code of Conduct

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit 9df1d9eb4c72e5bafe6e0641ac8cd47672bcf11d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Sep 27 10:09:08 2022 -0400

    Register the standard GitHub page for a Code of Conduct with a link to
    the Apache Code of Conduct
---
 CODE_OF_CONDUCT.md | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 000000000..3ed501501
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,17 @@
+<!---
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+The Apache code of conduct page is [https://www.apache.org/foundation/policies/conduct.html](https://www.apache.org/foundation/policies/conduct.html).


[httpcomponents-client] 05/05: Be more lenient on slower build machines

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit f3b96ff82aaa4c76e88ba796c3303cd43e89ccf6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Sep 28 10:36:05 2022 -0400

    Be more lenient on slower build machines
    
    Remove old comment
---
 .../org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java
index 12acd5a3a..a97f2b01b 100644
--- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java
+++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java
@@ -92,7 +92,7 @@ public class TestHttpMinimalReactive extends AbstractHttpReactiveFundamentalsTes
                 H2Config.DEFAULT,
                 Http1Config.DEFAULT,
                 IOReactorConfig.custom()
-                        .setSoTimeout(TIMEOUT)
+                        .setSoTimeout(LONG_TIMEOUT)
                         .build(),
                 PoolingAsyncClientConnectionManagerBuilder.create()
                         .setTlsStrategy(new DefaultClientTlsStrategy(SSLTestContexts.createClientSSLContext()))


[httpcomponents-client] 04/05: Bump mockito-core from 4.0.0 to 4.8.0 #383

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit cc84d3233b28e6424d3d8576a55e1a6818678b03
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Sep 28 08:29:52 2022 -0400

    Bump mockito-core from 4.0.0 to 4.8.0 #383
---
 RELEASE_NOTES.txt | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt
index 43de71565..f563ca19e 100644
--- a/RELEASE_NOTES.txt
+++ b/RELEASE_NOTES.txt
@@ -1,4 +1,19 @@
-Release 5.2 BETA1
+Release 5.2 BETA2
+------------------
+
+This is the second BETA release in the 5.2 release series that upgrades minimal JRE
+level to version 8 (8u251 is required) and includes several protocol level and
+API improvements. It also includes all bug fixes from the 5.1 branch.
+
+Notable changes and features included in the 5.2 series:
+
+* Bump junit-bom from 5.8.1 to 5.9.1 #379
+* Bump log4j.version from 2.17.2 to 2.19.0 #380
+* Bump ehcache-api from 3.9.6 to 3.10.1 #381
+* Bump jna.version from 5.9.0 to 5.12.1 #382
+* Bump mockito-core from 4.0.0 to 4.8.0 #383
+
+Release 5.2 BETA1
 ------------------
 
 This is the first BETA release in the 5.2 release series that upgrades minimal JRE


[httpcomponents-client] 01/05: Use Objects.toString() instead of String type cast

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit d100edf411d57efe0bb5e780c9238e2e14b45aac
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Sep 27 08:36:19 2022 -0400

    Use Objects.toString() instead of String type cast
---
 .../java/org/apache/hc/client5/http/ssl/TlsSessionValidator.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/TlsSessionValidator.java b/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/TlsSessionValidator.java
index 99d110e60..76541ff46 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/TlsSessionValidator.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/TlsSessionValidator.java
@@ -32,6 +32,7 @@ import java.security.cert.X509Certificate;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
+import java.util.Objects;
 
 import javax.net.ssl.HostnameVerifier;
 import javax.net.ssl.SSLException;
@@ -73,7 +74,7 @@ final class TlsSessionValidator {
                         final List<String> altNames = new ArrayList<>();
                         for (final List<?> aC : altNames1) {
                             if (!aC.isEmpty()) {
-                                altNames.add((String) aC.get(1));
+                                altNames.add(Objects.toString(aC.get(1), null));
                             }
                         }
                         log.debug(" peer alternative names: {}", altNames);
@@ -86,7 +87,7 @@ final class TlsSessionValidator {
                         final List<String> altNames = new ArrayList<>();
                         for (final List<?> aC : altNames2) {
                             if (!aC.isEmpty()) {
-                                altNames.add((String) aC.get(1));
+                                altNames.add(Objects.toString(aC.get(1), null));
                             }
                         }
                         log.debug(" issuer alternative names: {}", altNames);


[httpcomponents-client] 03/05: Bump mockito-core from 4.0.0 to 4.8.0

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit 3e0d4c901ef4c228655189d1f605d063be03e850
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Wed Sep 28 04:36:12 2022 +0000

    Bump mockito-core from 4.0.0 to 4.8.0
    
    Bumps [mockito-core](https://github.com/mockito/mockito) from 4.0.0 to 4.8.0.
    - [Release notes](https://github.com/mockito/mockito/releases)
    - [Commits](https://github.com/mockito/mockito/compare/v4.0.0...v4.8.0)
    
    ---
    updated-dependencies:
    - dependency-name: org.mockito:mockito-core
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <su...@github.com>
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 00f16708c..ef2637069 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,7 +71,7 @@
     <slf4j.version>1.7.36</slf4j.version>
     <junit.version>5.9.1</junit.version>
     <hamcrest.version>2.2</hamcrest.version>
-    <mockito.version>4.0.0</mockito.version>
+    <mockito.version>4.8.0</mockito.version>
     <jna.version>5.12.1</jna.version>
     <hc.stylecheck.version>1</hc.stylecheck.version>
     <rxjava.version>2.2.21</rxjava.version>